无法加载文件或程序集Microsoft.ServiceModel.DomainServices.Hosting [英] Could not load file or assembly Microsoft.ServiceModel.DomainServices.Hosting

查看:659
本文介绍了无法加载文件或程序集Microsoft.ServiceModel.DomainServices.Hosting的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的本地环境中加载的应用程序。这是我继承,并没有得到它在所有的工作一codeBase的。在这个时候,当我浏览到http://test.myapp.com:75/在我的浏览器,我收到以下错误:

I have an application loaded in my local environment. This is a codebase that I have inherited and have not gotten it to work at all. At this time, when I navigate to "http://test.myapp.com:75/" in my browser, I receive the following error:

说明:该请求提供服务所需的配置文件的处理过程中出现错误。请检查下面的特定错误详细信息并适当地修改配置文件。 分析器错误信息:未能加载文件或程序集Microsoft.ServiceModel.DomainServices.Hosting,版本= 4.0.0.0,文化=中性公钥= 31bf3856ad364e35或它的某一个依赖。该系统找不到指定的文件。

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Could not load file or assembly 'Microsoft.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

我已经检查并确认我有RIA数据服务加载。我可以看到在C文件:\程序文件(x86)\微软的SDK \ RIA服务\ 1.0 \图书馆\服务器。有趣的是,该目录中的组件不会被装载到我的GAC。我试图把它们推入我的GAC,但是,我不能拖组件到C:当我尝试\的Windows \组装和没有错误显示

I have checked and verified that I have RIA Data Services loaded. I can see the files in C:\Program Files (x86)\Microsoft SDKs\RIA Services\v1.0\Libraries\Server. Interestingly, the assemblies in this directory are not loaded into my GAC. I've tried loading them into my GAC, however, I cannot drag the assemblies into C:\Windows\assembly and no error is shown when I try.

我是什么做错了吗?

推荐答案

该Microsoft.ServiceModel.DomainServices.Hosting库不是标准的WCF RIA Services的一部分。你必须下载并安装 WCF RIA服务的工具包 分开。

The Microsoft.ServiceModel.DomainServices.Hosting library is not part of the standard WCF RIA Services. You have to download and install the WCF RIA Services Toolkit seperately.

我也推荐阅读<一个href="http://blogs.msdn.com/b/carlosfigueira/archive/2012/01/19/wcf-extensibility-configuring-the-endpoint-for-wcf-ria-services.aspx"相对=nofollow> WCF可扩展性 - 配置端点为WCF RIA服务

这篇关于无法加载文件或程序集Microsoft.ServiceModel.DomainServices.Hosting的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆