2011-02-10 6 views
0

최근에 .Net 프레임 워크 3.5에서 4.0으로 ASP.Net 응용 프로그램을 업그레이드했습니다. 응용 프로그램에 WCF 서비스가 포함되어 있으며 업그레이드 후 404 오류가 반환됩니다. 문제 해결 404 WCF 서비스 오류

오류 메시지

은 다음과 같습니다 :

Server Error in '/' Application. 
-------------------------------------------------------------------------------- 

The resource cannot be found. 
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. 

Requested URL: /ws/ProviderService.svc 


-------------------------------------------------------------------------------- 
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42 

의 Web.config은

<error statusCode="404" redirect="Common/Pages/404b.htm"/> 

을 가지고 있으며 사용자 정의 페이지에 404 년대를 리디렉션해야합니다. 존재하지 않는 .asmx 서비스에 액세스하려고하면 404b.htm 페이지로 올바르게 리디렉션됩니다.

.NET 프레임 워크 4.0은 처리되지 않지만 어떻게 든 .NET Framework 2.0에서 선택됩니다.

사이트는 IIS7 및 Windows Server 2008에 있습니다.

아이디어가 있으십니까?

답변

0

심지어는 닷넷 4.0, 난 asp.net가 넷 프레임 워크 2.0,

확인의 Web.config에서 인 CustomError 태그의 설정 무엇인가라고 생각이 없다 "RemoteOnly" "OFF"로 설정되어 있는지 확인