如何在ASP.NET应用程序中使用GAC中的DLL? [英] How to use DLLs from GAC in ASP.NET apps?
问题描述
嗨!
请指教。我可以在ASP.NET应用程序中使用GAC中的DLL吗?怎么样?
谢谢,
Ray
Hi!
Please advise. Can I use DLLs from GAC in ASP.NET applications? How?
Thanks,
Ray
推荐答案
您可以选择添加对dll的引用,然后使用using
namespace对于指定命名空间中的类可用...
或者你可以添加@ Assembly =" assembly.dll"
问候,
HD
" Andrey Mazurov" <双**** @ 9rays.net>在消息中写道
新闻:%2 ****************** @ TK2MSFTNGP09.phx.gbl ...
you can either choose to add a reference to the dll and then use "using
namespace" for classes within the specified namespace to be available...
alternatively you can add @Assembly="assembly.dll"
Regards,
HD
"Andrey Mazurov" <bi****@9rays.net> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...
嗨!
请指教。我可以在ASP.NET应用程序中使用GAC中的DLL吗?怎么样?
谢谢,
Ray
Hi!
Please advise. Can I use DLLs from GAC in ASP.NET applications? How?
Thanks,
Ray
" Hermit Dave" <他************ @ CAPS.AND.DOTS.hotmail.com>在消息新闻中写道:< un ************** @ TK2MSFTNGP11.phx.gbl> ...
"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message news:<un**************@TK2MSFTNGP11.phx.gbl>...
你可以选择添加对dll然后使用using
namespace对于指定命名空间内的类可用...
您也可以添加@ Assembly =" assembly.dll"
问候,
HD
Andrey Mazurov <双**** @ 9rays.net>在消息中写道
新闻:%2 ****************** @ TK2MSFTNGP09.phx.gbl ...
you can either choose to add a reference to the dll and then use "using
namespace" for classes within the specified namespace to be available...
alternatively you can add @Assembly="assembly.dll"
Regards,
HD
"Andrey Mazurov" <bi****@9rays.net> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...
嗨!
请指教。我可以在ASP.NET应用程序中使用GAC中的DLL吗?怎么样?
谢谢,
Ray
Hi!
Please advise. Can I use DLLs from GAC in ASP.NET applications? How?
Thanks,
Ray
我有类似的问题,因为我添加了自己的汇总到GAC
(它有一个强大的名称顺便说一句)但是从Microsoft Visual C#.NET中的Add
参考.Net选项卡中看不到它。
我必须通过修改注册表来指向这样的
装配文件来解决这个问题:
[HKEY_LOCAL_MACHINE\SOFTWARE\\ \\ Microsoft \ NETFramewor k \AssemblyFolders \< name>]
@ =" C:\\Projects \\< name> \\ CoreServices \\ \\\CoreService sLibrary \\"
然后在汇编列表中可以看到此目录中的任何dll。
I have a similar problem because I''ve added my own Assembly to the GAC
(it has a strong name btw) however it is not visible from the Add
Reference .Net Tab in Microsoft Visual C# .NET.
I have had to fix this by modifying the registry to point to an
assemnbly file like this:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramewor k\AssemblyFolders\<name>]
@="C:\\Projects\\<name>\\CoreServices\\CoreService sLibrary\\"
Then any dll in this directory is visible in the assembly list.
我在一个单独的DLL中有一个组件。此DLL具有公钥,并在GAC中放置
。当我在网页上使用此组件时,ASP不会从GAC获取此
组件。也许我应该调整ASP.NET,以使它工作?
请指教。
谢谢,安德烈
隐士戴夫 <他************ @ CAPS.AND.DOTS.hotmail.com> ó???Yéì/ó???Yéìá×
??×?ó??èóì????Y ??:news:un *********** *** @ TK2MSFTNGP11.phx.gbl ...
I have a component in a separate DLL. This DLL has public key and is placed
in GAC. When I use this component on a web page, ASP does not take this
component from GAC. Maybe I should tune ASP.NET, in order to make it work?
Please advise.
Thanks, Andrey
"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> ó???Yéì/ó???Yéìá ×
??×?ó??è óì???àY??: news:un**************@TK2MSFTNGP11.phx.gbl...
您可以选择添加对dll的引用,然后使用using
namespace。对于指定命名空间内的类可用...
您也可以添加@ Assembly =" assembly.dll"
问候,
HD
Andrey Mazurov <双**** @ 9rays.net>在消息中写道
新闻:%2 ****************** @ TK2MSFTNGP09.phx.gbl ...
you can either choose to add a reference to the dll and then use "using
namespace" for classes within the specified namespace to be available...
alternatively you can add @Assembly="assembly.dll"
Regards,
HD
"Andrey Mazurov" <bi****@9rays.net> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...
嗨!
请指教。我可以在ASP.NET应用程序中使用GAC中的DLL吗?怎么样?
谢谢,
Ray
Hi!
Please advise. Can I use DLLs from GAC in ASP.NET applications? How?
Thanks,
Ray
这篇关于如何在ASP.NET应用程序中使用GAC中的DLL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!