2010-01-08 133 views
0

Im第一次部署Silverlight 3应用程序时出现问题。Silverlight服务参考部署

问题出在一个服务引用,即认证之一。这一切都在VS 2008本地正常工作。

我不能添加新的服务,并发现托管的。如将localPath是

http://localhost:9626/Services/AuthenticationService.svc 

但如果我尝试在VS发现与

http://www.mydomain.com/Services/AuthenticationService.svc 

我得到:

The document at the url http://www.mydomain.com/Services/AuthenticationService.svc was not recognized as a known document type. The error message from each known type may help you fix the problem: - Report from 'DISCO Document' is 'Name cannot begin with the '%' character, hexadecimal value 0x25. Line 1, position 2.'. - Report from 'WSDL Document' is 'There is an error in XML document (1, 2).'. - Name cannot begin with the '%' character, hexadecimal value 0x25. Line 1, position 2. - Report from 'XML Schema' is 'Name cannot begin with the '%' character, hexadecimal value 0x25. Line 1, position 2.'. Metadata contains a reference that cannot be resolved: ' http://www.mydomain.com/Services/AuthenticationService.svc '. The remote server returned an unexpected response: (405) Method Not Allowed. The remote server returned an error: (405) Method Not Allowed. If the service is defined in the current solution, try building the solution and adding the service reference again.

所以,我第一次启用了目录浏览并且不可能浏览到。 svc文件。所以我添加的.svc MIME类型IIS和我现在可以浏览到它精细,它显示了正确的声明

<%@ ServiceHost Language="C#" Service="System.Web.ApplicationServices.AuthenticationService" %> 

因此,在一个位在哪里何去何从亏损的IM。我假设一次我可以得到服务运行在VS指向我的托管网站,我可以建立和上传,一切都会好吗?

任何帮助将不胜感激!

感谢

--edit

下面是在web.config中的条目,他们有点此刻乱七八糟的,我也有其他的服务吧的验证之一。

Link to web.config section here, having issues posting it all

再次感谢

--edit 2

伊夫现在跟着this post,我现在有: this error

回答

0

好,其本身固定和IM不完全知道我完成了。

也许该命令需要时间让应用程序池回收?从那以后,我没有在服务器上做任何其他事情。