GAC条目未显示在References / .NET中 [英] GAC entries don't show up in References/.NET

查看:92
本文介绍了GAC条目未显示在References / .NET中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



编译了两个c#dll'并添加到GAC。


它们出现在.NET配置工具中。


但是,当尝试添加对新项目的引用时,dll会在.NET属性表中显示




为什么不呢?

-

Texeme Textcasting Technology
http://texeme.com


独立流行摇滚@ SomaFM
http://somafm.com/

推荐答案

困惑?什么.Net属性表在这里是什么意思?

Confused? what .Net property sheet are you meaning here?


John Sun写道:
John Sun wrote:
困惑?你在这里有什么.Net属性表?
Confused? what .Net property sheet are you meaning here?




John,


参加VS.NET项目。


右键点击参考文件。


有三个属性表:


..NET

COM

项目


在.NET属性表中,当您滚动列表时 - 我会

希望看到GAC中的每个组件。


我在GAC中看到我的两个组件。

但它们没有显示在此清单。


真正的问题是,当我部署我的Windows服务时,它会调用引用另一个DLL的

DLL,引发错误,第二个DLL

找不到!


第一个可以!


两个都在程序文件的文件夹中包含在GAC中。


* .exe服务位于目标服务器上的自己的文件夹中。

和我的工作站。 />

我使文件夹名称和其他所有内容完全相同。


我清理并删除了dll的每一个副本(调试

版本)。 br />

我的工作站是XP;服务器是W2k。


在我的工作站上,该服务可以找到第一个dll,然后它就可以找到第二个了。
br />
在目标服务器上,该服务可以找到第一个dll,但它会抛出

错误,说它找不到第二个。


非常令人费解...

-

Texeme Textcasting Technology
http://texeme.com

Indie Pop Rocks @ SomaFM
http://somafm.com/



John,

Take a VS.NET project.

Right click on references.

There are three property sheets:

..NET
COM
Projects

On the .NET property sheet, when you scroll through the list -- I would
expect to see every assembly that is in the GAC.

I see my two assemblies in the GAC.
But they do not show up in this list.

The real problem is that when I deploy my windows service, which calls a
DLL that references another DLL an error is thrown and the second DLL
cannot be found!

The first one can!

Both are in a folder in Program files and contained in the GAC.

The *.exe service resides in it''s own folder on both the target server
and on my workstation.

I made the folder names and everything else exactly the same.

I cleaned up and deleted each and every other copy of the dlls ( debug
versions ).

My workstation is XP; the server is W2k.

On my workstation, the service can find the first dll, and then it can
find the second.

On the target server, the service can find the first dll, but it throws
an error saying it cannot find the second.

Very puzzling...
--
Texeme Textcasting Technology
http://texeme.com

Indie Pop Rocks @ SomaFM
http://somafm.com/


如果你找不到它们.Net选项卡,您应该可以点击

" browse"按钮并找到你的组件然后包括它。


Ab。


Ricola! < SE **************** @ tower.effeil>在留言中写道

新闻:36 ************* @ individual.net ...
If you cant find them on the ".Net" tab, you should be able to click the
"browse" button and locate your component and then include it.

Ab.

"Ricola !" <se****************@tower.effeil> wrote in message
news:36*************@individual.net...

两个c#dll'编译并添加到GAC中。

它们出现在.NET配置工具中。

但是,当尝试添加对新项目的引用时,dll不要出现在.NET属性表中。

为什么不呢?

-
Texeme Textcasting Technology
http://texeme.com

Indie Pop Rocks @ SomaFM
http://somafm.com/


这篇关于GAC条目未显示在References / .NET中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆