[英]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.