所以我試圖在IIS上部署我的web asp.net mvc網站。它完美的作品在我的電腦等,但部署後,我收到此錯誤:在使用IIS時部署網站時遇到問題resx文件
Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0122: 'Microsoft.AspNet.Identity.Resources' is inaccessible due to its protection level
源錯誤:
<a href="javascript:document.getElementById('logoutForm').submit()" class="exit">@Resources.Localization.exit</a>
上Resources.Localization
我的生成操作屬性設置爲Embedded Resource
我有在這裏找到一個提示:
http://forums.asp.net/t/1442744.aspx?Problem+deploying+MVC+app+on+IIS7
而且改變了它的價值Content
出現另一個錯誤:
Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "BTGHRM.App_GlobalResources.Localization.resources" was correctly embedded or linked into assembly "BTGHRM" at compile time, or that all the satellite assemblies required are loadable and fully signed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "BTGHRM.App_GlobalResources.Localization.resources" was correctly embedded or linked into assembly "BTGHRM" at compile time, or that all the satellite assemblies required are loadable and fully signed.
錯誤來源:
Line 40: @Html.LabelFor(m => m.UserName, new { style = "color:#0D5C9F;font-size:13px;font-weight:bold;" })