简体   繁体   English

如何在IIS中托管ASP.NET MVC项目?

[英]How to host an ASP.NET MVC project in IIS?

I have an ASP.NET MVC solution with multiple project under it, it works fine locally after uploading the site on the server I get the System.Reflection.ReflectionTypeLoadException error 我有一个带有多个项目的ASP.NET MVC解决方案,将网站上传到服务器上后,在本地出现了System.Reflection.ReflectionTypeLoadException错误,它在本地运行良好

我收到的错误的屏幕截图

I am also trying to run the solution on IIS and the error I am getting is Not Found The requested URL / was not found on this server. 我也尝试在IIS上运行解决方案,但找不到此错误,但未在此服务器上找到请求的URL。

I have also copied all the DLL to the output folder, what could be the issue is the problem most likely from a missing DLL, is it from the remote hosting security level or am I missing something else in the project please advise. 我也将所有DLL复制到了输出文件夹中,可能的问题是最可能是缺少DLL的问题,是来自远程主机安全级别的问题还是我在项目中缺少了其他内容,请提出建议。 在此处输入图片说明

After calling the hostgator (where the site is hosted) and addressing the issue, I was told that custom DLL is not allowed in our hosting as you may see I have taken screenshots of the DLLs I wonder what are the customs DLL in my project as hostgator technician put it 在调用hostgator(托管网站的地方)并解决了该问题之后,有人告诉我自定义DLL在我们的托管中是不允许的,因为您可能会看到我拍摄了这些DLL的屏幕截图,我想知道我的项目中的海关DLL是什么hostgator技术人员说的

I assume you're running v3 of ASP.NET MVC. 我假设您正在运行ASP.NET MVC v3。 In which case, have you set the Application Pool .NET Framework version in IIS to C# 4.0? 在这种情况下,您是否将IIS中的应用程序池.NET Framework版本设置为C#4.0? Indeed, is ASP.NET MVC and .NET Framework 4.0 installed on your server? 确实,服务器上是否安装了ASP.NET MVC和.NET Framework 4.0?

Does your application rely on any external libraries which were not included in the deployed application? 您的应用程序是否依赖于未包含在已部署应用程序中的任何外部库?

Are you able to debug your application at all? 您完全可以调试应用程序吗? Ie the Application_Start. 即Application_Start。 It's possible that something is going awry during that which is causing this. 在造成这种情况的过程中,可能有些地方出了问题。

Basically, more information would help! 基本上,更多信息会有所帮助!

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM