D'Arcy from Winnipeg
Solution Architecture, Business & Entrepreneurship, Microsoft, and Adoption

Mystery of the Uncooperative VS.NET 2010 Installation Continues…

Sunday, August 22, 2010 8:53 PM

I blogged last month about an unsolved mystery I was experiencing, which I dubbed the Mystery of the Uncooperative EF Model and the Missing Target Frameworks. Since then, I’ve since expanded that to include the Mystery of why VS.NET 2010 can’t seem to resolve where my .NET 3.5 assemblies reside. Because of all this, let’s just go with the title of this blog, or as it’ll be known in its European release: HOOPED – a boy and his VS.NET installation.

Without getting too wordy, let me give you the recent string of events because it makes even less sense now than to go and describe *everything* in detail. Here’s what I did today:

- Reinstalled Windows 7 64 bit, wiping out my previous install.
- Installed system drivers (motherboard, video card, etc.)
- Installed all available Windows updates.
- Installed VS.NET 2008.
- Installed VS.NET 2008 SP1

At this point, I verified that I could create a .NET 3.5 web project application in 2008. All good. Restarted the machine (*note – multiple re-starts throughout the above process too).

- Installed VS.NET 2010, Full Install (even the C++ stuff that I’ll never touch)
- Checked Windows Update, installed only one: .NET 4 Client Framework
- Restarted

At this point, all should be well. However, when I create a web application project targeting .NET 3.5, this is what I get:

image

What this does is clobber my designer. If I put this in the default.aspx page…

image

…the designer won’t recognize the ASP.NET control. In fact, I had to hand-type that as the toolbox wouldn’t let me drag/drop into the designer or into the markup view. If I switch to the designer view, I get this:

image

But I can still run the page and the textbox will actually appear, so issues.

Huh.

Another oddity (which may/may not be related and may/may not be anything) is that under the properties page of the project I have no frameworks listed.

image

Ok, so if this wasn’t enough (and Lord knows it is), the original issue I had still exists: If I create a .NET 4.0 project, let’s say a Winform project, and try to add an EF model to the project, I get this:

image

HOW?! How can you not resolve the .NETFramework 4 when its a .NET 4.0 project to start with?! DOES NOT COMPUTE!

I have been emailing with some guys from the Visual Studio team and they’ve been great at giving me some suggestions on things to look at, but I think this is perplexing them as much as it is me.

Others have told me they had no issue installing vs.net 2010 on Win 7 64 bit, so I have no idea what is different in my setup, especially since this last attempt to install was entirely from scratch.

Thoughts? Suggestions? HELP?!

D




Feedback

# re: Mystery of the Uncooperative VS.NET 2010 Installation Continues…

What do you see in the project file under TargetFrameworkVersion?

<TargetFrameworkVersion>v3.5</TargetFrameworkVersion> 8/22/2010 9:01 PM | Colin Bowern

# re: Mystery of the Uncooperative VS.NET 2010 Installation Continues…

I don't have that node listed in the project file. Remember too, when I look at the drop list in vs.net I get nothing listed in the drop down.

D 8/22/2010 9:15 PM | D'Arcy from Winnipeg

# re: Mystery of the Uncooperative VS.NET 2010 Installation Continues…

I think you should quit the software business and go sell T-shirts on the beach in Hawaii. 8/22/2010 10:07 PM | Nolan

# re: Mystery of the Uncooperative VS.NET 2010 Installation Continues…

Hey D'Arcy, I'm running Windows 7 Ultimate 64bit and Visual Studio 2010 Premium and I have all .Net frameworks available in the dropdown when starting a new project. I have created many .Net 3.0, 3.5 and 4.0 projects (WPF, WinForms, Web Apps) and all work fine (so far).

If you want me to have a look at something in my setup to compare to yours, let me know.

From the Object Browser, I can see my mscorlib [2.0.0.0] is found at C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll

The mscorlib [2.0.5.0] is found at C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\mscorlib.dll

and the mscorlib [4.0.0.0] is found at C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\mscorlib.dll

Don't know if that helps you at all, but that's all I can offer at the moment. 8/23/2010 12:52 AM | Andre Marion

# re: Mystery of the Uncooperative VS.NET 2010 Installation Continues…

This sounds like an installation issue with Visual Studio. I'm also running Windows 7 64bit and can target any version needed.

What edition of Visual Studio did you install? Do you see all of the proper .NET folders/versions withing the C:\Windows\Microsoft.NET\Framework for the older versions? 8/23/2010 2:49 PM | Mitchel Sellers

# re: Mystery of the Uncooperative VS.NET 2010 Installation Continues…

Hey guys,

Thanks for the suggestions and advice. I used the ISO from the Microsoft Subscription website, but I also tried uninstalling that and installing the trial version from the web...both cases, same issue.

I'm having this issue on my personal laptop as well as my desktop, but not on my work laptop...key difference is that its on a domain and my desktop/personal-laptop are not. Going to look into security settings and permissions (which seems dumb, but i'm getting desperate).

D 8/24/2010 10:57 PM | D'Arcy from Winnipeg

# re: Mystery of the Uncooperative VS.NET 2010 Installation Continues…

My PC is a standalone desktop that is not on a domain or workgroup (or even homegroup). A difference that *may* be a factor is that I already had Visual Studio 2008 Professional installed before I installed Visual Studio 2010 Premium along side it (I didn't uninstall VS2008).

I used the ISO from the MSDN subscription site as well.

So... If you want to go through the pain of installing VS2008 (and SP1 and all other updates) before installing VS2010, that *may* help you get past this. I don't know why you couldn't install VS2010 on a clean Windows 7 OS, but I haven't tried that... 8/24/2010 11:14 PM | Andre Marion

# re: Mystery of the Uncooperative VS.NET 2010 Installation Continues…

Hey Andre, thanks for the info. So maybe the domain/non-domain is a non-factor then. I checked security settings on the .NET 4 folder on both machines, they both are identical.

Btw, I did install VS 2008 and SP1 first before VS-NET 2010, and it works fine. It's *just* 2010 that's giving me grief. Ugh!

Thanks!

D 8/24/2010 11:18 PM | D'Arcy from Winnipeg

# re: Mystery of the Uncooperative VS.NET 2010 Installation Continues…

I've had this error message pop up out of the blue in a VB2010 program that I'm not even aware of making any changes to. I haven't updated from another version of VB so it's not just an update issue. This is the second time something like this has happened. First time I had to start a new project and cut and paste everything into it. It then ran fine. VB 2010 is a mess! How do those guys get away with such a difficult to use program with no proper Help??? 12/22/2010 4:07 PM | Ed Gallagher

# re: Mystery of the Uncooperative VS.NET 2010 Installation Continues…

Hey, D'Arcy, I had the same problem. When I changed the TEMP and TMP environment variables to point to a folder that did not contain an apostrophe, it started working. 12/28/2010 6:05 PM | Peter O'Brien

# re: Mystery of the Uncooperative VS.NET 2010 Installation Continues…

Its really amazing post , Thank you for sharing with us, You can also visit below link free gift code generator 11/28/2017 4:41 AM | samdA

Post a comment