2010-01-08 8 views
0

Silverlight 3 응용 프로그램을 처음 배포하는 데 문제가 있습니다.Silverlight 서비스 참조 배포

서비스 참조 인 인증에 문제가 있습니다. 이 모든 로컬 내에서 VS 잘 작동합니다.

나는 새로운 서비스를 추가하고 호스트 된 것을 발견 할 수 없습니다. 예는의 localpath는

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

입니다하지만

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

와 VS에서 발견하려고하면 내가 얻을 :

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.

그래서, 내가 처음 사용 디렉토리 검색하고 찾아 couldnt한다. SVC 파일. 그래서 IIS에 SVC는 MIME 유형을 추가하고 난 지금은 잘 그것을 탐색 할 수 있습니다, 그리고 여기에서 어디로 가야에 손실 비트에서

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

그래서 메신저 올바른 선언을 보여줍니다. 내가 한 번 서비스를 VS에서 내 호스팅 사이트를 가리키며 빌드하고 업로드 할 수 있고 모든 것이 괜찮을 것이라고 가정합니다.

도움이 될 것입니다. 여기

가의 Web.config의 항목입니다 --edit

감사

, 그들은 순간에 엉망의 비트, 그리고 내가 다른 서비스가 인증을 한 바 않아도됩니다.

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

다시 한번 감사

--edit이

필자는 지금 this post을 따라 지금은이 : 이 this error

답변

0

좋아, 그 자체를 고정하고 완전히 확실하지 메신저 내가 해냈다.

어쩌면 그 명령은 응용 프로그램 풀이 재활용 될 시간이 필요합니까? 그때 이후로 나는 서버에서 다른 일을하지 못했습니다.