We have a MVC 3.0 app targeting framework 4.0 to be installed on IIS 6.0 on w2k3.
The deployment is on a virtual directory that has target framework 4.0. The virtual directory belongs to a parent site that has framework 2.0 configured and there are existing apps targetting 2.0 framework. Is this the recommended deployment model or should
the site be setup exclusively for framework 4.0 ?
On deploying the app we are consistently getting the 403 error using IE client. The IIS log is as below
403.14 status code is "error : directory listing denied". So my first question will be : did you set a valid default document for your virtual directory?
This message is provided "AS IS" with no warranties, and confers no rights!
Please 'Mark as Answer' if this post helps you.
Fabrice ZERROUKI
No, there is no default page.This is MVC3 app so the controller/action will render the default page.
we have tried setting up a website with target fx 4.0 ,created a virtual directory targetting fx4.0 for the above app and another virtual directory targetting fx2.0 - this is working perfectly.
Can we have the Parent Site targetting fx2.0 ,one virtual dirctory under that targetting fx4.0(MVC app) and another virtual directory targetting fx2.0.?
Can we have the Parent Site targetting fx2.0 ,one virtual dirctory under that targetting fx4.0(MVC app) and another virtual directory targetting fx2.0.?
Yep, with specifics application pools for each one.
This message is provided "AS IS" with no warranties, and confers no rights!
Please 'Mark as Answer' if this post helps you.
Fabrice ZERROUKI
Marked as answer by Leo Tang - MSFT on Feb 06, 2012 08:38 AM
cnanju
2 Posts
IIS6.0 framework 4.0 MVC3.0 HTTP Status 403 - setting up IIS virtual directory for Fx 4.0
Jan 30, 2012 08:55 AM|LINK
We have a MVC 3.0 app targeting framework 4.0 to be installed on IIS 6.0 on w2k3.
The deployment is on a virtual directory that has target framework 4.0. The virtual directory belongs to a parent site that has framework 2.0 configured and there are existing apps targetting 2.0 framework. Is this the recommended deployment model or should the site be setup exclusively for framework 4.0 ?
On deploying the app we are consistently getting the 403 error using IE client. The IIS log is as below
2012-01-30 09:36:02 W3SVC1441322441 127.0.0.1 GET /TestMVC3App/ - 100 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506.30;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729;+.NET4.0C;+.NET4.0E) 403 14 5
Installation steps followed were -
- Framework 4.0
- ran aspnet_regiis.exe with -ir (to retain 2.0)
- changed virtual directory property to target v4.0.30319
- added supportedFramework="v4.0.30319" in web.config
Please let me know anything is missed out while setting up the environment.
Thanks in advance.
--Nanju
.Net 2.0 iis 6.0 .net deployment IIS6 .NET 4.0 ASP.NET 4.0
fab777
926 Posts
Re: IIS6.0 framework 4.0 MVC3.0 HTTP Status 403 - setting up IIS virtual directory for Fx 4.0
Jan 30, 2012 09:05 AM|LINK
Hi,
403.14 status code is "error : directory listing denied". So my first question will be : did you set a valid default document for your virtual directory?
Please 'Mark as Answer' if this post helps you.
Fabrice ZERROUKI
HCamper
8048 Posts
Re: IIS6.0 framework 4.0 MVC3.0 HTTP Status 403 - setting up IIS virtual directory for Fx 4.0
Jan 30, 2012 10:31 AM|LINK
Hi,
The Topic " Is this the recommended deployment model or should the site be setup exclusively for framework 4.0"
You used this "- ran aspnet_regiis.exe with -ir" is not the Tool to use.
Please read the Web Deployment guide for Visual Studio 2010
http://learn.iis.net/page.aspx/1081/building-a-web-deploy-package-from-visual-studio-2010/
How to use the Web Platform http://learn.iis.net/page.aspx/1082/web-deploy-parameterization/
and MVC Projects.
Check the IIS Server Status codes 403 14 there maybe other issues.
I hope that I understand the issues and Problems.
You can set IIS 6.0 Server to use the "default" document and the vdir and the Project types
http://forums.iis.net/t/1183080.aspx more iinformation Web Sites vs Web Applications you can use
Visual Studio be default.aspx.
Regards.
Martin
Community Member Award 2011
cnanju
2 Posts
Re: IIS6.0 framework 4.0 MVC3.0 HTTP Status 403 - setting up IIS virtual directory for Fx 4.0
Jan 30, 2012 12:30 PM|LINK
No, there is no default page.This is MVC3 app so the controller/action will render the default page.
we have tried setting up a website with target fx 4.0 ,created a virtual directory targetting fx4.0 for the above app and another virtual directory targetting fx2.0 - this is working perfectly.
Can we have the Parent Site targetting fx2.0 ,one virtual dirctory under that targetting fx4.0(MVC app) and another virtual directory targetting fx2.0.?
Thanks,
Nanju.
HCamper
8048 Posts
Re: IIS6.0 framework 4.0 MVC3.0 HTTP Status 403 - setting up IIS virtual directory for Fx 4.0
Jan 30, 2012 12:52 PM|LINK
Hi,
If your building the Applications with Visual Studio 2010 and IIS Server use both VS & Deployment settings:
http://learn.iis.net/page.aspx/1080/testing-web-deploy-publishing-from-visual-studio-2010-and-webmatrix/
http://blogs.msdn.com/b/rickandy/archive/2011/04/22/test-you-asp-net-mvc-or-webforms-application-on-iis-7-in-30-seconds.aspx
set the default page as part of the project and deployment package" In VIsual Studio.
The MVC3 app can be deployed so the controller/action will render the default.aspx page.
MSDN library http://msdn.microsoft.com/en-us/library/ie/dd410269(v=vs.98).aspx Controllers and Actions Methods.
The targetting for a Web Site and applications can be for targets using fx 2.0 or fx 4.0.
You create a virtual directory targetting fx4.0 for APP40 part of the deployment.
You create a virtual directory targetting fx 2.0 for APP20 part of the deployment.
http://msdn.microsoft.com/en-us/library/ie/ff398049(v=vs.98).aspx MSDN library Using Forums.
Under the parent Site targetting fx2.0 one virtual directory and Application Pool using net 2.0/
Create a Web Site and virtual directory for the
MVC App Visual Studio set the targetting and use fx4.0 and the Application Pool
using Net 4.0.
http://learn.iis.net/page.aspx/624/application-pool-identities/ Application Pools
have settings for the version of the dot net framework.
The Topic keywords Visual Studio 2010, Multi Target, changes to Support for Net 2.0 Net 4.0 and IIS.
http://msdn.microsoft.com/en-us/library/ie/gg703322(v=vs.98).aspx MSDN library "How to ... MVC ..."
Yes two Application pools one for Net fx 2.0 and one for net fx 4.0 using IIS manager
Visual Studio and the Web Deploy it does work the Tools work together.
I hope the above helps with the understanding.
Regards,
Martin
Community Member Award 2011
fab777
926 Posts
Re: IIS6.0 framework 4.0 MVC3.0 HTTP Status 403 - setting up IIS virtual directory for Fx 4.0
Jan 30, 2012 01:34 PM|LINK
Yep, with specifics application pools for each one.Please 'Mark as Answer' if this post helps you.
Fabrice ZERROUKI
HCamper
8048 Posts
Re: IIS6.0 framework 4.0 MVC3.0 HTTP Status 403 - setting up IIS virtual directory for Fx 4.0
Feb 03, 2012 01:53 PM|LINK
Hello,
IIS6.0 framework 4.0-MVC3.0 Projects : The Deployment problems only happen using "Localhost":
"Deploying the app we are consistently", getting the 403 error using IE client. The IIS log GET /TestMVC3App/ - 100 - 127.0.0.1 : 403 14 5.
Please post detailed status codes and more informaton.
Regards,
Martin
Community Member Award 2011