Editing .aspx File Makes Visual Studio Unresponsive?
Apr 30, 2010
I'm using Visual Studio 2008 on Windows 7. When I'm editing .aspx file VS stalls and thinks for about 3 sec every time I add a tag. Very frustrating. I'm guessing its doing some kind of compilation or checking. What can I do to make VS more responsive?
I'll be debugging a site in Visual Studio 2010 and editing an *.aspx or *.ascx file, and without warning, it will lock up so that I can't edit it. There's no message or anything, I just can't type or make any changes. The only way to start editing again is to stop debugging, close the editing window, and then find whatever file I was working on and reopen it. It's a huge pain in the you-know-what. My colleagues are experiencing the same thing, so it's apparently not something with my particular setup. What's the explanation, and how can we make it stop?
Note 1: I've reported this to Microsoft here. If you've experienced this as well, please go there and vote up the bug report.
Note 2: This is not VSS-related, at least in my case. We use VisualSVN, which doesn't use file-system-level locking to mark files as checked out.
I am able to access the controls of ".aspx" file in ".aspx.cs" directly without any declaration in ".aspx.cs" or in designer.cs. How is this possible? This is happeing only if I open website as using File System.
Create a new ASP.NET web site application with Visual Studio 2008. So following three files will be created automatically
[code]...
How btnSave is being recognized by .cs file without defining it anywhere as an object of System.Web.UI.WebControls.Button?
I work in VS 2008. Whenver I add a server control(Label) and set it properties in aspx.vb and build the solution, I get the error "Label1 not declared". While analyzing this issue I noticed that the event handler statements for the Label1 where not added in the designer.asp.vb file. These statement would actually be added automatically when I drag and drop a control to my webpage.
I would also like to inform the scenario after which this problem came to me. I was working in VS 2008 , VS 2005 and VS 2003 in the same machine.Could this have caused the issue ?
Now each and everytime when I add a control, I am adding the "With Events" code in the designer page to make my build succesfull which makes me to spend more efforts.
how can I share one or two aspx file in two separated solution that if i change aspx file in both solution apply changes. Is it possible in visual studio 2008 or in Team foundation server?
I'm currently editing some html/css within a aspx file inside of Visual Studio 2010. I'm using Chrome as my browser. When I make changes inside of Visual Studio and save/ctrl + F5 to run it frequently fails to load the new updated .css file due to pulling old cached versions of the CSS.
I've used visual studio as my primary HTML editor before but when I work with pure html/css files I just save and refresh the file in chrome and it will refresh the updated css 100% of the time. I've only started to experience this problem when working with aspx files and running things via ctrl + f5. Anyone have any ideas of how I can fix this?
Visual Studio (SP1) runs fine until I try and view .aspx source files with the lines
<style type="text/css"> </stlye>
anywhere in them, upon which it freezes (i.e is totally unresponsive) and I have to use the task manager to shut it down.
I have read a lot of questions about Visual Studio 2008 crashing on viewing some source files. However, I still can't fix this problem.
I have systematically deleted and re-included all other code and it comes down to these two lines, which is very confusing. Sometimes it happens as soon as the lines are added, sometimes it doesn't freeze until I build the solution with any of the problem pages open. I can add external style sheets, and it only started recently.
I had Resharper 4.5 installed and have since uninstalled it, and do not have anything else installed.
Also, it happens to other people with the same source code, and re-installing Visual Studio does not fix the problem. So I have several questions:
Is there any way I can find out what's happening? I don't understand how the code (the css tag itself) could crash Visual Studio, and am thinking that this is unlikely and it must be something else within my solution, would this be a safe assumption? Could this have anything to do with installing Office 2010?
I have an intellisense problem in VS2008.I use code-behind, and though I can declare ASP elements in the aspx file, it's as if the code can't see them.The pages run OK,but when I type anAspLabel and then '.' for example, intellisense does not pop up the methods and members for this asp label.
I've tried the reset option in Options > Text Editor.Intellisense works fine if the class instance is declared in the code behind file,but it won't recognise web controls declared on the aspx page.
saving my aspx file takes too long, it has some nested tables, but it is nothing huge, it has like 50+ overall controls on the form. When I hit the save button, it takes a few minutes and drives cpu crazy, so I am guessing it is doing something in the background.
So, what is the reason, any clues how to speed this up?
I have Visual Studio 2008 SP1 and ASP.NET MVC 2 (not the RC) installed on 2 computers, one at home and one at work which allows me to work on the same projects (via a synced dropbox account) in both locations.I've recently started with ASP.NET MVC and I've noticed that the projects I create at work won't compile at home (haven't tried it in reverse yet), citing the UrlParameter on line 22 and AreaRegistration on line 29 of the default Global.asax file as having a missing reference.I've checked the using System.Web.Mvc statement is in place and that the reference exists in the project references folder in solution explorer. I've looked in the object browser as well and I can see that my work machine shows the System.Web.Mvc.UrlParameter but my home machine doesn't.I've created a brand new Web MVC project on my home computer and the object in object browser is there, everything compiles and runs fine.
Using VS 2010 Beta II, I am pretty sure that intellisense was working a while back when I was editing CSS files or Skins. It doesn't work now. How do I turni it back on?
I have installed the current version of nopCommerce (v1.6) on my local server using SQL server express.I have downloaded the version with source code and have installed it without problems.When I go to open any .aspx pages it opens perfectly but when you switch to design view all you can see is broken image's and databound labels. It looks as if it is not using the CSS as the layout is single coloum down the left hand side of the page. When I run the solution through the local host it appears perfectly in the web browser, but when I go back to the visual studio design page it still does not render correctly.Has this happened to anyone else? Has anyone found a solution to this?It makes it really hard to change the layout as when I am editing the CSS on my other monitor usually I can see it updating the page while I edit the CSS on the other, with nopCommerce I have to build the solution every time I want to look at the changes I have made. It also makes it nearly impossible to place new controls into the webpage without fiddling with them for an hour before they are in the right position.I have coded other websites by hand in visual studio I have been able to edit the layout without having to build the solution.
I have a panel on a form with textboxes on. How can I make this invisible while editing the form in 2008express? I want to add another panel on top and be able to add stuff to it without the other getting in the way.
Is there any tool for Visual Studio 2008 which can reformat ASPX code to make it more presentable (eg insert line breaks, format the lines so they wrap when necessary, etc)?
installing visual studio 2010 pro RC in windows Xp SP3 and getting a message prompt : invalid windows installer package contact vendorlog file says
Error Message:
[02/22/10,17:09:07] Microsoft Application Error Reporting: [2] CMsiComponent::Install() expects the setup file for Microsoft Application Error Reporting, but the file failed verification. [02/22/10,17:09:07] setup.exe: [2] ISetupComponent::Pre/Post/Install() failed in ISetupManager::InternalInstallManager() with HRESULT -2147467259. [02/22/10,17:09:08] VS70pgui: [2] DepCheck indicates Microsoft Application Error Reporting is not installed.
When i drag my table into any asp page inside the Visual Web Developer aspx page, Nothing happen, Even there is no datasource or gridView it just the blank page i created.
I tried to create new web forms and all same results i got.
I have a problem within a project in Visual Web Developer. The program will not allow me to open the aspx.vb file associated with an aspx file when I choose the "View Code" option. The aspx.vb file exists; however the program is prevented from loading it and seeing it in Solutions Explorer.
The problem may be related to how the entire project is loaded -- loading it as a project vs. as a website. When I load it as a project, I have compilation errors that do not exist otherwise, but can see the aspx.vb files. When it is loaded as a website, I can't open the aspx.vb files as described above.
I'm currently dealing with my final year project and of course, later I might need to present this whole things to my lecturer.
So, I would like to ask you guys about how to open my website without Visual Studio and make it LAN (can be accessed by two or more computer through LAN).