将应用程序移至共享主机后,我无法将服务引用添加到曾用于专用服务器上的.asmx和WCF服务。添加服务引用时出错服务器提交了违反协议
中添加WCF服务引用的错误是:
There was an error downloading 'address ... Service.svc'.
The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF
Metadata contains a reference that cannot be resolved: 'address ... Service.svc'.
The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF
The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF
If the service is defined in the current solution, try building the solution and adding the service reference again.
ASMX Web引用:
There was an error downloading 'address ... .asmx'.
The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF
There was an error downloading 'address ... .asmx/$metadata'.
The server committed a
任何想法?
号“web服务文件”的内容就什么都没有做与通过浏览到文件生成的输出。 – 2010-08-19 19:48:08