当前位置: 首页 > news >正文

wordpress安装显示空白页/网站seo具体怎么做

wordpress安装显示空白页,网站seo具体怎么做,网站建设与管理的总结报告,个人适合网站类型在解决方案资源管理器中,需要添加两个引用:System.ServiceModel和WCFService。然后双击窗口,在Form_Load事件中编写如下代码: 添加一个应用程序配置文件App.Config,然后粘贴如下内容: ?123456789101112131…

在解决方案资源管理器中,需要添加两个引用:System.ServiceModel和WCFService。然后双击窗口,在Form_Load事件中编写如下代码:

 

  添加一个应用程序配置文件App.Config,然后粘贴如下内容:

 

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <system.serviceModel>
        <bindings>
            <netTcpBinding>
                <binding name="TcpBinding" closeTimeout="00:01:00" openTimeout="00:01:00"
                    receiveTimeout="00:10:00" sendTimeout="00:01:00" transactionFlow="false"
                    transferMode="Buffered" transactionProtocol="OleTransactions"
                    hostNameComparisonMode="StrongWildcard" listenBacklog="10"
                    maxBufferPoolSize="524288" maxBufferSize="65536" maxConnections="10"
                    maxReceivedMessageSize="65536">
                    <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                        maxBytesPerRead="4096" maxNameTableCharCount="16384" />
                    <reliableSession ordered="true" inactivityTimeout="00:10:00"
                        enabled="false" />
                    <security mode="Transport">
                        <transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
                        <message clientCredentialType="Windows" />
                </binding>
            </netTcpBinding>
            <wsDualHttpBinding>
                <binding name="HttpBinding" closeTimeout="00:01:00" openTimeout="00:01:00"
                    receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false"
                    transactionFlow="false" hostNameComparisonMode="StrongWildcard"
                    maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
                    messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true">
                    <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                        maxBytesPerRead="4096" maxNameTableCharCount="16384" />
                    <reliableSession ordered="true" inactivityTimeout="00:10:00" />
                    <security mode="Message">
                        <message clientCredentialType="Windows" negotiateServiceCredential="true"
                            algorithmSuite="Default" />
                    </security>
                </binding>
            </wsDualHttpBinding>
        </bindings>
        <client>
            <endpoint address="net.tcp://localhost:8000/service" binding="netTcpBinding"
                bindingConfiguration="TcpBinding" contract="ServiceReference1.IService1"
                name="TcpBinding">
                <identity>
                    <userPrincipalName value="OverBlue-PC\OverBlue" />
                </identity>
            </endpoint>
            <endpoint address="http://localhost:8001/service" binding="wsDualHttpBinding"
                bindingConfiguration="HttpBinding" contract="ServiceReference1.IService1"
                name="HttpBinding">
                <identity>
                    <userPrincipalName value="OverBlue-PC\OverBlue" />
                </identity>
            </endpoint>
        </client>
    </system.serviceModel>
</configuration>

 

 

对于这个配置文件,我是这样理解的:

1、baseAddress:由协议、地址和端口三个部分组成。其中net.tcp对应TCP协议,http对应Http协 议。

2、endPoint:该属性有一个address属性,指的是在baseAddress基础上增加address属性等于一个 完整的路径。contract则是对应程序接口,这个就不多说。而每种协议都是对应WCFService.IService1契约。

到现在,WCF宿主程序就已经建立好了,我们编译并在"非VS环境下"运行WCFHost应用程序。

 

三、建立客户端应用程序

  在解决方案上按右键,选择"添加" -> "新建项目",然后新建一个Windows 窗体应用程序,程序名称为"WCFClient"。0004

  然后在项目上按右键,选择"添加服务引用",在弹出的添加服务引用中,输入baseAddRess地址 :http://localhost:8001,然后点击“前往”,当确定没问题后,点击“确定”按钮。

  在客户端程序中,会自动产生一个app.config文件,双击打开该文件,我们可以在"client"段 中可以看到,net.tcp和Http两种协议属性下面都有一个"name"属性。通过这个"name"属性,我们可 以控制使用什么协议与访问服务端。

 

我们现在为程序添加一个按钮,双击后编写如下代码:

 

?
1
2
3
4
5
6
7
private void button1_Click(object sender, EventArgs e)
{   
    WCFClient.ServiceReference1.Service1Client sc = new
    ServiceReference1.Service1Client("TcpBinding");  
    sc.Open();   
    MessageBox.Show(sc.GetData(10));    sc.Close();
}

 

 

就个Demo这么简单就完成了。

转载于:https://www.cnblogs.com/zxktxj/p/4308887.html

http://www.jmfq.cn/news/5024809.html

相关文章:

  • redis网站开发教程/杭州推广公司
  • 沂水做网站/推广赚钱软件
  • java 制作网站开发/网络推广免费网站
  • 网站建设的500字小结/百度知道灰色词代发收录
  • 网站正能量视频不懂我意思吧/每日重大军事新闻
  • 网站怎么办/全自动引流推广软件下载
  • 网站禁止右键复制代码/网上宣传方法有哪些
  • 网站建设的原则/重庆百度seo代理
  • 住宅和城乡建设部网站/百度指数有三个功能模块
  • 中山古镇做网站/百度推广营销中心
  • 做同城网站有哪些/seo关键词排名教程
  • 企业网站开发北京/关键词整站优化
  • 网站备案信息可以更改吗/seo网站排名助手
  • 网站设计多少钱市场价/营销策划公司介绍
  • 门网站制作/专业网站seo推广
  • 用wordpress建站之后如何优化/成都seo培训班
  • 做网站彩票代理犯法吗/搭建一个网站的流程
  • wordpress评论回复通知/seo关键词排名注册价格
  • 江西做网站的公司/独立站优化
  • 做故障风的头像的网站/市场营销方案范文
  • 网站显示百度众测是怎么做的/想做电商怎么入手
  • 学校网站建设源代码/网站百度关键词优化
  • wordpress 自定义评论/惠州百度关键词优化
  • 邢台手机网站建设多少钱/网站维护费一年多少钱
  • 郑州网站免费制作/百度竞价是什么
  • 杭州网站如何制作/打开app下载
  • 不成立公司怎么做企业网站/网页设计网站
  • 福田沙头网站建设/网站收录提交
  • 如何申请域名做网站/直销怎么做才最快成功
  • wordpress追加表/谷歌seo搜索