Jun 1, 2010
I am using VS 2008 for development of a web application and IE 7.
The website as usually has some java script and some server side code files (different layers).
For some reason when I start the application in the debug mode (by hitting F5), the break points in the JS are not hit. I get the usual error as no symbols are loaded. But the break points in the CS files in the layers are hit.
If I use (CTLR + F5) and then attach the IE process to debug, then I am able to hit the break points in the JS file. But in this scenario I cant debug the CS files (I presume this is the expected bahaviour).
EDIT: In the IE (properties dialog), 'disable debugging' are unchecked.
why in the F5 mode I am not able to hit the debug points. The same used to work in the different machine not sure what is wrong in this one.
I am developping an MVC3 RC2 application and just after hitting F5 on my asp web application, I am getting this error message program ' w3wp.exe: Managed (v4.0.30319)' has exited with code -2 (0xfffffffe).So I am totally unable to debug my application
I am a new in asp.net world (and in asp). I have a problem in asp.net page.... i wish to debug this page to try the error but I don't I can not debug I have downloaded all proj from "Team Fondation" and then I have took all page in check-out. The server, where I develop is the WEB serve test.
I'm developing a large application in C# Visual Studio. It's reached the point where it takes about a minute to build the entire thing. In order to speed the debugging process, I want to be able to run the program with a debugger without building the entire thing. This seems like a very basic thing one should be able to do, but I've been unable to figure out how to accomplish it.
I have found the area in Options under "Projects and Solutions/Build and Run" where you can specify what VS should do "On Run, when projects are out of date:". I've tried changing it to both "Prompt to build" and "Never build," but it still always builds my entire project whenever I start debugging.
At the moment, I'm circumventing this by starting the program from its executable and attaching the debugger to it, but this is a bit of a hassle and it feels like I should be able to get VS to understand I don't want it to build when it debugs.
I used to be able to attach to my w3wp process and Debug my web application, but this is not working anymore. I have no idea what changed to break this. I'm using Visual Studio 2008 SP1. And I'm debugging in IIS, not using ASP.NET's own server (i.e. I don't Run my project, I simply attach to a running process (w3wp).
My breakpoints simply have the "breakpoint will currently not be hit. The source code is different from the original version."
What I have tried:
Did a solution Clean. Did a solution Rebuild. Made sure that compilation debug=true in my web.config file. Deleted the bin folder Restarted Visual Studio Restarted IIS Restarted my Computer Added a simple Response.Write to ensure that the latest DLL is being used. It is. Made sure that Debug ASP.NET is checked in my project properties. It is. Made sure that all my projects are compiled in my build configuration. They are.
I moved my site to a Windows 2008 server, reinstalled VS2005 and now I am unable to debug my application. When I click start debugging, the button is greyed out until the browser launches and then it returns to normal. In other words VS is just launching the app without attaching to it. I have tried running as administrator and played around with the authentication settings to no avail. I am running with Forms authentication.
I just upgraded to Windows 7. On Win XP, I could set breakpoints in an ASP.Net project and those breakpoints would hit from any browser/tab on my machine. Using Windows 7, that doesn't work. The browser that launches when I hit F5 does, but no other instances/tabs do. If I try to explicitly attach to process to attach to another browser instance, it still doesn't hit.I need to debug this way because an error is occuring only when I enter the application by following an external link.
I am using VS2010 and am working on an ASP.NET web application for .net 4.0.
I have created a file called StringUtilities.js and placed it in a subfolder of my application called Scripts.
The entire content of the file is listed here:
In one of my .aspx pages I have the following code:
On a button's "OnClientClick" (for example) I call the method encodeText() and everything works fine.
Today I added the method updateImage() which calls StringUtilities.js - updateAttribute() method, also added today.
If I open that unit in VS2010 and place a break point in the source code for the new method it turns white and says:
"The breakpoint will not currently be hit. No symbols have been loaded for this document.".
What gets even stranger (this is so hard to exaplain)....
Before today I did not have the method updateAttribute() in that .js file. So even though my source editor is showing all of my new source code changes, if I trace the previous method that did exists - htmlEncode(), the trace lines in the editor are highlighting where the lines "used" to be. which is near the top of that file as if my new code was not there.
This is weird: When I try to debug ASP.NET web application, Visual Studio 2010 gives me this message "Script debugging of your application is disabled in Internet Explorer", but in my IE 7 (Internet Options --> Advanced), both "Disable Script Debugging" checkboxes are not checked.
Basically what I am trying to do is have my webpage project folder located directly on my local machine (ex. Local #1). Our database is located on a server (ex. Server #1) . I am building my web applications on my local machine and then trying to debug them in Visual Studio 2008. Only every single time I click to debug my project I get a "Security Exception" error that looks something like the following...
"Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=184.108.40.206, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."
I'm somewhat leaning towards the fact that I need to connect to the database to pull information from it and I don't have the proper permissions is the reason why this is happening but I've also read that it can be something that deals with improper configuration of my Web.Config file (i.e. I do not have something enabled).
Note #1: A co-worker of mine is having the same problem if he tries to put the project locally and then debug it. He has full administrative access to the DB and everything else.
I have not been able to open css files in VWD, I must have sone something I don't know. I can open them in wordpad, and WebDevelopment Server still displays properly so the file is not currupt. Is there a setting I messed up in web.config or somewhere else?
I am slowly working out the setup issues with Visual Studio 2010 Ultimate on my newly installed Windows 7 Professional Machine. I was running XP and copied most of my files back over using the 'Windows Easy Transfer' tool I used prior to installing (not an upgrade) Windows 7.
When I try to publish my website to wwwroot in 2 ways. When I select 'Delete all existing files prior to publish' I get the following error:
Error deleting file 'about.aspx'. Unable to delete 'about.aspx'. This function is not supported on this system.
When I use 'Replace matching files with local copies' I get this error:
Unable to add 'about.aspx' to the Web site. Unable to add file 'about.aspx'. Access is denied.
Debug-Start Debugging/Debug-StartWithoutDebugging OR Project ASP.Net Configuration launches Dreamweaver. It started lastnight, I had both Deamweaver and VWD 2008 express open at the same time - (I was looking at JQuery in the Microsoft and Dreamweaver enviroments simultaniously). After the first tie this happened, I closed down Dreamweaver (CS3) and it opened when I tried to run my VWD project. I reinstalled VWD 2008 express, IIS and disabled Dreamweaver (renamed the exe). Dreamweaver still came up.
im facing problem to access classes out side my project folders. for example if i want to use some methods from store.vb file inside my project i get error : Name Space is not defiend, i have tried all ways such as import sdf.ITracjer.Data
i can't fetch the Store Class Methods or Function because its out of project directory, as its showin in image.
I want to debug EditPanel.debug.js file of HTML Editor, but it never shows in VS 08 and Im sure it executes to that line.What I did to enable debuggingUnchecked both 2 checkboxes for disabling the debugging
Change following line
[ClientScriptResource("AjaxControlToolkit.HTMLEditor.EditPanel", "AjaxControlToolkit.HTMLEditor.EditPanel.js")] to [ClientScriptResource("AjaxControlToolkit.HTMLEditor.EditPanel", "AjaxControlToolkit.HTMLEditor.EditPanel.debug.js")]