这是我的服务器日志:
Log Name: Application
Source: System.ServiceModel 4.0.0.0
Date: 5/20/2015 9:25:51 AM
Event ID: 3
Task Category: WebHost
Level: Error
Keywords: Classic
User: IIS APPPOOL\.NET v4.5
Computer: BC-MAS
Description:
WebHost failed to process a request.
Sender Information: System.ServiceModel.Activation.HostedHttpRequestAsyncResult/54597678
Exception: System.Web.HttpException (0x80004005): The service '/Service1.svc' does not exist. ---> System.ServiceModel.EndpointNotFoundException: The service '/Service1.svc' does not exist.
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath, EventTraceActivity eventTraceActivity)
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()
at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result)
Process Name: w3wp
Process ID: 1428
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="System.ServiceModel 4.0.0.0" />
<EventID Qualifiers="49154">3</EventID>
<Level>2</Level>
<Task>5</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2015-05-20T06:25:51.000000000Z" />
<EventRecordID>4381</EventRecordID>
<Channel>Application</Channel>
<Computer>BC-MAS</Computer>
<Security UserID="S-1-5-82-271721585-897601226-2024613209-625570482-296978595" />
</System>
<EventData>
<Data>System.ServiceModel.Activation.HostedHttpRequestAsyncResult/54597678</Data>
<Data>System.Web.HttpException (0x80004005): The service '/Service1.svc' does not exist. ---> System.ServiceModel.EndpointNotFoundException: The service '/Service1.svc' does not exist.
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath, EventTraceActivity eventTraceActivity)
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()
at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result)</Data>
<Data>w3wp</Data>
<Data>1428</Data>
</EventData>
</Event>
我无法访问Service1中的功能,但第一页正在打开: 当我试图访问其中一个返回数据的函数时,显示错误: 服务器在处理请求时遇到错误。有关详细信息,请参阅服务器日志。 请帮帮我。
答案 0 :(得分:1)
这个问题背后的原因是“ASP .NET 4.5应用程序池”必须运行32位程序才能使服务正常运行。