<p>Occasionally, I find that while debugging an ASP.Net application (written in visual studio 2008, running on Vista 64-bit) the local ASP.Net development server (i.e. 'Cassini') stops responding.</p>

<p>A message often comes up telling me that "Data Execution Prevention (DEP)" has killed WebDev.WebServer.exe</p>

<p>The event logs simply tell me that "WebDev.WebServer.exe has stopped working"</p>

<p>I've heard that this 'problem' presents itself more often on Vista 64-bit because DEP is on by default. Hence, turning DEP off may 'solve' the problem.</p>

<p>But i'm wondering: </p>

<p><em>Is there a known bug/situation with Cassini that causes DEP to kill the process?</em></p>

<p><em>Alternatively, what is the practical danger of disabling Data Execution Prevention?</em></p>

[{'answer_id': 19367, 'author': 'FlySwat', 'author_id': 1965, 'author_profile': 'https://Stackoverflow.com/users/1965', 'pm_score': 3, 'selected': True, 'text': '<p>The only way to know for sure would be to dig through the Cassini source and see if there are any areas where it generates code on the heap and then executes it without clearing the NX flag.</p>\n\n<p>However, instead of doing that, why not use IIS?</p>\n\n<p>EDIT:</p>\n\n<p>The danger of disabling DEP is that you open up security holes. DEP works by not allowing arbitrary generated code on the heap to be executed. This helps prevent malware programs from inserting code into the data segments of legit programs.</p>\n'}, {'answer_id': 19370, 'author': 'DevelopingChris', 'author_id': 1220, 'author_profile': 'https://Stackoverflow.com/users/1220', 'pm_score': 2, 'selected': False, 'text': '<p>You are on vista, iis got better (7), cassini stayed crappy.</p>\n\n<p>So just start this app on iis with a host header and a hosts file entry.</p>\n'}, {'answer_id': 19423, 'author': 'Brian Leahy', 'author_id': 580, 'author_profile': 'https://Stackoverflow.com/users/580', 'pm_score': 1, 'selected': False, 'text': '<p>You can grant certain programs exclusion from DEP if you need.</p>\n\n<p>As <a href="https://stackoverflow.com/users/1965/jonathan-holland">Jonathan</a></p>\n\n<p>mentions this does open up any vulnerabilities that application may have.</p>\n'}, {'answer_id': 19426, 'author': 'Leon Bambrick', 'author_id': 49, 'author_profile': 'https://Stackoverflow.com/users/49', 'pm_score': 0, 'selected': False, 'text': "<p>Thanks for the answers. I guess I developed such an aversion to IIS in the .net 1.x era that I've refused to consider re-using it -- until now.</p>\n\n<p><em>aside: when choosing between two equally acceptable answers from ChanChan and Jonathan, I arbitrarily marked Jonathan's as 'accepted' because a) he got in first and b) his rep is currently lower.</em></p>\n"}, {'answer_id': 20192, 'author': 'Kev', 'author_id': 419, 'author_profile': 'https://Stackoverflow.com/users/419', 'pm_score': 1, 'selected': False, 'text': '<p>Using IIS in Visual Studio isn\'t the pain in the ass that it used to be in 1.1/VS02/03 days. There are lots of good reasons to prefer IIS over the Cassini server (articles by <a href="http://leastprivilege.com/about/" rel="nofollow noreferrer">Dominick Baier</a>):</p>\n\n<blockquote>\n  <p><a href="http://leastprivilege.com/2006/01/18/cassini-considered-harmful/" rel="nofollow noreferrer">Cassini considered harmful</a><br>\n  <a href="http://leastprivilege.com/2006/03/22/another-reason-why-i-would-not-recommend-cassini/" rel="nofollow noreferrer">Another Reason why I would not recommend Cassini</a></p>\n</blockquote>\n\n<p>Dominick is \'the man\' when it comes to IIS and security stuff.</p>\n\n<p>When using IIS for a web app, I always create the app in IIS first, point it at my preferred folder, then get VS to create the project. This means you don\'t end up cluttering c:\\inetpub\\wwwroot with your web apps.</p>\n\n<p>Of course, now we have IISExpress which if you\'re targeting IIS7.x it\'s the obvious choice for developing ASP.NET applications in Visual Studio.</p>\n'}]
['https://Stackoverflow.com/questions/19349', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/49/']