Last post Jul 19, 2011 04:45 AM by Gaijintendo
Jul 14, 2011 05:07 AM|Gaijintendo|LINK
I am not sure if this is how things are supposed to be, but during development, I might like to change a line of code in a nice little helper class.
This throws numerous ...
A first chance exception of type 'System.ArgumentException' occurred in mscorlib.dll
The site restarts and I have to navigate back to where I was to see if the change worked.
It is massively time consuming, and I hope there must be some option to prevent this. Is there?
~As an aside
I was originally getting references to 'just my code' being checked, but I changed that (not sure what any of the debugging choices really do in all honesty - if you know an article I could read that would be great).
Your help and interest would be very much appreciated.
Thanks in advance!
Still having no luck with this. I have enabled Edit and Continue, and everything is behaving as described above still...
From what I have read, this is just a fact of life. If you edit a file which other things are dependant on (web.config, global.asax etc and these files in my case) the site will restart. boo!
I guess one trick would be to test things on a page you don't have to login to use? Saves a little time. Or alternatively - develop in your page then port it to a app_code class once it is up and running.
see Application Restarts:
Do I mark myself as the answer? Is there a better answer?
Jul 19, 2011 03:45 AM|mamba dai - msft|LINK
Based on your information, do you want to prevent web application from restaring when relevant files such as app_code changed?
Jul 19, 2011 04:45 AM|Gaijintendo|LINK
Files in the App_Code folder. But that doesn't seem possible, as above.