C# - Visual Studio 2010: Breakpoints Don't Work After Rebuild
Jan 25, 2011
I'm working on a VS2010 Solution containing an ASP.NET Website Project and 8 c# class libraries. All projects are set to compile under .NET 3.5
When I set a breakpoint somewhere in the class libraries, the debugger breaks correctly and everything is fine. If I then stop debugging, modify code in the class library, and start debugging again (which of course rebuilds the libraries which were modified) the debugger ignores the breakpoints.
Has anyone else experienced anything like this? I'm lost and it's extremely frustrating to not be able to debug after making even a single line change and rebuilding.
Visual Studio 2010 Ultimate Windows 7 Professional 64-bit
View 2 Replies
Similar Messages:
Feb 14, 2011
Im working on a website project with Visual Studio 2010 from 2 different computers (home & work).
In Dreamweaver Im used to FTP to upload/download files to/from a webserver to syncronice my files on the current computer Im working on.What is best option in Visual Studio 2010 to sync project files between home & work computers? I have seen there is a built in FTP, but seems only it can upload files, limited functionality?
View 1 Replies
Feb 1, 2010
I have a web application project. I have DLLs that I reference in the project stored in my bin/ folder. Well, whenever I do a rebuild or clean from Visual Studio, it will delete everything in that folder. How do I prevent this from happening?
View 3 Replies
Apr 1, 2010
How can we Rebuild solution in vs2008 without visual studio?
View 1 Replies
Mar 17, 2010
I have my project in VS2005, its is working fine last few years, But now durning development i face problem regarding breakpoints, here Im unable to get stoppage at breakpoints, I have change setting of security in Internet options add localhost as trusted site, but still its remain the same.
I also try Attach to process.... option from the debug, here webDev.WebServer process of running site is disable. Now Im totally unable to debug my project.
View 6 Replies
Apr 16, 2010
I've got a solution that contains several projects. There is a main exe project which I'll call MyProj.exe that references several other projects which reference yet other projects in the solution. Additionally a few projects in the solution are not in MyProj's reference chain and aren't regularly built. There is 1 project (a class library project) named Payment which is giving me a particularly hard time. The two of MyProj's references have a project reference to Payment.dll. So the reference heirarchy looks like this:
- MyProj.exe
- Transactions
- Payment
- Accounts
- Payment
When I right click MyProj in the Solution Explorer and choose Build, everything works fine, but when I choose Rebuild, I get the following results:
Payment.dll is deleted but never rebuilt. It doesn't exist in the output directory MyProj.manifest in the output directory doesn't have a reference to Payment.dll. (What is this file? I don't remember normally seeing it in other project's the output directories.) 19 of the project .pdb files are deleted and not rebuilt This is a big problem for me because this is a ClickOnce application and when I'm publishing, Payment.dll isn't getting included in my deployment which is a problem I suspect is closely related.
View 1 Replies
Jul 6, 2010
I tried to install Visual Studio Prof 2010 trail version in my system, but i got an error saying 'Please remove/uninstall Visual Studio 2010 load test controller' to proceed installation. i uninstalled my previous VS2008 software from system and i could not find anything like 'Remove/Uninstall Visual Studio 2010 load test controller' software in my Add/Remove Programs.
View 1 Replies
Aug 5, 2010
When I try to set breakpoints in a JavaScript code file, I get the warning, "The breakpoint will not currently be hit. No symbols have been loaded for this document."
This is a fairly large project that was working normally under VS 2008. I just installed VS 2010 Pro Academic, and this is one of the new problems that have appeared. It's running under Win 7 64-bit, IE 8, and both of the IE "disable script debugging" options are turned off. Debugging is enabled in the web.config file. The JavaScript code in question is being executed normally, and inserting "debugger" in the code works as expected. While running under debugging, you can open the corresponding script document from the Solution Explorer, Script Documents, and insert breakpoints just fine. Attaching to the IE process (from the Debug menu) doesn't seem to make any difference.
Basically, everything I can think of looks normal, and yet I can't insert breakpoints into the original source code with VS 2010. The problem is reproducible on more than one JavaScript source file. I rebooted and consults The Great Google, all to no avail.
This is a real headache for development. Has anyone else discovered a fix for this?
(UPDATE: I spent a few hours and created a new project, and copied all of the files from the original to the new one. Now, I can set breakpoints n the new project, but still can't in the original. Something's different between the two, but it isn't clear what it could be.)
View 12 Replies
Aug 7, 2010
Platform : Visual studio2010 , MVc2 and sqlserver 2008
I wrote query in Linq for order by. Following is the code snippet for the same,
[code]....
It works in on my local machine but in live site it doent work correctly. I mean it won't show sorting/oder by. In live
site we used sql server 2005, does this going to make any difference ?
View 1 Replies
Jun 8, 2010
I replaced VS Express 2008 with 2010 on my Win 7 laptop a few weeks ago. I have a small simple website with just a master page and a default page. After making changes to the CSS file, it took no effect at all on my webpage's font and colors when viewing it in design mode or run mode. But then, it works when I test my webpage a few days later. I don't get it. Software either work or don't. Can't be both. This latest version of VS Express is buggy. Does anyone have this similar bug?
View 2 Replies
Dec 6, 2010
How does the login work in the webtemplate given in visual studio 2010, I tried to set the redirection page in the login page. no control and no rerouting is available.
View 2 Replies
Aug 27, 2010
I am using code I have always used in other version of VS for binding to a list box.
After binding a dataset to a ListBox in VS 2010, render the page, and cilck any item in the list, the on change event always goes back to the first item in the list!
The following code to run the list box runs once...
if (!Page.IsPostBack)
DataSet ds = UWA.AWHWebServices.GetAllBranches();
LBCSC.DataSource = ds;
LBCSC.DataTextField = "BUSN_ROLE_NM";
LBCSC.DataValueField = "BUSN_ROLE_TYP_CD";
LBCSC.DataBind();
Now instead if I load the list box using Items.add, render the page, and then click on any item in the list I get the correct item selected.
for (int i=0;i<ds.Tables[0].Rows.Count; i++){ LBCSC.Items.Add(ds.Tables[0].Rows[i] "BUSN_ROLE_NM"].ToString());}
Is this a VS 2010 Bug?
View 2 Replies
Nov 24, 2010
When editing a UserControl (.ascx) in my project, it forces a rebuild of the website when requesting the page. This really gets annoying when programming any large project, the build time goes up to 15sec+.
In the last few days I found myself looking at a blank screen more often than programming. This gets frustrating, all the waiting.
View 1 Replies
Jul 12, 2010
I have a asp.net mvc project in VS2010. In it I have a view called main.aspx that contains alot of javascript that frequently needs to be debugged. I can set the break point in the aspx page's javascript at edit time in VS2010. It appears as a mapped breakpoint. When I launch the debugger/IE browser, the javascript break point never gets hit. If I add a debugger; statement to my javascript I can launch a new visual studio instance and debug javascript. Unforunately, this requires a second visual studio instance and I have to set breakpoints all over again when I do it this way. Also, I have to remember to remove the debugger; statement when I am finished debugging. Is there a better way to get client side breakpoints working in Visual Studio 2010/IE?
View 3 Replies
Sep 3, 2010
I had the strangest bug yesterday while trying to debug in vs.net 2005....
I had an '05 web application. I clicked the "Run" button to start debugging, and the webpage popped up fine. I could run through the pages fine. Everything seemed fine....UNTIL!
Until I tried to start inserting breakpoints into my code. The application ignored them. In addition, I noticed my little green visual studio "Start Debugging" arrow (which is normally greyed out while in debug mode) was green. It was as if visual studio completely detached itself from my website I was trying to debug.
After playing around with it for a while, I realized I also had a vs.net 2008 solution open as well. My '08 solution wasn't in debug mode or anything, it was just sitting there open. I just happened to close it, not thinking anything of it, and presto! My 2005 debugger started working again!
So basically, I can't debug an '05 solution (or at least a web solution, as that's all I tried) while I also have an '08 solution open.
View 2 Replies
Sep 1, 2010
We've currently migrated our Classic ASP web to ASP.NET. Our greatest hope lies in using the Visual Studio for debugging. But this hope was destroyed devastatingly.There are lot of issues we encountered:No syntax highlightingNo breakpoints (message: "This is not a valid location for a breakpoint.")No Intellisense
We cannot find the reasons. But we think VS can't resolve our include links correctly. (In our case we remove all inludes and the page was highlighted again.)That's why we have a lot of questions:Can VS2008 handle includes (<!-- #include file="myinclude.inc" -->) at all?Are there any constraints we need to know? Maximal lines to include? Including<% .. %> or <script language="vb" runat="server"> .. </script>?
What settings have to be made?
View 3 Replies
Jul 29, 2010
I have a Silverlight site hosted in an asp page, it has been developed using vs2010 using .net 3.5 framework and silverlight 4. It all works on my dev box. However when I publish the site and get it deployed I get the error:
Could not load file or assembly 'Moe.Tactical.Ttas.Web' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
Description: An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.BadImageFormatException: Could not load file or assembly 'Moe.Tactical.Ttas.Web' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
I have checked that the ISS asp setting are using 2.0.50727, and that all my references are using that runtime also.
I am not sure what to do to work out what the missing dependencies are at this point (I don't have access to the deployment box, I will have to go and sit with a system admin).
View 2 Replies
Jul 15, 2010
I'm thinking about installing vwd 2010 or vs 2010 express but want to know if either offer integrated jquery support.
View 4 Replies
Mar 20, 2010
I am using VS2008, SP1. I am unable to put breakpoints in my client side javascript code. Wherever I try to put the breakpoint, I am getting the message: "This is not a valid location to put the breakpoint". I have the js intellisense working fine. I also unchecked the two "Disable Debugging" checkboxes on IE. Due to this problem, I am unable to debug the js in VS 2008.
View 3 Replies
Jun 30, 2010
In Visual Studio 2008 while debugging an ASP.Net website I set a breakpoint in the codebehind page. I refresh the page or submit to call the method, the breakpoint is hit. Then I delete the breakpoint and continue execution. I make a change to the codebehind page and save it. I submit or refresh again and the deleted breakpoint is back! It is hit again, and I delete it again. I have tried delete, disable, nothing works it keeps coming back if I make a change to the page. It is extremely annoying and unproductive. The only way I have found to make the breakpoint permanently go away is to use the Debug menu Delete all breakpoints item, which is obviously less than ideal. I have been able to reproduce this on other developers machines also. What is going on here? Is this by design? Is it a bug in VS? How do I keep these zombie breakpoints from resurrecting?
View 4 Replies
Feb 23, 2011
Is there anything special to do with Windows 2008 R2 Server and Visual Studio 2010 to get Oracle quereis to work? I have the same DB Connnection.string I have used before and it works. I am at a loss here.
View 6 Replies
Oct 13, 2010
nfortunately, I can't get my breakpoints to work when in debug mode in Visual Studio 2008 (ASP.NET 3.5, Windows 7, IIS7). The website compiles and opens in debug mode, but the breakpoints themselves generate the following error message:"The breakpoint will not currently be hit. No symbols have been loaded for this document."There are some recommended solutions online, but for various reasons, either they haven't applied or I haven't been able to make them work. I've been trying to find the solution for about 12 hours now, and I'm getting desperate.(Note 1: This problem is specific to this website. I do have other websites that I open in VS2008 where the breakpoints work fine.)(Note 2: There is only one website/project associated with this problem. This website does not have multiple projects.)
View 1 Replies
Apr 14, 2010
After opening an existing proyect in visual studio 2010, the web form in design view doens't work. All server control puts a gray box with the following message : Error Creating Control - imgTransportistaSession state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration><system.web><httpModules> section in the application configuration.
View 4 Replies
Aug 14, 2010
is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site project
my current project references
i have a very annoying iis problem
iis server stops working until app pool is recycled
i am hoping that new visual studio (net framework 4.0) may solve this very annoying unsolveable problem
View 2 Replies
May 21, 2010
Anyone know if I can maintain a VS 2008 (.net 3.5) project by using the VS 2010 IDE ?
View 1 Replies