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.
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:
here's image of project settings in "new" project:
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:
however, here same file in new project created based off template:
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?
Comments
Post a Comment