WCF RIA服务4004错误

WCF RIA服务4004错误,wcf,iis,wcf-ria-services,Wcf,Iis,Wcf Ria Services,所有这些都在IIS Express中工作得很好,但当我调试到本地IIS时,我在尝试在应用程序中使用WCF(如下所列)时出错,浏览器显示WCF,但VS不显示 [Window Title] Visual Studio Just-In-Time Debugger [Main Instruction] An unhandled exception ('Unhandled Error in Silverlight Application Code: 4004 Category: Managed

所有这些都在IIS Express中工作得很好,但当我调试到本地IIS时,我在尝试在应用程序中使用WCF(如下所列)时出错,浏览器显示WCF,但VS不显示

[Window Title]
Visual Studio Just-In-Time Debugger

[Main Instruction]
An unhandled exception ('Unhandled Error in Silverlight Application 
Code: 4004    
Category: ManagedRuntimeError       
Message: System.ServiceModel.DomainServices.Client.DomainOperationException: Invoke operation 'Login' failed. The remote server returned an error: NotFound. ---> System.ServiceModel.CommunicationException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound.
   at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
   at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClassa.<EndGetResponse>b__9(Object sendState)
   at System.Net.Browser.AsyncHelper.<>c__DisplayClass4.<BeginOnUI>b__0(Object sendState)
   --- End of inner exception stack trace ---
   at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
   at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)
   --- End of inner exception stack trace ---
   at System.ServiceModel.DomainServices.Client.WebDomainClient`1.EndInvokeCore(IAsyncResult asyncResult)
   at System.ServiceModel.DomainServices.Client.DomainClient.EndInvoke(IAsyncResult asyncResult)
   at System.ServiceModel.DomainServices.Client.DomainContext.CompleteInvoke(IAsyncResult asyncResult)
   --- End of inner exception stack trace ---
   at System.ServiceModel.DomainServices.Client.OperationBase.Complete(Exception error)
   at System.ServiceModel.DomainServices.Client.InvokeOperation.Complete(Exception error)
   at System.ServiceModel.DomainServices.Client.DomainContext.CompleteInvoke(IAsyncResult asyncResult)
   at System.ServiceModel.DomainServices.Client.DomainContext.<>c__DisplayClass30`1.<InvokeOperation>b__2c(Object )     
') occurred in iexplore.exe [856].

The Just-In-Time debugger was launched without necessary security permissions. To debug this process, the Just-In-Time debugger must be run as an Administrator. Would you like to debug this process?

[V] View process details  [Yes, debug iexplore.exe] [No, cancel debugging]

[Expanded Information]
Process Name: C:\Program Files (x86)\Internet Explorer\iexplore.exe
User Name: Armanx64PC\Armanx64 [Elevated]
[窗口标题]
Visual Studio实时调试器
[主要说明]
未处理的异常('Silverlight应用程序中未处理的错误
代码:4004
类别:ManagedRuntimeError
消息:System.ServiceModel.DomainServices.Client.DomainOperationException:调用操作“登录”失败。远程服务器返回错误:NotFound。-->System.ServiceModel.CommunicationException:远程服务器返回错误:NotFound。-->System.Net.WebException:远程服务器返回错误:NotFound。-->System.Net.Web异常:远程服务器返回错误:NotFound。
位于System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
在System.Net.Browser.BrowserHttpWebRequest.c__DisplayClassa.b__9(对象发送状态)中
在System.Net.Browser.AsyncHelper.c__DisplayClass4.b__0(对象发送状态)中
---内部异常堆栈跟踪的结束---
位于System.Net.Browser.AsyncHelper.BeginNoui(SendOrPostCallback beginMethod,对象状态)
位于System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
位于System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteTresponse(IAsyncResult结果)
---内部异常堆栈跟踪的结束---
位于System.ServiceModel.DomainServices.Client.WebDomainClient`1.EndInvokeCore(IAsyncResult asyncResult)
位于System.ServiceModel.DomainServices.Client.DomainClient.EndInvoke(IAsyncResult asyncResult)
位于System.ServiceModel.DomainServices.Client.DomainContext.CompleteInvoke(IAsyncResult asyncResult)
---内部异常堆栈跟踪的结束---
位于System.ServiceModel.DomainServices.Client.OperationBase.Complete(异常错误)
位于System.ServiceModel.DomainServices.Client.InvokeOperation.Complete(异常错误)
位于System.ServiceModel.DomainServices.Client.DomainContext.CompleteInvoke(IAsyncResult asyncResult)
位于System.ServiceModel.DomainServices.Client.DomainContext.c__DisplayClass30`1.b__2c(对象)
“)发生在iexplore.exe[856]中。
即时调试器在没有必要的安全权限的情况下启动。要调试此进程,必须以管理员身份运行实时调试器。是否要调试此进程?
[五] 查看进程详细信息[是,调试iexplore.exe][否,取消调试]
[扩展信息]
进程名称:C:\ProgramFiles(x86)\Internet Explorer\iexplore.exe
用户名:Armanx64PC\Armanx64[提升]

我找到了解决方案。我的头,它工作得很奇怪


所以,您需要转到控制面板-程序和功能-打开或关闭功能,并且必须在那里启用所有WCF服务树(如果您不提前检查,请检查ASP.NET)

这太荒谬了,为什么在安装IIS和ASP.Net时默认不安装这些条目呢?谢谢Microsoft。有很多任务,还有更多的解决方案。ASP.NET托管不是WinServer的主要任务-另请参阅关于SQL Server、Active Directory和其他的。发布此消息两年后,我遇到了相同的错误。你能确切地告诉我哪些服务吗?我没有看到任何WCF服务。。。