473,394 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

ASP.NET with visual studios 2010 problem with editing while debugging

7
I upgraded to visual studios 2010 last week. I also migrated a large web application over that I was working on.

I ran into a huge issue with CodeFile and CodeBehind. I ran the "convert to web application" feature for the project which included designer.vb files and required me to go though can change CodeFile to CodeBehind.

Now everything IS working within the web application after 40ish hours of fixing everything, but now the ability to edit .aspx.vb files while debugging is no longer available. I can edit the .aspx files just fine while debugging but not the codebehind files.

I have tried all the suggestions I have found online and none of these work. What DOES work is changing CodeBehind to CodeFile. Once I do this I can edit while debugging no problem. BUT doing this breaks the pages because the designer.vb file is no longer updated or used.

Does anyone know what could be causing this?

More details:
ASP.net using VB
Visual studios 2010 .net 4.0
x86 machine with debugging set to x86.
project is set to debug (not release)
Various settings are checked ie no optimization, etc


Summary: Can't edit while debugging if referecing file by CodeBehind=filename.aspx.vb. Changeing to CodeFile=filename.aspx.vb allows editing of ASPX.VB files but causes the file to no longer use designer.vb file.
Jun 14 '10 #1
4 2763
Frinavale
9,735 Expert Mod 8TB
I've never been able to edit while debugging an ASP.NET application....

-Frinny
Jun 14 '10 #2
urbn
7
I was able to with 2005 no problem. But this was when the site was just a website and not a web application. Once I converted the site to a web application (and this adding the designer.vb files) it would no longer allow editing aspx.vb files, but editing the .aspx file (HTML,JS,CSS,Images,Etc).

From my understanding what little information I could find is that codebehind compiles your files before debugging/releasing where as codefile dosen't require compiling, so maybe this is the problem. I do know that I was able to do it in the past and that other people have had simular problems which normally were cause by having optimized code set in debugging or edit and continue not being set.
Jun 14 '10 #3
urbn
7
Well I never found a fix for this but I did find a work around. Hopefully this helps someone else if they have to deal with this.

Currently all my pages are set to use codefile="filename.aspx.vb". I can edit while debugging just fine.

Now if you end up having to add any controls (textbox for example) add the control, change codefile to codebehind and save. Designer file will be updated. Then switch back to codefile and save again.
Jun 16 '10 #4
Frinavale
9,735 Expert Mod 8TB
Thanks for posting the work around solution :)
I'm sure it will help others.

-Frinny
Jun 18 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Joe Sullivan | last post by:
I have noticed that Visual Studios .NET has a debug mode for SQL statements, but I can't seem to get it to work with MS SQL Server. I can't seem to pull up my stored procedures from the Server...
4
by: jabailo | last post by:
These guys have it going on. They actually use design ideas that Microsoft employees can drool upon. Visual Studio 2010 Concept IDE http://www.codeproject.com/csharp/Concept_IDE.asp "Like...
5
by: John Tenney | last post by:
If I have a windows form (System.Windows.Forms.Form) open and I push the pin on the toolbox to keep the docked window open, Visual Studios 2003 pegs the processor and basically hangs my computer. I...
1
by: Steve Kershaw | last post by:
This is the oddest problem! When I do a copy (<ctl> C) and paste (<ctl> P) in my C# code I sometimes find that Visual Studios has deleted the first few letters of several consecutive lines...
0
by: AB | last post by:
Hi, I am trying to convert some crystal reports from Paradox to SQL Server in Visual Studios 2005 by setting database location. I am unable to do that for some reports. It displays an error...
0
by: Steve Kershaw | last post by:
Hi All! I'm having a problem debugging a web application. The application initially started with a message that indicated that my userid wasn't in the Debug Group (it was). Now the application...
0
by: thomasburrows1 | last post by:
Please excuse my simple question. I have the following C#.NET code. using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using...
10
by: yansong1990 | last post by:
well ok, im pretty new to c++, i have -a lot- of exp in programming in VBA (visual basic for app) for excel to make macros so i picked up a new course for computing which handles c++ only, i...
0
by: jpturn99 | last post by:
Hello The high school I teach at has recently upgraded to Visual Studios 2005. I am trying to run a simple "hello world" project in C++. I have properly followed all of the steps to setting up a...
3
by: urbn | last post by:
I've been searching for this answer for a few hours now. I even went to a local book store and looked through all their visual studio realted books. What is the name of the drop down menu in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.