如何在IIS7.5中托管Silverlight3应用程序 [英] How to Host Silverlight3 application in IIS7.5

查看:79
本文介绍了如何在IIS7.5中托管Silverlight3应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在本地IIS中托管我的应用程序,但它正在浏览器中显示以下错误.

i am trying to host my aplication in local IIS but it is diplaying the following error in the browser.

HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration 
data for the page is invalid.
 
Detailed Error Information 
Module IIS Web Core 
Notification BeginRequest 
Handler Not yet determined 
Error Code 0x80070021 
Config Error This configuration section cannot be used at this path.
This happens when the section is locked at a parent level. Locking is
either by default (overrideModeDefault="Deny"), or set
explicitly by a location tag with overrideMode="Deny" or the 
legacy allowOverride="false".  
Config File \\?\C:\inetpub\wwwroot\Test1\web.config 

Requested URL http://localhost:80/Test1 
Physical Path C:\inetpub\wwwroot\Test1 
Logon Method Not yet determined 
Logon User Not yet determined 
Config Source
   84:         </modules>
   85:         <handlers>
   86:             <remove name="WebServiceHandlerFactory-Integrated"/>





我已经浏览了以下站点.但是没有给我任何解决方法.

http://forums.iis.net/t/1155232.aspx
http://learn.iis.net/page.aspx/262/configuring-iis-for-silverlight-applications/
http://dotnetefectivecoding.blogspot.com/2009/08/publish-silverlight-3-on-iis-70-75.html

请有人为我提供解决方案.





I have gone through the following sites. But doesn''t gave me any solution.

http://forums.iis.net/t/1155232.aspx
http://learn.iis.net/page.aspx/262/configuring-iis-for-silverlight-applications/
http://dotnetefectivecoding.blogspot.com/2009/08/publish-silverlight-3-on-iis-70-75.html

Some one please provide solutiono for me.

推荐答案

Ashwin,

该错误似乎是您将Silverlight应用程序发布到了带有web.config文件的IIS_ROOT内的文件夹中,但没有将该文件夹标记为应用程序.

要使用web.config,您的虚拟目录必须在IIS中标记为虚拟应用程序".

为此,请打开IIS并在"Test1"文件夹上的属性将其设置为虚拟应用程序.确保已在IIS中添加了三种MIME类型来承载Silverlight. MIME类型为:XAML,XAP和XBAP. Google关于Silverlight MIME类型,您将获得一堆注释.

如果此信息对您有帮助,请不要忘记对其评分并标记为答案.让我知道,如果您需要其他帮助.
Ashwin,

The error seems that you published your Silverlight application in a folder inside the IIS_ROOT with the web.config file but didn''t mark the folder as application.

To use the web.config your virtual directory must be marked as Virtual Application inside IIS.

To do this, open IIS & on the "Test1" folder properties make it as a Virtual Application. Be sure that you have added the three MIME Types in IIS to host Silverlight. The MIME types are: XAML, XAP and XBAP. Google about Silverlight MIME type and you will get a bunch of notes.

If this information helps you then don''t forget to rate it & mark as answer. Let me know, if you need any other help.


这篇关于如何在IIS7.5中托管Silverlight3应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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