views:

1169

answers:

4

Hi, I have now gone over to Visual Studio 2010 Beta 2

I have used it for a few days, but now I can no longer add references from the GAC.

alt text

(http://bildr.no/view/549966)

Sorry since this is not directly a development question, but I was not sure where to ask.

Does someone know how to fix this?

+1  A: 

Check the Global Assembly Cache. You may have done something very very bad.

EDIT

I noticed you are using Silverlight:

“C:\Program Files\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0

I cannot find the Microsoft.CSharp.dll I can only find Microsoft.VisualBasic.dll to use. Where is the C# dll located for Silverlight 4? I wasn’t able to find it on my computer. ”

taken from: http://alpascual.com/blog/a-few-issues-with-silverlight-4-after-installing-visual-studio-2010/

Woot4Moo
Thank you! I will see if this solves the problem! Strange that I do not get any debug info from the VS actually
sv88erik
But the question is whether I really need "CSharp.dll" when the project is a VB project?
sv88erik
good question, I suppose it depends on if that file was in fact there in the first place.
Woot4Moo
Possible, this resolves itself if using C#, but the resolution did not work when using VB. Is there any way to read the error log. Some space must be lagget an explanation of the error.
sv88erik
eventvwr in the run dialog may be of some value to you. Look at the system logs
Woot4Moo
Strangely, now I've gone over the system log to Windows 7 And there are not any errors there that is relevant.
sv88erik
well I am all out of ideas. Best of luck
Woot4Moo
A: 

I had the same problem I built a library using Visual Studio 2010 and exposed several methods for Visual Basic 6 to use a a COM component. I went to my XP machine to put the Dll in the GAC and it would not register.

Repeated the exact same steps to build the library with Visual Studio 2008 and the Dll registered in the GAC just fine.

The .NET 4 library would not registerd on my client computer in the GAC either, in addition to not registering on the XP machine.

Yes, I installed the .NET 4 framework on the XP machine Yes, created strongly named assembly Yes, I rebooted the machine Yes, I know how to sign and register assemblies in the GAC, It just did not work in Visual Studio 2010 RC1.

Yes, I do have Silverlight 4 installed but this project has nothing to do with Silverlight at all. However it is interesting this theme is coming up.

Thanks,

Ed

follow me on Twitter - http://twitter.com/eferron

Ed Ferron
A: 

Hi,

I've created a tool which is completely free, that will help you to achieve your goal. Muse VSReferences will allow you to add a Global Assembly Cache reference to the project from Add GAC Reference menu item.

Regards Muse VSExtensions

Muse VSExtensions
A: 

C:\Program Files\Microsoft SDKs\Silverlight\v4.0\Libraries\Client\Microsoft.CSharp.dll

http://www.inveigledsoftware.com/2009/12/silverlight-4-integrating-with-com/

dpz