<p>I have a winform app that calls a web service to check for updates.  This works in dev and it also works everywhere else I've tried it, just not on the installed copy on my machine (which happens to be the same in dev).</p>

<p>The error is:</p>

<p>Cannot execute a program. The command being executed was "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe" /noconfig /fullpaths @"C:\Documents and Settings\Giovanni.DOUBLE-AFSSZ043\Local Settings\Temp\squ8oock.cmdline".</p>

<p>The firewall is disabled and I've looked for "C:\Documents and Settings\Giovanni.DOUBLE-AFSSZ043\Local Settings\Temp\squ8oock.cmdline" and it is not there.  Note that every time I try to use the web service the ".cmdline" file is different, for example the second time I ran it it was "dae8rgen.cmdline."  No matter what name it has, I can never find the file.</p>

<p>Any suggestions?</p>

[{'answer_id': 62390, 'author': 'Aaron Lerch', 'author_id': 6616, 'author_profile': 'https://Stackoverflow.com/users/6616', 'pm_score': 3, 'selected': True, 'text': '<p>The ".cmdline" file is an autogenerated file produced by the .NET framework. The application is attempting to real-time compile an XML Serializer used to parse the data from the web service.</p>\n\n<p>Have you verified that you can execute "csc.exe" from a command-line window? Even just typing "C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\csc.exe /?" should get you a list of compiler options (or should give you an error if you don\'t have permissions to execute it).</p>\n\n<p>What user account are you running this under, and does it have permissions to execute .exe files in the windows directory? Similarly, I know you said this happens with the installed copy on your machine, but is it possible it\'s executing off a network share and receiving limited Code Access Security permissions which would prevent it from running local executables?</p>\n\n<p>For reference, here is a KB article showing a similar error that can occur in ASP.NET when the user account doesn\'t have enough permissions.\n<a href="http://support.microsoft.com/kb/315904" rel="nofollow noreferrer">http://support.microsoft.com/kb/315904</a></p>\n'}, {'answer_id': 1276217, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 3, 'selected': False, 'text': '<p>I had the same problem and discovered that i ran out of memory of sorts.</p>\n\n<p>After checking Redhats "ANTS Memory Profiler" i found that i had a large amount of memory in the COM+ of the GC roots. A quick google and i found myself here: <a href="http://msdn.microsoft.com/en-us/library/system.xml.serialization.xmlserializer.aspx" rel="nofollow noreferrer">msdn XmlSerializers</a></p>\n\n<p>I then read the following:</p>\n\n<blockquote>\n  <p>If you use any of the other\n  constructors, multiple versions of the\n  same assembly are generated and never\n  unloaded, which results in a memory\n  leak and poor performance. The easiest\n  solution is to use one of the\n  previously mentioned two constructors.\n  Otherwise, you must cache the\n  assemblies in a  Hashtable...</p>\n</blockquote>\n\n<p>After creating a hashtable for the serializers my problem of a memory leak (and poor performance) and the resulting error message like yours, was gone.</p>\n'}, {'answer_id': 7819106, 'author': 'Liath', 'author_id': 352176, 'author_profile': 'https://Stackoverflow.com/users/352176', 'pm_score': 1, 'selected': False, 'text': '<p>I resolved the same issue with an ISSReset</p>\n'}, {'answer_id': 47547430, 'author': 'Ivan Chau', 'author_id': 1608670, 'author_profile': 'https://Stackoverflow.com/users/1608670', 'pm_score': 0, 'selected': False, 'text': '<p>If AppLocker is enforced, please allow below (add as path exception)  </p>\n\n<p><code>c:\\windows\\MICROSOFT.NET\\FRAMEWORK\\V2.0.50727\\CSC.EXE</code>\n<code>c:\\windows\\MICROSOFT.NET\\FRAMEWORK\\V2.0.50727\\CVTRES.EXE</code></p>\n'}]
['https://Stackoverflow.com/questions/62268', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4050/']