Prev: VB.NET and sql server
Next: contextmenu
From: Nathan Sokalski on 6 Mar 2010 14:05 I have a Solution that contains a Web Application and a Class Library. The Class Library contains an HTTP Handler, which implements IHttpHandler and needs registered in the config file. I want the *.dll for the Class Library to be available and work independently of the Web Application. The handler works when I register the handler in the <httpHandlers> section of the Web.config file in the Web Application, but how can I register it using the Class Library? Thanks. -- Nathan Sokalski njsokalski(a)hotmail.com http://www.nathansokalski.com/
From: Mr. Arnold on 6 Mar 2010 17:22 Nathan Sokalski wrote: > I have a Solution that contains a Web Application and a Class Library. > The Class Library contains an HTTP Handler, which implements > IHttpHandler and needs registered in the config file. I want the *.dll > for the Class Library to be available and work independently of the Web > Application. The handler works when I register the handler in the > <httpHandlers> section of the Web.config file in the Web Application, > but how can I register it using the Class Library? Thanks. A class library uses an app.config.
From: Nathan Sokalski on 6 Mar 2010 20:25 I did notice the app.config file in the Class Library, but when I moved the registration from the Web Application's Web.config to the Class Library's app.config, it didn't seem to do anything. Is there anything that needs to be different in any way when the registration is in app.config? Thanks. -- Nathan Sokalski njsokalski(a)hotmail.com http://www.nathansokalski.com/ "Mr. Arnold" <Arnold(a)Arnold.com> wrote in message news:uS4$ZuXvKHA.5280(a)TK2MSFTNGP04.phx.gbl... > Nathan Sokalski wrote: >> I have a Solution that contains a Web Application and a Class Library. >> The Class Library contains an HTTP Handler, which implements IHttpHandler >> and needs registered in the config file. I want the *.dll for the Class >> Library to be available and work independently of the Web Application. >> The handler works when I register the handler in the <httpHandlers> >> section of the Web.config file in the Web Application, but how can I >> register it using the Class Library? Thanks. > > A class library uses an app.config.
From: Mr. Arnold on 6 Mar 2010 22:09 Nathan Sokalski wrote: > I did notice the app.config file in the Class Library, but when I moved > the registration from the Web Application's Web.config to the Class > Library's app.config, it didn't seem to do anything. Is there anything > that needs to be different in any way when the registration is in > app.config? Thanks. The Web.config is the root of all configs and the app.config is going to be ignored by the Web application. You should make a Console project and add the classlib project to the solution and try the app.config there.
From: Cor Ligthert[MVP] on 7 Mar 2010 04:04
A DLL in Net is a Class Library not something that is independent working. If you want the later you can use a service (or a webservice of WFC). Success Cor "Nathan Sokalski" <njsokalski(a)hotmail.com> wrote in message news:47168E65-BCFE-4795-9A7D-4C8934D0D464(a)microsoft.com... > I have a Solution that contains a Web Application and a Class Library. The > Class Library contains an HTTP Handler, which implements IHttpHandler and > needs registered in the config file. I want the *.dll for the Class > Library to be available and work independently of the Web Application. The > handler works when I register the handler in the <httpHandlers> section of > the Web.config file in the Web Application, but how can I register it > using the Class Library? Thanks. > -- > Nathan Sokalski > njsokalski(a)hotmail.com > http://www.nathansokalski.com/ |