Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net silverlight 4部署:缺少system.web.ria?_.net_Silverlight_Iis - Fatal编程技术网

.net silverlight 4部署:缺少system.web.ria?

.net silverlight 4部署:缺少system.web.ria?,.net,silverlight,iis,.net,Silverlight,Iis,这快把我逼疯了,我似乎找不到我需要的东西。我的问题似乎是本文要解决的问题: 这就是:我有这个silverlight应用程序,和一些花哨的web服务,它们在Grrreat工作!除非我真的在IIS中设置它,无论是在我的开发机器上,还是在服务器上 我相信我已经安装了所需的一切,但是system.web.ria不存在于全局程序集缓存中,也不可能包含在我的项目参考中。为什么在我使用VisualStudio的开发/调试服务器时,这种方法仍然有效,这对我来说是个谜 是什么导致了这种情况?System.Web.

这快把我逼疯了,我似乎找不到我需要的东西。我的问题似乎是本文要解决的问题:

这就是:我有这个silverlight应用程序,和一些花哨的web服务,它们在Grrreat工作!除非我真的在IIS中设置它,无论是在我的开发机器上,还是在服务器上

我相信我已经安装了所需的一切,但是system.web.ria不存在于全局程序集缓存中,也不可能包含在我的项目参考中。为什么在我使用VisualStudio的开发/调试服务器时,这种方法仍然有效,这对我来说是个谜


是什么导致了这种情况?

System.Web.Ria
已经不存在了。它被
System.ServiceModel.DomainServices.Server
System.ServiceModel.DomainServices.Hosting
名称空间所取代

您还需要更新web.config,使其内容如下:

<?xml version="1.0"?>
    <configuration>
        <system.web>
            <httpModules>
                <add name="DomainServiceModule"
type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule,
      System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0,
      Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            </httpModules>
            <compilation debug="true" targetFramework="4.0" /> 
        </system.web>

        <system.webServer>
            <validation validateIntegratedModeConfiguration="false"/>
            <modules runAllManagedModulesForAllRequests="true">
                <add name="DomainServiceModule" preCondition="managedHandler"
 type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule,
       System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0,
       Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            </modules>
            <validation validateIntegratedModeConfiguration="false" />
        </system.webServer>

    <system.serviceModel>
        <serviceHostingEnvironment aspNetCompatibilityEnabled="true"
                                   multipleSiteBindingsEnabled="true" />
    </system.serviceModel>
</configuration>

文档(docx文件)


我不知道为什么Visual Studio会这样做,除非它仍然使用一些缓存文件。

好的,所以问题可能是我们使用的库是针对旧版本的silverlight或其他东西编译的,并且System.Web.Ria已被弃用。这全是巫毒。太棒了!这正是我要找的!