Bạn hãy đăng ký làm thành viên để có thể xem các thông tin trong lớp và viết bài trong diễn đàn.

Không những thế, sau khi đăng ký bạn sẽ nhận được sự hỗ trợ của diễn đàn nhiều hơn.
Change background image

Khoa CNTT - ĐH Công nghiệp Hà Nội

Go downMessage [Page 1 of 1]

© FMvi.vn

on 5/11/2011, 12:34


I recently upgraded to Windows 7  from XP, which means a clean install.  I had been using Visual Studio 6 on XP and decided to upgrade.  It *looked* like VS 2005 was more complete so I started there.  But I got the error (shown in VS 2008, but it is the same error)



as soon as I created my first project.  Real helpful, right?  See anything missing?  How about the key they were trying to access.  Dumb.

Anyway, I installed VS 2008 (version 9.0.21022.8 RTM), thinking that this error was corrected.  Many people reported it and Microsoft has simply closed the reports starting it was irreproducable ([You must be registered and logged in to see this link.]).  It appears that this problem is still unfixed in VS 2010.

There are a variety of solutions out there.  Some of them are very broad brush.  By broad brush, they can run for 2 hours.  There have been many reports of systems being unusable at the end of two hours.  At the end of the discussion, is a fix from "Random Weirdo" that involves registry editing. 

We have had success with this instruction and it looks like there is a single registry key each for Visual Basic or C# that needs to be edited.  On a brand new install, the key has to be created by the Visual Studio installer.  It looks for all the world like Microsoft did not try installing their own Visual Studio on their own Windows 7.

Here are the step-by-step insructions.

1) Exit Visual Studio.  If you do not do that, the registry key will be held open and you cannot edit it.  Exit now.

2) In the Registry Editor, navigate to the key to change.  For Visual Basic, the key is HKEY_CLASSES_ROOT\VisualStudio.vbproj.9.0 and for C# it is HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0  Also, because these instructions are for VS 2008, you may have a different version so the numbers in the key may differ.  For VS 2010 C#, for example, use key HKEY_CLASSES_ROOT\VisualStudio.csproj.10.0




if you left click the key, you will get this error message.  Click OK to dismiss message box.  This is the problem we are about to fix. 

3) Instead, right click and bring up the context menu. 



Click Permissions to continue.

4) Dismiss the pointless warning which comes up. 



5) Click  Add



6) Click Advanced



7) Click Find



8) You can make your own choice whether to allow just yourself. to be done with this annoyance once and for all, I picked Everyone.  Then click OK.



9) The object selected is shown.  Click OK.



10) Click Full Control.  The Read box will also be checked.  Click Advanced.



11) click Owner



12)  Pick an owner.  I picked myself, rather than Admins generally because I felt it was less likely to fail.



13) I then clicked Apply to insure that my name showed up as current owner.  You can see that it has in this screen shot as opposed to "Unable to display" in previous step.  Click OK



14) Click your final OK



15) ... and the registry view has changed.  Now when we left click or select the HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 key, we see that this is a Visual C# Project file.



16) Go back to Visual Studio and create your Visual C# project (or Visual Basic project if you applied this to the Visual Basic key).  Some say you need to restart Windows but I did not find it necessary.  If you use both Visual C# andVisual Basic, you must go through this process twice. There is surely a similar process for Visual C++

View user profile


Báo xấu [0]

Gửi một bình luận lên tường nhà 乂◕‿◕乂
Trả lời nhanh
on 5/11/2011, 12:35


Using Sysinternal Process Monitor filtering on VBExpress.exe, VCExpress.exe and VCSExpress.exe (VB, C++, C#) and filtering for 'ACCESS DENIED' changing the permissions on the following keys resolved this for me.

Give ownership to Administrators then everyone full contol on permissions.

For VS2010 C++ Express




For VS2010 VB Express


For VS2010 C#

View user profile


Báo xấu [0]

Gửi một bình luận lên tường nhà 乂◕‿◕乂
Trả lời nhanh

Back to topMessage [Page 1 of 1]

  © FMvi.vn

« Xem bài trước | Xem bài kế tiếp »

Bài viết liên quan

    Quyền hạn của bạn:

    You cannot reply to topics in this forum