Link to home
Start Free TrialLog in
Avatar of Easwaran Paramasivam
Easwaran ParamasivamFlag for India

asked on

How to host MVC 3 application in IIS 7?

I have a MVC application. Which is running in Visual studio IDE by pressing F5. Please look at attached screenshot.

Please let me know how to deploy my application in IIS 7.

This is urgent. Please provide solution ASAP.

Thanks in advance.
FromVisualStudio.jpg
ASKER CERTIFIED SOLUTION
Avatar of ToddBeaulieu
ToddBeaulieu
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Easwaran Paramasivam

ASKER

In VS IDE my application is working fine. But after the deployment I get error. How to resolve this? Please do help.

Please do refer the attached screenshots.
FromVisualStudio.jpg
IIS-Deployment-Error.jpg
That's exactly what I was talking about. You're using a third party assembly and haven't deployed it. Read through my steps and also those on the link I sent you. You need to get an "image" to deploy, which is simply all the files needed by the application. The publishing feature in VS should take care of this easily.
Avatar of AshwaniMunshi
AshwaniMunshi

Please check if your IIS was installed after .NET 4 then in that case  you likely need to run the aspnet_regiis.exe tool to register all the .NET 4 stuff with IIS.
I did run aspnet_regiis -i. But no luck.

In my project, I set Copy Local as true to all DLLs in the reference section. I copied the required DLLs in the bin folder as given in the above link (first answer). But no luck. I still face the same problem. My question is why the application is running in Visualstudio.net IDE but not in IIS? Please note that the bin folder in Virtual directory contains all required DLLs.

Please help to resolve this issue. Thanks.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial