I've touched on these issues before, but that was using a system with vs 2005, 2008, vwd, and 2-3 years of associated junk on ;)
Now I'm running a fresh install of Visual Studio 2008, on Vista. I still have some very annoying issues.
The first, is that when creating a new asp.net site, and a default blank page - it won't run. I get a compiler error, the only way I know to fix it is to add a 'codefile' reference to the top of the aspx page. I need to do this for every page - why??
Secondly, I have an issue in that sometimes when opening an aspx page - it basically wont! A new tab is created, but the window inside the tab is not refreshed, it shows the contents of the previous tab (although the design/split/source bar appears at the bottom) - it's as if just that window has crashed.. I can easily go back to the other tabs, but there's no way of seeing the aspx of that file. The file isn't corrupt in any way, and it seems temperamental - but often occuring on old 2005 projects.
Anyone else experienced this behaviour??
cheers :D
Have you installed Visual Studio 2008 Service Pack 1? It fixes several bugs and adds some new features.
Also install the hotfix rollup package for ASP.NET 2.0: April 2009
It fixes a lot of asp.net related bugs.
Related
Ok, so I start a new project in Visual Studio (currently updated to update 3) and choose ASP.NET Web Application (.NET Framework).
Then I choose the Empty template and to add the folders and core references for Web Forms.
Ok, great, so I add a webform to the project and then find there's a problem:
Design view or even Split view is not available for the new aspx page.
Pressing the buttons 'Design' or 'Split' do nothing and only the source is seen, which also becomes uneditable.
Now I have seen this issue before and searched and searched for an answer. But the only solution was a complete reinstall - this means a few GB download and then hours of the install program doing whatever it does (it is the slowest install for anything on any platform).
This issue seems to occur randomly, and once it occurs, it seems to be permanent, short of a complete reinstall of VS.
Is this a fault in Visual Studio that will never be fixed?
Does someone actually know how to fix this other than a complete reinstall?
Please do not suggest to try 'Open With' on the aspx file - yes I have tried every option and the original default is the correct one.
Answers from the Microsoft forum are about as helpful as giving wheels to a tomato, such as here. It has even been highlighted for Visual Studio 2008 here. Someone seems to have tried to raise the issue last year here.
I'm trying to get a VB ASP.NET website (for which I was given the code) running in VS 2010. It uses telerik controls. I downloaded and installed the latest version of Telerik ("RadControls for ASP.NET AJAX v. 2016.1.225.0")
When I open the project in VS 2010, though, and open the Toolbox, it shows as Telerik control categories, "Telerik AJAX Controls [Bla] 2012 Q1 NET 35"
I would expect to see "... 2016.1.225.0" or "... 2016 Q1 NET 35" instead.
I don't know if having the older version of the controls is the problem or not (the developer who sent me the code is using an old version, too).
But I'm getting tons of compiler messages (the first one of the 123 showing, in fact, is "Maximum number of errors has been exceeded"), and I wonder if this version mismatch is the, or one of the, culprits. After that, there are several "Type 'SQLServer' is not defined" errors (among others) appear.
So should I upgrade my project to use the latest Telerik download, and if so, how can I accomplish that?
Delete and re-add the reference to the new version. Every time you upgrade, there can be an issue of compatibility issues; I've been a long time user of Telerik and we occassionally get errors after upgrading. Since youre version is about 4 years different, the best way is probably to just add the new reference and fix all of the compile and runtime errors...
I assume that the real reason for the errors you are getting is possibly other supporting DLL's not being installed on your machine (GAC references) that are on that developer's machine. For instance, SQLServer errors would probably be referring to one of the Microsoft SQL Server type libraries... It doesn't hurt to upgrade to the latest if you have the time, but that might not solve all the problems you are experiencing.
In the visual studio menu bar we have telerik menue in that go to "upgrade" . in the wizard it will show the latest telerik reporting dll you have and will update it .
I'm working on a large-ish web forms application and VS has stopped updating .aspx.designer.cs files in the last few days.
It seemed like the designer updates initially became flaky (sometimes update, sometimes not) then stopped updating altogether. Now I have to manually edit the designer file after adding a control to a page before I can compile.
I've searched and tried all the suggestions like switching from markup to design view and back etc - no change. The only thing that kind of works is this but even then the generated designer file often doesn't contain references to all the controls on the page. And also that only works on a per-file basis. Ideally I would like the whole project to update/generate designer files correctly again.
I've tried cleaning the solution - no change.
VS details:
Microsoft Visual Studio Professional 2013
Version 12.0.40629.00 Update 5
Microsoft .NET Framework Version 4.6.00079
Installed Version: Professional
Any suggestions appreciated - thanks.
Make sure you're not running the application/site while adding controls. I've noticed that VS will lock the designer files while in debug mode and doesn't sync up when you exit debug mode.
Also, your link is broken, doesn't point to anything so I can't see what you were referencing to.
I think what caused this was a somewhat flaky local install of the project from TFS. It compiled but still had red squiggly lines under a few namespaces at design time. Once the project references were all clean the designer files were also updating correctly.
My hard drive died recently so I had to install visual studio 2010 all over again. With this version of VS anytime I click on a control (like text box or gridview) the properties section doesn't update. Even when i right click on the control and click view properties it doesn't update ... The only way i can get the properties tab to update is by building the project (but i have to do this every time i want to view properties of a control). I have uninstalled and reinstalled (VS 2010 and SP1) but neither have had an effect on the issue.
I have also tried turning off the add-ons as i thought this might affect performance (but not joy). I also have Visual Studio 2008 and this works perfectly.
Its like as if the application isn't refreshing or something ? And the build is forcing a refresh ?
Well turns out it was McAfee Virus Scanner !!!!!!!
So annoying, i turned On-Access Virus Scanning OFF and everything worked :-)
Unfortunately the On-Access Virus Scanning turns itself back on after a few hours so I have added Visual Studio and my files location to the exclusion list and this works !
Hopefully someone else will find this useful
This question already has answers here:
Visual Studio 2008 hangs while opening aspx/ascx file
(10 answers)
Closed 7 years ago.
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?
Thanks in advance to anyone who has ideas on how to troubleshoot this problem.
Edit:
I didn't find a good answer for this question, but found that installing Visual Studio 2010 and using it instead of Visual Studio 2008 fixed the problem. I have marked the answer below as right as it gave me an idea on where to start looking.
So from this I am going to conclude that this is some sort of Visual Studio bug, but would be happy to see more information if any one else encounters this problem or can shed any light on it!
The above should work - I actually used the solution here - repair office 2010 web authoring components - http://www.ariankulp.com/archive/2010/03/02/web-form-designer-lockup-in-visual-studio-2008.aspx
MSDN Code Gallery shows 45 items tagged Visual Studio 2008 and hotfix. it's very hard to search for your problem with keywords, but browsing through the 45 might help.
I just ran into a similar problem (VS2008 freezing every time I tried to open the Manage Styles / Apply Styles / CSS Properties windows).
What fixed it for me was:
Uninstall Microsoft Visual Studio
Web Authoring Component
Reinstall
Microsoft Visual Studio Web
Authoring Component from the VS DVD
(just run
WCU\WebDesignerCore\WebDesignerCore.Exe; it doesn't have a UI, so you just have to wait for it to finish).