2010-01-08 239 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不完全知道我完成了。

也許該命令需要時間讓應用程序池回收?從那以後,我沒有在服務器上做任何其他事情。