When a user clicks a button a new folder is created, the content of this folder will be restricted to users of a specific role. So therefore I also add a new web.config file to the folder with specific rules.
This routine will happen all the time so my question is: adding web.configs, will that cause the application to recompile every time?
Thanks
Om du inte förstår vad det står här så kan du inte svenska.
What kind of application is it? Web Forms Web Site? Web Pages? Web Forms Web Application? MVC?
Web Sites (the first two project types) will recompile. Web Applications cannot recompile. The source is not available, but the application pool will recycle.
Database, XML, text file etc. Obviously you will need to create your own logic for querying your chosen storage to see which roles are allowed access to which resources.
DiCoo
Member
482 Points
110 Posts
Will a newly created web.config make the application recompile
Nov 25, 2012 07:35 PM|LINK
Hi
Have this scenario:
When a user clicks a button a new folder is created, the content of this folder will be restricted to users of a specific role. So therefore I also add a new web.config file to the folder with specific rules.
This routine will happen all the time so my question is: adding web.configs, will that cause the application to recompile every time?
Thanks
Mikesdotnett...
All-Star
154858 Points
19858 Posts
Moderator
MVP
Re: Will a newly created web.config make the application recompile
Nov 26, 2012 05:06 AM|LINK
What kind of application is it? Web Forms Web Site? Web Pages? Web Forms Web Application? MVC?
Web Sites (the first two project types) will recompile. Web Applications cannot recompile. The source is not available, but the application pool will recycle.
Beginning ASP.NET Web Pages with WebMatrix | My Site | Twitter
DiCoo
Member
482 Points
110 Posts
Re: Will a newly created web.config make the application recompile
Nov 26, 2012 09:06 AM|LINK
Its a Web Forms Web Application project. So that will mean that the application pool will recycle a lot which can't be good.
So what other alternatives have I?
Mikesdotnett...
All-Star
154858 Points
19858 Posts
Moderator
MVP
Re: Will a newly created web.config make the application recompile
Nov 26, 2012 10:11 AM|LINK
Database, XML, text file etc. Obviously you will need to create your own logic for querying your chosen storage to see which roles are allowed access to which resources.
Beginning ASP.NET Web Pages with WebMatrix | My Site | Twitter
DiCoo
Member
482 Points
110 Posts
Re: Will a newly created web.config make the application recompile
Nov 26, 2012 12:26 PM|LINK
Ok, its back to the drawing board then.
Thanks for input.