" type="hidden"/>

發布Silverlight,報錯


在發布silverlight時,報如下錯誤:

 

 

Configuration Error

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: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.

Source Error: 

Line 21:       </serviceBehaviors> Line 22:     </behaviors> Line 23:     <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" /> Line 24:   </system.serviceModel> Line 25:     <system.web>

 注意 allowDefinition='MachineToApplication' beyond application level,說明你在IIS上發布的應用程序不符合要求。

重新再IIS中添加虛擬目錄,勾選上“執行(如ISAP應用程序或CGI)(E)”選項即可,然后會在IIS默認網站下顯示一個齒輪狀的文件夾標示,將編譯好的silverlight程序拷貝到該文件夾下就不會出現這個錯誤了。 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM