Web Application Projects and Visual Studio under Vista RC1
I’m pretty pissed off at the latest in the mess I’m seeing on Vista with Visual Studio 2005. I’ve mentioned that I’ve had lots of problems with Intellisense not working until I switch into design view and back which is pretty annoying. Annoying but workable.
But now, I have a whole new set of issues related apparently to Web Application Projects under Vista. I’ve been working for the last couple of days with some code in WAP and I constantly get this error from Visual Studio in the designer:
C:\projects2005\WebLog\Admin\ReferrerSummary.aspx: ASP.NET runtime error: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
This pops up consistently when I open a new form in the designer with Web Application projects and it shows up int he Error list. This is a design time compile error. This seems pretty harmless, but at the same time I’ve noticed that Visual Studio is refusing to load any of my custom controls onto a form. I have the Automatic Toolbox Section with all of my custom controls that live in another project. All the controls show on the toolbox, if I drop anything from that toolbar on the form it fails with the lovely error:
Control cannot be created because Visual Studio cannot find the controls type in the assembly.
Aha, but the type is there. In fact if I exit Visual Studio, come back in open the form right away, then drop the control (without recompiling) it all works fine. Of course the controls all work fine when the app is run, so this is something designer specific.
It works for a while until at some point later it doesn’t work again in the same VS.NET session. The behavior varies some – sometimes I get a dialog that won’t let me drop the control, at other times I get to drop the control but it gives me the generic error box for the control in which it proclaims that VS can’t find a requires support assembly which in fact does exist in the BIN directory.
When it’s in this ‘fucked up’ mode everything is a drag in the designer literally. The designer gets unbearably slow – it takes something like 10 seconds to change a property value and this is a simple form and not a big project.
Something is screwed up and I’ve seen this behavior in two completely separate Vista installs (Beta 2 and now in RC1). At this point I’m just not using the damn designer any more at all and am just hand coding. Even at the best of times when things work the Web Designer is such a dog it gets more in the way than anything else.
There’s more: Visual Studio crashes EVERY SINGLE time I exit it. Sometimes it also crashes for no apparent reason at all while it’s sitting idly in the background… this is more of a nuisance, but what the heck is going on that is making VS so unstable?
Is anybody else seeing any of this or is it just my bad karma? <g> Maybe we can compare notes and see if there's a common thread if others are seeing the same thing...
I'm wondering if it has something to do with a Dual Core machine or multiple processors in general? Drawing at straws...
Other Posts you might also like
- Adding minimal OWIN Identity Authentication to an Existing ASP.NET MVC Application
- Map Physical Paths with an HttpContext.MapPath() Extension Method in ASP.NET
- Resolving Paths To Server Relative Paths in .NET Code
- Back to Basics: Rewriting a URL in ASP.NET Core
- Getting the ASP.NET Core Server Hosting Urls at Startup and in Requests
The Voices of Reason
# re: Web Application Projects and Visual Studio under Vista RC1
As Andreas mentioned above, we are planning a separate servicing patch to specifically address VS issues on Vista (we deliberately didn't hold VS 2005 SP1 to include these because we didn't want to wait). VS does some pretty invasive things with processes (think what a debugger and profiler do), and so with the Vista changes around tightended security there are reasons why some things break or behavior changes for the worse. That is the reason we are planning a separate patch to fix anything found.
Hope this helps,
Scott
# re: Web Application Projects and Visual Studio under Vista RC1
The reason I say WAP specifically is that I've been running Vista since for several months now and this recent problem of controls not showing up and not being able to drop only occurs in WAP. It works fine regular projects. For the last few months I've been primarily working with stock projects so I didn't notice this particular issue until a few days ago.
Any word on when these Vista patches will come out? I suspect there are a lot of people running Vista at this point. And can anybody confirm seeing these same type of issues...
# re: Web Application Projects and Visual Studio under Vista RC1
# re: Web Application Projects and Visual Studio under Vista RC1
Do you know if this beta can be rolled back once installed?
# re: Web Application Projects and Visual Studio under Vista RC1
# re: Web Application Projects and Visual Studio under Vista RC1
i would like to echo your complaints with WAP / VS 2005 in vista. it's dismal, my experience is very similar to yours, especially with regard to custom controls registered in web.config. the beta SP1 did nothing to help also. this is the one issue that has forced me to go back to using XP. i'm just going to wait a few more weeks until Vista RTM comes out and hopefully by then MS will fix some or all the compatibility problems with visual studio. it was really doing my head in!
according to this page: http://msdn.microsoft.com/vstudio/support/windowsvista/faq/ MS aren't planning to release the "Vista Support Update" for VS 2005 until Q1 of 2007 so i could be waiting a while longer. i don't exactly envy their position from a dev perspective, but MS made a right hash of the whole web application projects thing. design support for WAP projects is also crap under XP in my experience.
i did find that SP1-beta fixed the crash-on-close problem under Vista. i have it set to run as administrator.
it is some comfort at least to see that someone else is seeing the same problems! cheers.
# re: Web Application Projects and Visual Studio under Vista RC1
# re: Web Application Projects and Visual Studio under Vista RC1
I hope this can be resolved soon.
# re: Web Application Projects and Visual Studio under Vista RC1
# re: Web Application Projects and Visual Studio under Vista RC1
Does it freaking stink YES!! WHY dont they tell you what the OS service pack is going to mess up - instead of having to look at every app and see if the app is NOT compatible.
# re: Web Application Projects and Visual Studio under Vista RC1
The second thing that I’d like to discuss is our support for Windows Vista, which is due to release in the coming months. Ensuring that VS2005 works well on Windows Vista is a core goal of ours. Visual Studio 2005 SP1 will run on Vista but will likely have a few compatibility issues. We are working with the Vista team to understand those, to provide workarounds where possible and also work on providing you with a set of fixes beyond SP1.