Visual Studio :: Cannot Get Attached Debugger To Page In Website Folder
Feb 8, 2011
I'm using Vs2010 professional. I was working with a large WebSite (folder) project at work using IIS7 and tried to attach the debugger to the w3wp.exe for debugging an aspx page in IE8 after setting breakpoints in the javascript for the page and in the Page_Load in the code behind. I got a "first chance exception of type 'System.InvalidOperationException' occurred in System.dll" in my debug output, so I gave up for the moment. I created a default website project in the root of IIs7, and set it up as an application in IIs7 with the default app pool.
I tried entering a little javascript in the head, and set a breakpoint, and set a breakpoint again in the Page_Load. I attached the debugger again to w3wp.exe. I see the assemblies load in the debug output and nothing happens:
Ignoring attach security warning for process C:WindowsSystem32inetsrvw3wp.exe, owned by IIS APPPOOLDefaultAppPool [administrator]
'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_64mscorlibv4.0_4.0.0.0__b77a5c561934e089mscorlib.dll'
'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_64System.Webv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Web.dll'
'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystemv4.0_4.0.0.0__b77a5c561934e089System.dll'
'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Corev4.0_4.0.0.0__b77a5c561934e089System.Core.dll'
'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Configurationv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Configuration.dll'
'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Xmlv4.0_4.0.0.0__b77a5c561934e089System.Xml.dll'
'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILMicrosoft.Build.Utilities.v4.0v4.0_4.0.0.0__b03f5f7f11d50a3aMicrosoft.Build.Utilities.v4.0.dll'
'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Runtime.Cachingv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Runtime.Caching.dll'
'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Web.RegularExpressionsv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Web.RegularExpressions.dll'
'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_64System.Datav4.0_4.0.0.0__b77a5c561934e089System.Data.dll'
'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Drawingv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Drawing.dll'
'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILMicrosoft.JScriptv4.0_10.0.0.0__b03f5f7f11d50a3aMicrosoft.JScript.dll'
'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILCppCodeProviderv4.0_10.0.0.0__b03f5f7f11d50a3aCppCodeProvider.dll'
'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Fileswebsite297987469de3b823App_global.asax.g3ldh1jy.dll'
'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.ServiceModel.Activationv4.0_4.0.0.0__31bf3856ad364e35System.ServiceModel.Activation.dll'
'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Web.Extensionsv4.0_4.0.0.0__31bf3856ad364e35System.Web.Extensions.dll'
'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Runtime.DurableInstancingv4.0_4.0.0.0__31bf3856ad364e35System.Runtime.DurableInstancing.dll'
'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Web.Mobilev4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Web.Mobile.dll'
'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.ServiceModelv4.0_4.0.0.0__b77a5c561934e089System.ServiceModel.dll'
'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSMDiagnosticsv4.0_4.0.0.0__b77a5c561934e089SMDiagnostics.dll'
'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Xaml.Hostingv4.0_4.0.0.0__31bf3856ad364e35System.Xaml.Hosting.dll'
'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Fileswebsite297987469de3b823App_Web_t1ltfooj.dll'
'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Fileswebsite297987469de3b823App_Web_myfv4sgi.dll'
The thread '<No Name>' (0x22cc) has exited with code 0 (0x0).
I am using 64 bit Windows 7 Professional.
View 1 Replies
Similar Messages:
Feb 24, 2010
Im having a strange problem which i never experienced before, the problem is my visual web developer 2005 express edition is not getting attached to the debugger, i mean when im running my web application it is not debugging the program if im putting any breakpoint, more over i uninstall and again installed visual web developer it worked fine for first time but again it is not working. i only difference is i have Internet explorer 8.I dont exactly know the problem. does any one faced similar problem
View 1 Replies
Mar 2, 2011
The several different environments (e.g. live, demo etc) of my web app are differentiated by config settings in a folder called EnvironmentConfiguration. Whenever I update one of the sites, I delete the EnvironmentConfiguration folder from the precompiled site before copying the website files over (i.e. in order that the EnvironmentConfiguration folder in the deployment location is not replaced). Just to save mistakes, is there a way I can get Visual Studio not to produce the EnvironmentConfiguration folder when it precompiles the site for me?
View 1 Replies
Apr 8, 2010
In the Visual studio IDE is it possible to step backwards in the debugger? If this is not possible,can I somehow trace my step backwards in the compiler?
Also if I am stepping through C# code in the debugger, is it okay to add documentation in the file while I am debugging? I tried this and recieved a pop-up message box informing me that the code had changed. Otherwise the IDE seemed forgiving in regards to comment changes in debug mode. Also I guess this might also lead into the question of wether it is acceptable to add code during debug mode?
View 1 Replies
Oct 4, 2010
My Visual Studio debugger detaches every time when I try to access a property in a web application. I don't use Visual Studio's inner webserver, just the standard IIS. It seems like that property has somewhere a stack overflow
(Server Application Unavailable)
, but I can't find it. There is an error message in the EventLog:
aspnet_wp.exe (PID: 5200) stopped unexpectedly
I've tried to delete all temp folder including ASP.NET temporary files, no change at all. I've tried to start devenv.exe /log
but in the log xml, there was hardly any exception. Is there any way to get that exception which causes the debugger to stop/detach?
Plus info is that another colleague can debug that property. I've tried to get his vssetting file, but no change.
View 1 Replies
Aug 4, 2010
i'm trying to debug some code i.e. trying to get the values of some parameters
public SqlDataReader GetAllCompaniesByType(int type)
{
SqlParameter[] sqlp = new SqlParameter[2];[code]....
but for some reason the debugger keeps detaching. It is not just this code but happening everywhere it is driving me INSANE..
View 3 Replies
Apr 26, 2010
If so; where can I get it?
View 2 Replies
Sep 13, 2010
For some reason, when reading from an Access database, values that are supposed to be INT are showing up as HEX
dr["NumSent"]
0x00000000
dataSet.Tables[0].Rows.Count;
0x000004ba
dataSet.Tables[0].Rows.Count.ToString();
"1210"
View 2 Replies
May 4, 2010
I was wondering if there is an option to change the debugger url when I initialize the debugger. I want it to start off at http://localhost:xxxx/controller/view rather than just http://localhost:xxxx/.
View 2 Replies
Aug 24, 2010
I am attempting to debug my Visual Studio 2005 project. I have Internet explorer 8 and it's running on IIS.
When I hit the "debug" button, a new Internet Explorer browser window opens and my ASP VB .NET application loads normally. However, Visual studio returns back to regular editting mode and I can hit the "debug" button again. No break points hit but my web page still runs and loads normally.
The Output screen use to show Web.Server(exit 0) but now it doesn't show anything.
View 1 Replies
Mar 15, 2011
I have an application in Visual Studio 2008. I have been working with it for some time. Today, suddenly, it will not debug, or more specifically it does not stop at the breakpoints I created in Visual Studio. It just ignores them. I tested the break points by adding one at the opening of the Page_Load event and nothing. If I put in a mistake on purpose the application will build, the internet explorer opens, and gives me an error report. It has never done this before. Usually it stops IE from opening and gives me a list of errors at the bottom of the VS screen. I want my old VS back. I don't see how this could have changed it but I'll mention the things I've worked on recently. I've been trying to configure the session states in the web.config page, and then recently I started a new web page with a conection to a database and gridview. I have restarted VS and nothing has changed.
View 2 Replies
Mar 30, 2010
Usually using Visual Studio's debugger is a breeze. Scanning through Locals quickly shows the values of variables, etc. However, I'm at a loss how to find out the values contained in session state variables? Can anyone give me a hand?Lets say I put a breakpoint right after:
Session("first_name") = "Rob Roy"
How do I view the value contained in Session("first_name") from locals?
View 2 Replies
Sep 22, 2010
Is it possible to determine at runtime when my site is running in the debugger? I want to use one setting for production and another when I'm running in the debugger.
View 3 Replies
Sep 16, 2010
I've came to a dead end. Visual Studio's Debugger indicated that the error is in the 'objConnection.Open()' Try
View 2 Replies
Apr 27, 2010
I have a Windows Server 2008 x64 to develop applications, I installed the remote debugger rdbgsetup_x64.exe from
http://www.microsoft.com/downloads/details.aspx?displaylang=es&FamilyID=440ec902-3260-4cdc-b11a-6a9070a2aaab (spanish) Run the setup wizard, use the LocalSystem user to run the service and allows any computer to connect to the debugger.The configuration of the firewall is off.The configuration of the firewall with advanced security is:
inactive domain profile
inactive private profile
Inactive Public Profile
I found that the w3wp worker process runs on 32 and msvsmon runs 64.Now the client is a Windows XP x32 with Visual Studio 2008 SP1.either constructing a web application to check the operation of the treatment and get the following error: Unable to start debugging on the web server. The web server does not support automatic attaching This is Most Likely Because the web site is using ASP.NET version 1.0 or 1.1. Upgrade the website to ASP.NET 2.0 or manually attach to the web server process using the 'Attach to process' dialog. "
View 1 Replies
May 15, 2010
I have debug=true both in the web.config and in the requested file but it still won't stop.
View 1 Replies
Jan 22, 2011
I have been developing my web site for a while, everything was ok. The hard drive of Visual Studio 2010 installation was damaged, after re-install VS 2010, every time I start debugger for my asp.net web site, VS pops up a diaglog to ask for user name/password.How to disable that popup? Is is just debugging, security is not an issue at all.
View 3 Replies
Dec 21, 2010
After attaching debugger when i run my application it's give me error "Could not find stored procedure 'sp_sdidebug'".I am using 1.14 framework in backend sql server 2005
View 3 Replies
Mar 15, 2011
why after installing VS2010 SP1 starting and stopping the debugger takes forever?
View 1 Replies
Jan 12, 2010
I have recently installed VS2008 standard edition after using VS2008 express and VS2010 Express (on this same laptop) running Windows 7 Build 7100.
On clicking "Debug" the error appears:
"Unable to start program
[URL]
The debugger is not properly installed. Cannot debug the requested type of code. Run setup to install or repair the debugger."
This is for a Web Site - File System originally created in VS2008 express.
View 5 Replies
Jul 21, 2010
Just to test, I created a blank website and a blank web site project.
When I added a referece to web site by doing right click and add reference it added the dll inside a BIN folder but on ther other hand when I did the same for a web site project it created a reference folder for me and then added the dll under the reference folder.
View 2 Replies
Mar 5, 2011
I signed up with a new hosting company that uses Plesk. I use Visual Studio 2005 It appears that my rootfolder must be named httpdocs, which means every website I create would have the same name. If I do nothave my aspx files stored locally in an httpdocs folder, then I cannot synchronize with the server when I usethe copyweb dialog. Also Visual Studio 2005 creates a folder using the website name in the C:Documents and SettingsuserLocalSettingsApplication DataMicrosoftWebsiteCache for storing website settings, but cannot have multiple folders of same name, i.e., httpdocs, so this seems to be a conflict with Plesk. What can I do to resolve this?I talked with support at the hosting company, but they do not know Visual Studio at all. I am thinking I need to switch to
View 2 Replies
Jan 15, 2011
I am using vs2008 pro. my problem is that javascript debugger is not working on mozila firefox but working fine on IE8.
View 1 Replies
Jun 2, 2010
Have you experienced this?
[code]....
Symptoms
- For each identical text box I add in this way, I add about 350ms to the page load time while in debug mode. My page takes about 5-7 seconds to load or refresh in its current design, but times are somewhat variable.
- If I disable debugging, with or without controls on the page, response is fast, about 50ms.
- If I remove the controls from the page, the time drops to a fixed 200ms duration.
- CPU is 51% (dual-core) throughout the delay, and my laptop processor scales to 97% maximum frequency.
Contraindications:
- All of this is the initial GET, no posts or other activity involved.
- I've run SQL Profiler and found response times to be acceptable, the query is not repeated, and no unusual data activity is present.
- I've installed wireshark and do not see unusual network resolution or other activity.
My environment
- I've recently upgraded from VS2010 RC2 to RTM.
- I'm running Windows 7, and my computer is fairly new with minimal applications.
- My model is a persistence-aware EF repository, referenced in another project, using Windows Integrated
Security to connect to a SQL 2008 R2 database.
Here is an example:
[Code]....
Generates:[Code]....
Note that neither repeated access to the same expression or access to related entity properties caused degradation in my test.
View 9 Replies
Sep 2, 2010
Just as the subject says, my VS'05 installation hangs when trying to create a new website. I even installed a fresh version of VS08 along side '05 and '08 is doing the same.
View 9 Replies