Fixing ASP.NET debug error 0x8013134b
I got the following error debugging an ASP.NET project earlier today:
Auto-attach to process '[2440] w3wp.exe' on machine '...' failed. Error code 0x8013134b.
The problem was that I had installed .NET 2.0 which had registered ASP.NET 2.0 on the Web Site I was trying to debug.
Fixing it is simple:
- Run the IIS Manager
- Right click on the web site with the problem
- Click the ASP.NET tab
- Change the ASP.NET version from 2.something to 1.something in the combo and debugging works again
Strangely enough, when i do this my VS 2003 is no longer able to create web projects! Any ideas?
ReplyDeleteTurns out, i had to run aspnet_regiis -i again from my VS 2003 Command prompt and then do what you told. That did the trick! Thanks!
ReplyDeleteAwesome...I went through many sites before finding yours with the right fix. Thanks!
ReplyDeleteGreat For me it worked after doing the Following.
ReplyDeleteI went to microsft.net\famework\v2.0.*\ in .net Command prompt
and I uninstalled aspnet using aspnet_regiis -u adn I came to the Version ..\v1.1.4 * that I have to use and there I reinstalled it using aspnet_regiis -i
After this I followed what u have said...
Its really a nice tip.
none of the above worked for me. using VS2003 and asp.net ver 1.1 and 2.0 any idea in the meanwhile i ll try to fix it.
ReplyDeletethank you very much.
ReplyDeleteNOW WORK WELL PERFECT...
MICROSOFT BASTARD!
thank you very much.
ReplyDeleteI spent to hours to find out what the problem is and I fix it 2 seconds after I saw your message.
MosheC
hey guys,
ReplyDeletei got the same error message but i am unable to find asp.net tad on iis manager. i am running both iis 1.1 and 2.0. i would like to switch to 1.1 now but on iis admin after right clicking the web site there is no asp.net tab on properties. could any body help me.
You can switch ASP.NET version from the command line.
ReplyDeleteTo switch to ASP.NET version 1.1:
- Go to the directory: C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
- Run "aspnet_regiis.exe -i" to install ASP.NET version 1.1 for all sites
You can apply it to specific web sites by running "aspnet_regiis.exe -s siteid". You get more help on the syntax by running "aspnet_regiis.exe" without any arguments.
To be 110% safe, you can follow the tip by kumaresan and uninstall ASP.NET v2 first:
- Go to the directory: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215
- Run "aspnet_regiis.exe -u" to uninstall ASP.NET version 2.something from all sites
Thank you, this was on great help, although it didn't worked for me, I guess it was because I selected 1.1.4322.OtherNumber instead of 1.1.4322.0.
ReplyDeleteAnyway I decided to uninstall asp.net 2.0 and re-install ASP.NET 1.1 as mentioned in previous message and it worked fine.
Thank you all
when i m running asp.net page the error should come like, enable to find the path and local host could any one help me.
ReplyDeleteThanks & Regards.
Puspendra
Thanks for the great help.
ReplyDeleteI can now debug after running the following:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322>aspnet_regiis -i
Although now I have problems connecting to my SQL database that normally works fine under ASP.net v2... Any ideas?
Thanks heaps
Can you post the error message(s) you are getting?
ReplyDeleteDid you recompile the application after rolling back to .NET 1.1?
Hey thanks for the help, i have this problem i never noticed that the programmer working on morning shift installed framework 2. shit thats why I recieved some hell 0x8013134b message..
ReplyDeleteDom
try and see if you have 2 Framework clr installed (ver 2, and ver 1.x), if so the iis is using the ver 2 and the visual.net is using ver 1.x (check inside visual studio at help->about to see whice ver of framework is in use), after i removed the ver 2 it worked just fine.
ReplyDeleteMy VS.net help->about screen says it's still using ver 1.1. I have 2.0 installed on IIS and this is what I want to use. How do I get VS to use 2.0? It's really hard to debug without a debugger.
ReplyDeleteYou have to upgrade to Visual Studio 2005 in order to develop and debug .NET 2.0 applications with VS.NET.
ReplyDeleteYou can use the -free- .NET 2.0 SDK to compile your application but you cannot debug it with VS.NET 2003
that's pretty gay. thanks man.
ReplyDeleteThanks a bunch! I would have never figured it out myself.
ReplyDeleteThe command line tool is great, but does anyone know how to get the ASP.NET tab to show up in IIS?
ReplyDeleteHi great blogg to help out.
ReplyDeleteHad a lot of problems with it. The only way I was able to fix this was to unregister clr2 and register clr 1. Bit of a pain considering the amount of time wasted trying to figure this out.
The only question remaining is how do you use the two without having to constantly unregister one and register the other.
After unregistering 2 and registering 1, I also did an iisreset as listed above and I seem to be back in action.
Thanks again.
Thierry
Cool man, its working.
ReplyDeleteCheers, it works
ReplyDeleteWow! cool , the solution is wonder, haha, thanks!
ReplyDeleteWow! cool , the solution is wonder, haha, thanks!
ReplyDeleteThanks for posting this tip - I was beginning to pull my hair out!
ReplyDeleteThanks my Dear.... now working fine.
ReplyDeletethis solution is great. thankssssssssssssss`
ReplyDeleteThanks for this tip. I too had spent a day and a half reading thru different NewsGroups. What got me into trouble was my anxious attemp to try and convert a VS2003 .Net appl to a VS2005 appl. The conversion went fine. Little did I know what was actually happening in the background. When I tried to return toi the VS2003 appl, I started to receive this 'Auto attach to process . . .' error message. I did some snoopying and decided that the folder in the c:\inet\wwwrot\ folder might have been causing my problem, so I saved this appl folder for the VS2005 appl in another location and rebuilt the VS2003 small application. NO LUCK, I got the same error message. I was bound and determined to not let this get me down. A stroke of luck thru Google led me to your solution. Thanks for this solution. . . .Tom J.
ReplyDeletesame here thank you very much, you saved me hours if not days
ReplyDeleteGrazie 1000
ReplyDeleteThank you, very much
Thanks for your kindly information, this useful for me.
ReplyDeleteThanks and regards
guru
thanks a lot for this tip
ReplyDeletethanks for the fix. saved me a lot of time.
ReplyDeleteThnx i've never find an answer so quickly
ReplyDeleteThis tip is simple but makes lots of "Gentleman" have headaches .... haha ....
ReplyDeleteThanks a lot,
COB
thanks, didn't figure it can be that simple. :D
ReplyDeleteThanks, really in 2 seconds...
ReplyDeleteI love you man.
ReplyDeleteIt works. You're the best. Thanks man.
ReplyDeletethx
ReplyDeleteyet another thank you... wish I found this one earlier because I have keyboard keys imbedded in my head now.
ReplyDeleteThanks a lot and its a good info which put me through my work today, else I would have been blocked at the beginning itself. Thanks a ton !! :-)
ReplyDeleteThanks this saved me some fustration at 5:30 in the morning.
ReplyDeleteHi Friend,
ReplyDeleteI was facing the same problem. I had search for the solution but finally got solution from your post.
Thanks
Pramod Karanjkar
Worked for over 2 hours to fix this issue...freakin Microsoft!!! Thanks for the tip. Saved my sanity.
ReplyDeleteSameer
Love your work!
ReplyDeleteThank you very much for this great fix!!!!!
ReplyDeleteThis worked really well!!
WAOHOOOOOOO!!
ReplyDelete... me too...I went through many sites before finding yours with the right fix. Thanks!
Are you accepting cheques ? have you got a paypal account ?
Glad to hear that it worked for you as well!
ReplyDeleteAt the end of each post there is a link to my "tip jar" (PayPal) where you can leave a few cents if you feel like it.
Cheers,
Egil
This worked. A quick fix... but tricky. Thanks!!
ReplyDeleteThank you very much.
ReplyDeleteThough the document said a lot about this problem, I still could not fix the problem.
No I solve it because of your simple guideline.
Thank you and Google, the appreciation from Taiwan.
thanks man!!
ReplyDelete
ReplyDeleteanyone please help
I uninstalled v2.0 and v1.0 and then installed v1.0 and then reset iis. but no success for me.
Am I doing anything wrong??
I can see the four versions:
v1.0.3705
v1.1.4322
v2.0.40607
v2.0.50727
aspnet_regiis -u in all 4 and then used
aspnet_regiis -i in v1.1.4322 directory and no success at all.
Plz help?
Thank you so much
ReplyDeleteI have tried every way but this very simple
Thank you "" (^_^)
Thanks a lot
ReplyDeleteI simply uninstalled v2.0.50727 and then intsalled v1.1.4322
Although the ASP.NET tab disappeared from the Properties of Default Web Site in IIS but debugging is working fine.
Thanks
VS2003 does not support debugging for ASP.NET version v2.0.50727
ReplyDeleteSo you have to uninstall this and install some other version lower than this.
Also under ASP.NET tab in properties of the Default Web Site you have to select the proper version.
It will surely work.
Thanks
thank you very much!
ReplyDeleteYeah. I have the same problem. Thanks very much!
ReplyDeleteI did exactly what you said and it worked. Thanks!
ReplyDeleteThank you - this post saved me time (I need to get a PayPal account!). I installed VS Express 2005, then VS 2005 (trial), then removed everything and installed VS 2003 (which we actually have the license for). IIS was still pointing to .Net 2.0 paths, and the suggestion did the trick. Breakpoints are now active.
ReplyDeleteWow, thanks a lot. I was trying a lot until I found this tip. Thanks again.
ReplyDeleteLove you!
ReplyDeleteWhew, good thing I found your post dude!
ReplyDeleteIt works! ^_^
Thank You Very Much
great it works after changing Asp.Net Version.
ReplyDeleteThanks alot :).
You saved my day!!!
ReplyDeleteThank you for such a wonderful advice.
a 2 second fix to a 2 hour problem - thanks
ReplyDeleteA few questions to help you figure out what the problem is:
ReplyDelete* Do you get "file not found" errors for all files or only aspx files?
* Do you have more than one web site configured?
OMG it works!
ReplyDeleteI didn't uninstall .NET 2.0. Just pick ASP.NET 1.1 for my application in IIS properties.
I think VS 2003 not going to support .NET 2.0?
Correct; Visual Studio 2003 does not support .NET 2.0
ReplyDeletethe framework 2.0 could be the reason???
ReplyDeletemy app is dev in vs2003 with crystal reports for vs203 but in the server production (win2003s w framework 2.0) the reports don't display the data...really don't display anything...
thanks 4 your help again!
Hi,
ReplyDeleteI tried th following issues
- aspnet_regiis.exe -u
- aspnet_regiis.exe -i
but unfortunately without sucscess
the code of error that throw me is 0x8013134b
can anybody help me?????
Thanks in advance
ReplyDeleteAwesome !! works great !!
Another comment to "A" (9/13/2006 3:54 AM)
ReplyDeleteYou will get "File not found" errors if the web site is configured to use ASP.NET version * on a site but you have not enabled ASP.NET version * in the IIS Manager as a "Web Service Extension"
Ivan; a few questions to identify your problem:
ReplyDelete- which version of ASP.NET did you unregister
- which version of ASP.NET dir you register
- which version of Visual Studio are you using?
- which version of ASP.NET is configured in the "ASP.NET" tab in the IIS Manager for the web site?
Thanks Egil, this solves my problem
ReplyDeleteThanks for this. I had done the same thing a few days ago during my own tinkering and it didn't help a thing. I read your blog and figured, what the heck, let's try it again. Now it worked :) Awesome.
ReplyDelete1 hour of troubleshooting, and frustration... I find your post, and it's fixed in 15 seconds. Thank you!
ReplyDeleteYes, after installing Asp .Net 2.0, I got this error.
ReplyDeleteAfter changing it back to 1.0, it works again!
Thanks for the great help.
ReplyDeleteHist post help me a lot.
Add to my best sites! Really nice!
ReplyDeleteU ROCK...
ReplyDeleteThx Man... Was getting crazy with this.. U are the man
ReplyDeletebless u ...
ReplyDeletei hav seen lot of help but all in vain.thanks ,it has solved my problem
ReplyDeleteHi,
ReplyDeleteU R solution is very nice and easy to understand..I cleared my error..
Thanks,
padma
I love you!
ReplyDeleteI was close to pulling my hair out but you have saved me from baldness!
i got this error.
ReplyDelete"you do not have permission to debug on this server. Verify that you are a member of the Debugger Users group on ther server."
I got crazy with this error. I have tried all kinds of things. None works for me.
Hi timmy.
ReplyDeleteAre you member of the "Debugger Users" group on the server? You can verify by running "Computer Management" and going to:
- System Tools
- Local Users And Groups
- Groups
Check if you are member of the group "Debugger Users"
thank you thank you thank you!
ReplyDeleteThank you.
ReplyDeletethank you
ReplyDeleteThe problem is Solved
ReplyDeleteThank you all
I have same identical problem as described. When i press F5 in VS.NET 2003 web application, i get : "Error while trying to run project: Unable to start server. There is no managed code running in the process. In order to attach to a process with the .NET debugger, managed code must be running in the process before attaching", and in the Output window I get "Auto-attach to process '[1520] aspnet_wp.exe' on machine 'SV' failed. Error code 0x8004000e.
ReplyDeleteI followed the exact steps with aspnet_regiis -u and -i and still get the same problem. Now even got so far as uninstalling .NET framework 2 completely. Still get same error.
Another strange thing is that when i try to browse the site from IIS (right-click on website and Browse), I get error HTTP 403: "This error (HTTP 403 Forbidden) means that this program was able to connect to the website, but it does not have permission to view the webpage."
This doesn't happen to all sites, but it happens to any NEW ASP.NET project that I create from VS.NET 2003.
Wasted a whole day already on this! What could be the problem!
The problem is the "HTTP 403 Forbidden" error. The ASP.NET application is not able to run so Visual Studio is not able to attach to the process.
ReplyDeleteHave you verified the security on the directory where your site is created? The account used by ASP.NET to run the site must have read access to the directory.
Are you able to browse static contents on the site (html, gif, etc)?
Apparently the HTTP 403 error when trying to browse the site from IIS was due to not having specified a default.aspx page, because once i did that it was ok.
ReplyDeleteHowever I still can't debug because of the same error: "Error while trying to run project: Unable to start server. There is no managed code running in the process. In order to attach to a process with the .NET debugger, managed code must be running in the process before attaching"
Same kind of error pops up when try to manually attach to aspnet_wp process.
I've put all users (my user name, ASPNET which runs the aspnet_wp process, and the rest of the users created by ASP.nET) into the Administrators and the Debuggers groups to make sure it's not a problem of security.
Thanks
first thing ur error is different from the original post. so trying same solution is not the exact way. second, do u change ur IP, if so thats a big headache.
ReplyDeletethirdly try running services from Administrative Tools->Services and restart application.
But first of all check for the correct solution, by googling, (as u'll get a variety of solutions), posting exactly ur Error Code, not similar message or similar error code.
regards
awansh
That worked like a charm. Thanks!!
ReplyDeleteThanks for save us time and good solution but i want solution on framework2.0
ReplyDeleteHave you tried unregistering and registering ASP.NET 2.0 for the web site you have problems with?
ReplyDeleteIf it doesn't work; which version of Visual Studio are you using and which error message do you get?
really awsum.................................. it works thanks
ReplyDeleteVERY GOOD FOR ME. EVERYTHING WORKS FINE NOW
ReplyDeleteHi thanks for this great tip. I was also working on this error for the past day or two and your tip solved it in seconds.
ReplyDeleteThanks a lot
Here is simple solution:
ReplyDeleteFor those who has VS 2003 and VS 2005 on XP.
Goto - Control Panel- Administrative Tools - Internet Information Service.
Then click on Local computer name - Web site - Default Web site
Right click on Default Web site and select Properties
Then go to ASP.net folder - AND CHANGE the version to 1.1.4322 say ok and try.
Thanks.
Thanks Man, Thanks.
ReplyDeleteplease explain me how i can run aspx program in my machine, whan i got the error---debug error 0x8013134b
ReplyDeleteThank you for this tip... It worked like a champ!
ReplyDeleteWOW..
ReplyDeleteThank you very much for this tip..
Prasant
Thank you, solved my problem.
ReplyDeleteYour tip worked for me. Thanks a bunch
ReplyDeletethanx for help me ..
ReplyDeleteyour tips that is first uninstall the visual studio 2005 with help of asp_regiis -u , and then go instal the visual studio 2003 with the help of asp_regiis -i at .net command prompt.
and the my web page run smoothly..
thanks for tips
Thanks for the help;)
ReplyDeletethank tou men, truly, that's the best solution to my problem.
ReplyDeleteYou know, I found wars on the net about that pb, but without a real solutions,
but yours was simple, short , clear and it works!
thanks again ;)
ref: to them who found a fix for this bug..
ReplyDeletehow did you even come up with such thing ( problem with version change ).. when the error is auto-attach process failed for aspnet...
i am curious,, but yet you are the bst.
thanks
if you have anyting for me please reply to kishorekodru at gmail dot com.
thanks once again, it solved the problem in 2 minutes... i was sitting whole day to figure out why?
Thanks a lot man.. Its simple yet very nice..
ReplyDeleteThanks A lot..... That was simply superb
ReplyDeleteEasily the best fix I have ever found on the internet. This could have taken me hours to figure out (thanks to Microsofts cryptic message) but this allowed me to solve the issue immediatly. Thank you very much.
ReplyDeleteThanks a lot
ReplyDeleteHi,
ReplyDeleteIam not able to change the Asp.net version from IIS manager..That the combobox have only one value..I didnt see like 1. something like ..What can I do nv? plzz assist me ..
Thanks in advance ,
Merlin.
Which versions of ASP.NET do you have installed?
ReplyDeleteYou should have one sub directory here for each version:
C:\WINDOWS\Microsoft.NET\Framework
Awesome fix! Thanks! I contacted Microsoft directly about this, and after 3 days of waiting with no response, I decided that they must not know the answer. Thank goodness Google brought up your post!
ReplyDeleteThanks a lot... it solved my problem... thanks again
ReplyDeletegood it is ok
ReplyDeleteThanks. It solved my issue as well.
ReplyDeleteThank you very much. I had searched the solution for few days and now get it to work. Many thanks again ^^
ReplyDeleteError 2 'UpdatePanelUpdateMode' is ambiguous in the namespace 'System.Web.UI'.
ReplyDeletewat shud i do frnds suggest me
UpdatePanel inmy design page is not working, n also there is an error showing that
ReplyDeleteError:
'ScriptManager' is ambiguous in the namespace 'System.Web.UI'.
What am soppose to do?
Mail me ur ideas to this id pls
pradi_vijay04@yahoo.co.in