I have a MVC project which runs successfully when I execute from visual studio that is using ASP.net development server. But when I published to a specific folder during publish, the files are getting created under c:\inetpub\wwwroot\new folder but when
i browse it, it is saying "Access denied" and i put a break point in Global.asax, it is not hitting it also.
Thanks for your reply. when I debug the app, i get the context null so I am getting reverted to Access denied page of the application. The session state in IIs says "Duplicate key error for the connection string name in Web.config.
It sounds like within your Web.config file you have two connection string elements that use the same name, which is causing a conflict. You should consider renaming or commenting out one of them and that should fix your issue.
Usha 2009
Member
10 Points
44 Posts
Reg puiblish of MVC project
Jan 17, 2013 03:47 PM|LINK
Hi
I have a MVC project which runs successfully when I execute from visual studio that is using ASP.net development server. But when I published to a specific folder during publish, the files are getting created under c:\inetpub\wwwroot\new folder but when i browse it, it is saying "Access denied" and i put a break point in Global.asax, it is not hitting it also.
Could you please suggest.
Thanks in advance.
Best regards,
Usha.
Rion William...
All-Star
26980 Points
4465 Posts
Re: Reg puiblish of MVC project
Jan 17, 2013 05:04 PM|LINK
You likely do not have read permission to that specific folder, you will need to set your permissions through IIS to gain access to it.
Additional O'Reilly Tutorial on MVC Deployment (discusses handling Permissions etc.)
Related
Usha 2009
Member
10 Points
44 Posts
Re: Reg puiblish of MVC project
Jan 18, 2013 01:22 PM|LINK
Hi Rion Williams,
Thanks for your reply. when I debug the app, i get the context null so I am getting reverted to Access denied page of the application. The session state in IIs says "Duplicate key error for the connection string name in Web.config.
Could you please suggest.
Thanks & Regards,
Usha.
Rion William...
All-Star
26980 Points
4465 Posts
Re: Reg puiblish of MVC project
Jan 18, 2013 01:27 PM|LINK
It sounds like within your Web.config file you have two connection string elements that use the same name, which is causing a conflict. You should consider renaming or commenting out one of them and that should fix your issue.