i rent a vps which installed windows server 2008, i've just installed iis 7 to host my mvc 3 project.
i changed application pool's .net version to 4 and integrated pipeline and deleted the default web site.
i created a new site which named what my project named, set it physical path to wwwroot directory and its application pool to .net 4 integrated.
when i try to access my site with ip adress, it gives an error about directory listing and then i enabled the directory listing and it started to show my folder structure. MVC 3 doesn't have a default physical document i know, it has route feature.
i created this project in VS 2010 MVC 3 project with Entity Framework. I forced to load .dll references locally but nothing changed.
i tried that get dlls from Microsoft ASP.NET folder's assembly folder for web pages and mvc 3 in program files and put them my published site's bin folder, too but nothing happened again.
please help me, how can i host my mvc 3 project? What should i do? ( iis settings, install something that needs to etc. )
If you installed IIS after you installed .net, you probably need to call aspnet_regiis -i. See http://msdn.microsoft.com/en-us/library/k6h9cz8h%28v=VS.100%29.aspx for details.
Another thing to confirm is that whatever identity your site is running under has read/excecute access to the physical files.
I did it and i tried to start my website and an error says: "Web sites cannot be started unless both the WAS and W3SVC are running. Both services are currently stopped."
cdilbaz
Member
6 Points
4 Posts
mvc 3 hosting ws 2008 and iis 7 with .net 4 integrated
Jun 19, 2011 07:19 PM|LINK
hi, everyone.
i rent a vps which installed windows server 2008, i've just installed iis 7 to host my mvc 3 project.
i changed application pool's .net version to 4 and integrated pipeline and deleted the default web site.
i created a new site which named what my project named, set it physical path to wwwroot directory and its application pool to .net 4 integrated.
when i try to access my site with ip adress, it gives an error about directory listing and then i enabled the directory listing and it started to show my folder structure. MVC 3 doesn't have a default physical document i know, it has route feature.
i created this project in VS 2010 MVC 3 project with Entity Framework. I forced to load .dll references locally but nothing changed.
i tried that get dlls from Microsoft ASP.NET folder's assembly folder for web pages and mvc 3 in program files and put them my published site's bin folder, too but nothing happened again.
please help me, how can i host my mvc 3 project? What should i do? ( iis settings, install something that needs to etc. )
Kenneth Ito
Member
8 Points
4 Posts
Re: mvc 3 hosting ws 2008 and iis 7 with .net 4 integrated
Jun 19, 2011 07:30 PM|LINK
If you installed IIS after you installed .net, you probably need to call aspnet_regiis -i. See http://msdn.microsoft.com/en-us/library/k6h9cz8h%28v=VS.100%29.aspx for details.
Another thing to confirm is that whatever identity your site is running under has read/excecute access to the physical files.
cdilbaz
Member
6 Points
4 Posts
Re: mvc 3 hosting ws 2008 and iis 7 with .net 4 integrated
Jun 19, 2011 07:54 PM|LINK
Firstly, thanks for reply. i hope it will work.
I did it and i tried to start my website and an error says: "Web sites cannot be started unless both the WAS and W3SVC are running. Both services are currently stopped."
what is that?
ignatandrei
All-Star
135073 Points
21662 Posts
Moderator
MVP
Re: mvc 3 hosting ws 2008 and iis 7 with .net 4 integrated
Jun 19, 2011 10:29 PM|LINK
start command prompt with administrator account
net start w3svc
net start was
And verify in services if IIS /World Wide Web Publishing Service are started.
cdilbaz
Member
6 Points
4 Posts
Re: mvc 3 hosting ws 2008 and iis 7 with .net 4 integrated
Jun 21, 2011 11:22 AM|LINK
they cannot be started, they give error for was 2 times and for w3svc 1 time.
sorry for late reply, i was unable to access vps.
im reinstalling IIS now, could you tell me what should i need to host mvc 3 site?
thanks
cdilbaz
Member
6 Points
4 Posts
Re: mvc 3 hosting ws 2008 and iis 7 with .net 4 integrated
Jun 21, 2011 11:37 AM|LINK
and also cannot be uninstalled, fatal error there..
ignatandrei
All-Star
135073 Points
21662 Posts
Moderator
MVP
Re: mvc 3 hosting ws 2008 and iis 7 with .net 4 integrated
Jun 21, 2011 07:08 PM|LINK
what error?
iis
ENABLE ASP.NET
mvc 3: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=d2928bc1-f48c-4e95-a064-2a455a22c8f6