403 - 禁止在IIS上的基本MVC 3部署 [英] 403 - Forbidden on basic MVC 3 deploy on iis
问题描述
我有一个ASP.NET MVC 3应用程序,它运行在IIS 7.5。一切都很正常,如果我从Windows Server本地访问应用程序,但如果我试图从远程客户端访问它的浏览器引发错误。
I have an ASP.NET MVC 3 application, which runs on a IIS 7.5. Everything works great if i access the application locally from the Windows Server, but if i try to access it from a remote client the browser throws an error.
当我尝试HTML加载罚款远程访问该网站,但是当它使AJAX调用失败这个消息:
The HTML loads fine when i try to access the site remotely, but when it make AJAX calls it fails with this msg:
的 403(禁止访问:头Content-Type的价值被拒绝)的
我曾尝试:
使用jQuery JSONP -
- 授予webfolder accees所有人的文件夹安全和共享
I have tried: - using jQuery jsonp - Granting webfolder accees to "Everyone" in Folder security and sharing
你有任何其他suggentions一个解决方案?
Do you have any other suggentions for a solution?
推荐答案
检查文件是否存在Global.asax中。
我得到了同样的问题,因为我忘了上传该文件。
Check if the file global.asax exists. I had get the same problem because I forgot to upload this file.
这篇关于403 - 禁止在IIS上的基本MVC 3部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!