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!
Edit I:
Still having no luck with this. I have enabled Edit and Continue, and everything is behaving as described above still...
Edit II:
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.
Gaijintendo
Member
16 Points
14 Posts
System.ArgumentException in mscorlib upon editing in App_Code
Jul 14, 2011 09:07 AM|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 ...
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!
Edit I:
Still having no luck with this. I have enabled Edit and Continue, and everything is behaving as described above still...
Edit II:
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:
http://msdn.microsoft.com/en-us/library/ms178473.aspx
Do I mark myself as the answer? Is there a better answer?
Mamba Dai - ...
All-Star
23531 Points
2683 Posts
Microsoft
Re: System.ArgumentException in mscorlib upon editing in App_Code
Jul 19, 2011 07:45 AM|LINK
Based on your information, do you want to prevent web application from restaring when relevant files such as app_code changed?
Feedback to us
Develop and promote your apps in Windows Store
Gaijintendo
Member
16 Points
14 Posts
Re: System.ArgumentException in mscorlib upon editing in App_Code
Jul 19, 2011 08:45 AM|LINK
Files in the App_Code folder. But that doesn't seem possible, as above.