Ask a Question related to ASP.NET General, Design and Development.
-
Mike M #1
Accessing Assemblies not contained in the Web App
Hello,
I created a simple C# library assembly that exposes general facilities I
would like to use in my ASP.NET web applications. If I added the assembly
into the bin directory of my asp.net app, the runtime finds the assembly
without a problem and resolves any references to the classes exposed by the
assembly. However, I do not wish to deploy the assembly into each bin
directory for each web application. I would like to specify the library
assembly in a "global" directory on my web server. (By global I'm referring
to a directory that is not part of any web application.) Then each web
application that references my custom assembly will reference the only copy
of the assembly found in a global directory. The problem I'm having is that
my ASPX module does not like assembly directives that point to assemblies
outside the web application. I tried modify the application web.config file
to include a <codebase> and <probing> element in the configuration's runtime
element but without success. So, is it possible to reference "global"
assemblies? If so, how should the web.config file be setup?
Thanks for you time,
Mike M.
Mike M Guest
-
ViewState of Contained Controls?
I've built my tab control, and it works great. Except for one problem. Any controls which are contained in any of the tabs lose state. The tab... -
Are MS Assemblies in the GAC?
I want to create strongly signed support assemblies so they can be shared by different ASP.NET web apps. This requires that they be installed into... -
Accessing Controls contained in another Control from ASPX Page
Hi All! Is there any ways to get access to the controls contained in another user controls from an ASP.NET page? For example I have... -... -
Self-contained Movie Handle?
I want to put a movie file into a single self-contained handle that I can store and retrieve and play back. PutMovieIntoHandle wont work because it... -
value contained within a variable contained within another variable
I may be way off track with what I am trying to do, but here is my scenario and I sure appreciate any insights. There is a string stored in... -
Steve C. Orr, MCSD #2
Re: Accessing Assemblies not contained in the Web App
It sounds like you should install your shared library to the Global Assembly
Cache (GAC)
Here's more info:
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconglobalassemblycache.asp[/url]
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/vxconInstallingToGlobalAssemblyCache.asp[/url]
[url]http://www.aspzone.com/articles/john/GAC/[/url]
--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]
"Mike M" <marsigme@earthlink.net> wrote in message
news:%23fYbn%23%23TDHA.1724@TK2MSFTNGP10.phx.gbl.. .the> Hello,
>
> I created a simple C# library assembly that exposes general facilities I
> would like to use in my ASP.NET web applications. If I added the assembly
> into the bin directory of my asp.net app, the runtime finds the assembly
> without a problem and resolves any references to the classes exposed byreferring> assembly. However, I do not wish to deploy the assembly into each bin
> directory for each web application. I would like to specify the library
> assembly in a "global" directory on my web server. (By global I'mcopy> to a directory that is not part of any web application.) Then each web
> application that references my custom assembly will reference the onlythat> of the assembly found in a global directory. The problem I'm having isfile> my ASPX module does not like assembly directives that point to assemblies
> outside the web application. I tried modify the application web.configruntime> to include a <codebase> and <probing> element in the configuration's> element but without success. So, is it possible to reference "global"
> assemblies? If so, how should the web.config file be setup?
>
> Thanks for you time,
> Mike M.
>
>
Steve C. Orr, MCSD Guest
-
Mike M #3
Re: Accessing Assemblies not contained in the Web App
I'll have to see if my web hosting service provider is willing to add
assemblies to the GAC. Unfortunately, I'm kinda at the mercy of an
out-sourced production environment. That's why I'm looking for a self
contained method for accessing assemblies.
Thanks for the help.
"Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
news:#XTJMEBUDHA.2512@TK2MSFTNGP10.phx.gbl...unless> I can't say for sure if it's the only way, I can only say that it is the
> right way.
> This is exactly what the GAC was designed for. I suggest you use it[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm[/url]> it has some specific shortcoming that does not meet your requirements.
>
> --
> I hope this helps,
> Steve C. Orr, MCSD
> [url]http://Steve.Orr.net[/url]
>
>
> "Mike M" <marsigme@earthlink.net> wrote in message
> news:uGIxss$TDHA.2196@TK2MSFTNGP12.phx.gbl...>> > Hi Steve,
> >
> > Yes, that would probably solve the problem but is that the only solution
> > available? Is there no way to structure
> > the web.config file to search outside the current web application?
> >
> > Thanks,
> > Mike
> >
> >
> > "Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
> > news:ebE5tG$TDHA.2116@TK2MSFTNGP12.phx.gbl...> > Assembly> > > It sounds like you should install your shared library to the Global> >> > > Cache (GAC)
> > >
> > > Here's more info:
> > >[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/ht[/url]>> > l/cpconglobalassemblycache.asp> >> > >facilities> > ml/vxconInstallingToGlobalAssemblyCache.asp> > > [url]http://www.aspzone.com/articles/john/GAC/[/url]
> > >
> > > --
> > > I hope this helps,
> > > Steve C. Orr, MCSD
> > > [url]http://Steve.Orr.net[/url]
> > >
> > >
> > > "Mike M" <marsigme@earthlink.net> wrote in message
> > > news:%23fYbn%23%23TDHA.1724@TK2MSFTNGP10.phx.gbl.. .
> > > > Hello,
> > > >
> > > > I created a simple C# library assembly that exposes generalbin> I> assembly> > assembly> > > > would like to use in my ASP.NET web applications. If I added the> > > > into the bin directory of my asp.net app, the runtime finds the> by> > > > without a problem and resolves any references to the classes exposed> > > the
> > > > assembly. However, I do not wish to deploy the assembly into eachonly> library> > > > directory for each web application. I would like to specify the> web> > > > assembly in a "global" directory on my web server. (By global I'm
> > > referring
> > > > to a directory that is not part of any web application.) Then each> > > > application that references my custom assembly will reference the"global"> is> > > copy
> > > > of the assembly found in a global directory. The problem I'm having> web.config> > assemblies> > > that
> > > > my ASPX module does not like assembly directives that point to> > > > outside the web application. I tried modify the application> > > file
> > > > to include a <codebase> and <probing> element in the configuration's
> > > runtime
> > > > element but without success. So, is it possible to reference>> >> > > > assemblies? If so, how should the web.config file be setup?
> > > >
> > > > Thanks for you time,
> > > > Mike M.
> > > >
> > > >
> > >
> > >
> >
>
Mike M Guest



Reply With Quote

