简体   繁体   English

Mvc4网站在本地可以正常运行,但是在部署后在IIS Server 8.5上显示错误

[英]Mvc4 website locally working fine but gives error on IIS Server 8.5 after deployment

hello i developed my website in mvc4 and i am using JQGrid in my application. 你好,我在mvc4中开发了我的网站,并且在我的应用程序中使用了JQGrid。 my website is working fine on my local system but when i deploy website on my local IIS Server 8.5 then it gives error in loading the jq grid controller method am using windows 8.1 Console error image is attached below. 我的网站在我的本地系统上运行良好,但是当我在本地IIS Server 8.5上部署网站时,它在使用Windows 8.1控制台加载错误jq网格控制器方法时出现错误,下面附有控制台错误图像。

在此处输入图片说明

guide me about this error. 指导我有关此错误。 is there any changes made in web.config or at IIS Server. 是否在web.config或IIS服务器上进行了任何更改。 thank you 谢谢

and below screen shot of deployment how i deploy my website into local IIS. 下面是我如何将网站部署到本地IIS的部署屏幕截图。 在此处输入图片说明

I think the problem is that your Web Publish configuration isn't uploading/publishing those files. 我认为问题在于您的Web发布配置未上传/发布这些文件。 Ensure that those files are included in your .csproj project (Solution Explorer > Show All Files > Include, for each file listed). 确保这些文件包含在.csproj项目中(对于列出的每个文件,Solution Explorer>显示所有文件>包含)。 Also ensure that "All files" rather than "Files needed to run the application" is selected on the Settings page of the Web Publish wizard. 还要确保在“ Web发布”向导的“设置”页面上选择了“所有文件”,而不是“运行应用程序所需的文件”。

I suppose that you don't included Content/images subdirectory and fonts subdirectory (or some files from there) to your project . 我想,你不包括Content/images子目录和fonts子目录(或有一些文件) 到项目中 So the destination don't contains the required files. 因此,目标位置不包含必需的文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 IIS7中的MVC4部署。500内部错误 - MVC4 deployment in IIS7.. 500 internal error 未找到视图“索引”或其主数据或视图引擎不支持搜索的位置。 在IIS 8.5上部署MVC5 / MVC4之后 - The view 'Index' or its master was not found or no view engine supports the searched locations. After deploy MVC5/MVC4 on IIS 8.5 从IIS 6迁移到IIS 8.5后,自定义错误处理不再起作用 - Custom error handling no longer working after migrating from IIS 6 to IIS 8.5 在本地部署asp.net mvc4到IIS 7.5 - Deploying asp.net mvc4 to IIS 7.5 locally 在IIS 8.5中的asp.net mvc 5上使用后期处理时出现错误404 - Error 404 in working with post actions on asp.net mvc 5 in IIS 8.5 在运行IIS 6的Windows 2003计算机上部署ASP.NET MVC4网站时出现500错误 - 500 ERROR WHEN DEPLOYING THE ASP.NET MVC4 WEBSITE ON Windows 2003 machine running IIS 6 在mvc4 cshtml页面中工作时,“ jqgrid”不是功能错误,但在aspx页面中工作正常 - `jqgrid` is not a function error when working in mvc4 cshtml page but working fine in aspx page IIS 7站点无法在IIS 8.5上运行 - iis 7 site not working on iis 8.5 在IIS中为mvc4网站/应用程序设置主页(无格式no.aspx) - setting homepage in IIS for mvc4 website /application (no forms no.aspx) 将MVC4 .net 4.5网站部署到IIS7 Forbidden 403 - Deploying MVC4 .net 4.5 website to IIS7 Forbidden 403
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM