asp.net mvc 5 - Visual Studio 2015 MVC Project Template Access Denied -


i've created simple mvc application in vs2015 has basic css styling , html application off ground more quickly.

the application runs perfectly.

i've exported template using file -> export template...

i created brand new project based off project type. far good. but, when run newly created project blank page "access denied" (see image).

i've been going on template project , new project fine tooth comb , can't find differences. why 1 work other give access denied? out of ideas, appreciated.

access denied

edit:

after more research have found cause of problem, not solution.

it seems project template has "anonymous authentication" disabled, , has "windows authentication" set enabled in project settings. when create project based on template these values flipped , causes access denied.

here's image of project settings in template:

enter image description here

here's image of project settings in "new" project:

enter image description here

note both authentication settings flipped. can tell me how not happen?

edit 2:

as suggested, applicationhost.config files different causing above problem. here applicationhost.config security section of template:

enter image description here

however, here same file in new project created based off template:

enter image description here

notice section missing entirely new project. so, question becomes how copy on new projects?

as suggested brianlegg move comments answer

seems problem related applicationhost.config file. files it's not present on zip file contains template.

you take on physical path attribute on

 <system.applicationhost>           <sites> 

maybe it's trying access first project instead new one.

could check in applicationhost.config template?

take on where template applicationhost.config file stored


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -