简体   繁体   中英

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

我收到的错误的屏幕截图

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.

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. 在此处输入图片说明

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

I assume you're running v3 of ASP.NET MVC. In which case, have you set the Application Pool .NET Framework version in IIS to C# 4.0? Indeed, is ASP.NET MVC and .NET Framework 4.0 installed on your server?

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. It's possible that something is going awry during that which is causing this.

Basically, more information would help!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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