infolink

Wednesday, November 17, 2010

How to get Fiddler to work with local host in asp.net while debugging in Visual Studio

Well I have been using Fiddler for some time now and it is a great tool when debugging a web application in ASP.NET/

Currently I use Visual Studio 2008 SP1 and there have been many issues with images not loading and request handling that Fiddler has helped me solve. it is by far one of the best web debugging tools out there.

You can grab it at http://www.fiddler2.com/fiddler2/
target="_blank"


For now if you put http://localhost./ (NOTICE THE DOT) it will work with Visual Studio

Timed out waiting for a program to execute. The command being executed was "C:\WINDOWS\Microsoft.NET\Framework\v3.5\vbc.exe"

Well today was boatloads of fun. I make a quick change to an aspx file in a DotNetNuke project and all the sudden the site started to hang. After about 10 minutes or so I got the following error:

Timed out waiting for a program to execute. The command being executed was "C:\WINDOWS\Microsoft.NET\Framework\v3.5\vbc.exe"/noconfig @"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2e8bd0df\9885eac5\lqud30cx.cmdline".

So first thing I thought is since this file was in the skin of my DotNetNuke site that the compiler must have detected a change in the code and tried to recompile. I must have broke soemthing , right?

No, as I restored the site filesystem with a backup and did a restore of the SQL 2008 Database. I still get the same error:

Timed out waiting for a program to execute. The command being executed was "C:\WINDOWS\Microsoft.NET\Framework\v3.5\vbc.exe"/noconfig @"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2e8bd0df\9885eac5\lqud30cx.cmdline".

So, what gives, I looked around and cannot find an answer to this issue. Microsoft tells me to do this:

• Reinstall the asp.net (aspnet_regiis –u then aspnet_regiis -i)
• Gave required permissions on ASPNET account by running aspnet_regiis -ga ASPNET


For anyone who doesn't know the actual command it is:

This will uninstall ASP.net:

C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_regiis -u

This will install ASP.net:

C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_regiis -i

When I ran the install I got the following error at the command line:

...............
Finished installing ASP.NET (2.0.50727).
Setup has detected some errors during the operation. For details, please rea
e setup log file C:\DOCUME~1\USERNAME\LOCALS~1\Temp\1\ASPNETSetup_00005.log

Now, when I look at the log, I see this in the log:

Failure Creating directory: E:\MYWEBAPP\aspnet_client: CreateDirectoryInternal failed with HRESULT 80070003: 'The system cannot find the path specified. '

This error only occurs on the .Net application where this error started.

I then deleted the aspnet_client directory and ran aspnet_regiis -u
and then aspnet_regiis -i

My issue still remains. I also made sure the security account permissions were correct.

I also stopped IIS and all related services and deleted the asp.net temp files located in c:\Windows\Microsoft.NET\Framework\v2.0.50727\

This did not help

At this time I have no resolution...

UPDATE:


Try to run the app pool under the identity "LOCAL SYSTEM"

Then run IISREST

load your page.

If this works check the framework folders or what was my major issue is your temp folder, in my case C:\Windows\Temp . Make sure NetworkService has proper permissions. Add full permissions to confirm this isn't the issue.

Now, I know this permission was there so, some how it just dropped off, which is just plain odd. Did take some updates recently and this didn't become an issue until I made a code change which forced IIS to recompile the site.

This server is now back up and running.
Buy Me a Beer

Amazon1