摘要: publish web site的时候需要使用下面图示的选项。 阅读全文
posted @ 2012-07-23 18:30 sayo.net 阅读(219) 评论(0) 推荐(0) 编辑
摘要: Just modify your test project, and add the following command to post-build evern command line."C:\Program Files\Microsoft Visual Studio 11.0\Common7\IDE\mstest" /testcontainer:"$(TargetPath)" 阅读全文
posted @ 2012-06-25 23:22 sayo.net 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 以Windows 7里面的IIS7.5为例。假设我们的service method样子为<WebGet(UriTemplate:="{parameter}")>_<OperationContract()>_FunctionServiceMethod(ByValparameterAsString)AsBoolean我们希望将一个这样的urlhttp://localhost/SomeService/ServiceMethod.svc/Parameter使用http://localhost/SomeService/ServiceProvider/Param 阅读全文
posted @ 2011-07-08 17:50 sayo.net 阅读(1180) 评论(0) 推荐(0) 编辑
摘要: Error Message:The service cannot be activated because it does not support ASP.NET compatibility. ASP.NET compatibility is enabled for this application. Turn off ASP.NET compatibility mode in the web.config or add the AspNetCompatibilityRequirements attribute to the service type with RequirementsMode 阅读全文
posted @ 2011-06-28 14:56 sayo.net 阅读(760) 评论(0) 推荐(0) 编辑
摘要: Error Message:Service 'XXXService' has zero application (non-infrastructure) endpoints. This might be because no configuration file was found for your application, or because no service element matching the service name could be found in the configuration file, or because no endpoints were d 阅读全文
posted @ 2011-06-28 14:55 sayo.net 阅读(553) 评论(0) 推荐(0) 编辑
摘要: A custom remote certificate validation can be used to avoid the strict validation, instead, just make it trust anything. In your code, simply make a call to the static method SetCertificatePolicy() once within your application before making any request to the web services.//notethiscodeisnotintended 阅读全文
posted @ 2011-04-19 14:13 sayo.net 阅读(670) 评论(0) 推荐(0) 编辑
摘要: Could not find a base address that matches scheme http for the endpoint with binding MetadataExchangeHttpBinding. Registered base address schemes are [https]. The base address for your service defines "HTTPS://" - but your mex address is "HTTP". If you want your service to use ht 阅读全文
posted @ 2011-04-19 12:43 sayo.net 阅读(1451) 评论(0) 推荐(0) 编辑
摘要: When attempting to run a service that receives messages over the HTTP transport, you may receive an error similar to the following: Server Error in '/WCFApplication' Application Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Ve 阅读全文
posted @ 2011-04-15 18:25 sayo.net 阅读(505) 评论(0) 推荐(0) 编辑
摘要: 1. Run command prompt as administrator, and run the following command"%windir%\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe" -r -yThis step is used to make IIS can run WCF service.2. Make certificate for LocalMachineUse VS2008’s command prompt and run a 阅读全文
posted @ 2011-04-14 15:35 sayo.net 阅读(263) 评论(0) 推荐(0) 编辑
摘要: (1)Cannot find the X.509 certificate using the following search criteria: StoreName 'My', StoreLocation 'CurrentUser', FindType 'FindBySubjectName', FindValue 'FeedServiceServer'. Must put the certificate into LocalMachine like:makecert -r -pe -n "CN=FeedServiceS 阅读全文
posted @ 2011-03-30 09:38 sayo.net 阅读(452) 评论(0) 推荐(0) 编辑