Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: .Net Assemblies & web.config


Message #1 by lim soo <limsk99@y...> on Wed, 6 Feb 2002 00:48:06 -0800 (PST)
Hi, 



I was understood that every time when one needs a

component for the use of .NET web application, they

can place those component at /bin directory. By just

telling the ASP.NET page where to find it by adding

some code in web.config file. Can I use XCOPY

deployment for this case?



 



Just wonder what are those lines of code? Does it look

something like this as below?



 



<configuration>



<system.web>



            <compilation>



                        <assemblies>



                                    <add

assembly=?ComponentA?/>



                        </assemblies>



            </compilation>



</system.web>



</configuration>



 



If I add this to my web.config file, do I need to

register them using the regsvr32 method in /bin

directory? What is the proper step?



 



Thanks for the advice.



 



mavis





__________________________________________________

Do You Yahoo!?

Send FREE Valentine eCards with Yahoo! Greetings!

http://greetings.yahoo.com

Message #2 by "Albert Davis" <albertdavis@h...> on Wed, 06 Feb 2002 08:35:24 -0500
.NET Assemblies don't ever get registered by using "regsvr32" - so don't 

worry about this step...  As well as adding a line to your web.config file - 

you probably don't have to worry about this step either...  Check in your 

machine.config file and you probably (cause I'm pretty sure it's the default 

configuration) see a line that looks like <add assembly="*"/>..  This tag 

will take care of your component - so you can just XCOPY your components to 

your \bin directory, add a reference to the component within one of your 

.aspx or codebehind pages and you should be all set...



Al







>From: lim soo <limsk99@y...>

>Reply-To: "ASP+" <aspx@p...>

>To: "ASP+" <aspx@p...>

>Subject: [aspx] .Net Assemblies & web.config

>Date: Wed, 6 Feb 2002 00:48:06 -0800 (PST)

>

>Hi,

>

>I was understood that every time when one needs a

>component for the use of .NET web application, they

>can place those component at /bin directory. By just

>telling the ASP.NET page where to find it by adding

>some code in web.config file. Can I use XCOPY

>deployment for this case?

>

>

>

>Just wonder what are those lines of code? Does it look

>something like this as below?

>

>

>

><configuration>

>

><system.web>

>

>             <compilation>

>

>                         <assemblies>

>

>                                     <add

>assembly=?ComponentA?/>

>

>                         </assemblies>

>

>             </compilation>

>

></system.web>

>

></configuration>

>

>

>

>If I add this to my web.config file, do I need to

>register them using the regsvr32 method in /bin

>directory? What is the proper step?

>

>

>

>Thanks for the advice.

>

>

>

>mavis

>

>

>__________________________________________________

>Do You Yahoo!?

>Send FREE Valentine eCards with Yahoo! Greetings!

>http://greetings.yahoo.com

>












_________________________________________________________________

Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.



Message #3 by lim soo <limsk99@y...> on Thu, 7 Feb 2002 23:52:40 -0800 (PST)
hi, 

Thanks, al. All I need to do is just add reference

from COM in VS.NET & insert another statement like - 

imports ComponentA at my .aspx, right?



mavis



--- Albert Davis <albertdavis@h...> wrote:

> .NET Assemblies don't ever get registered by using

> "regsvr32" - so don't 

> worry about this step...  As well as adding a line

> to your web.config file - 

> you probably don't have to worry about this step

> either...  Check in your 

> machine.config file and you probably (cause I'm

> pretty sure it's the default 

> configuration) see a line that looks like <add

> assembly="*"/>..  This tag 

> will take care of your component - so you can just

> XCOPY your components to 

> your \bin directory, add a reference to the

> component within one of your 

> .aspx or codebehind pages and you should be all

> set...

> 

> Al

> 

> 

> 

> >From: lim soo <limsk99@y...>

> >Reply-To: "ASP+" <aspx@p...>

> >To: "ASP+" <aspx@p...>

> >Subject: [aspx] .Net Assemblies & web.config

> >Date: Wed, 6 Feb 2002 00:48:06 -0800 (PST)

> >

> >Hi,

> >

> >I was understood that every time when one needs a

> >component for the use of .NET web application, they

> >can place those component at /bin directory. By

> just

> >telling the ASP.NET page where to find it by adding

> >some code in web.config file. Can I use XCOPY

> >deployment for this case?

> >

> >

> >

> >Just wonder what are those lines of code? Does it

> look

> >something like this as below?

> >

> >

> >

> ><configuration>

> >

> ><system.web>

> >

> >             <compilation>

> >

> >                         <assemblies>

> >

> >                                     <add

> >assembly=?ComponentA?/>

> >

> >                         </assemblies>

> >

> >             </compilation>

> >

> ></system.web>

> >

> ></configuration>

> >

> >

> >

> >If I add this to my web.config file, do I need to

> >register them using the regsvr32 method in /bin

> >directory? What is the proper step?

> >

> >

> >

> >Thanks for the advice.

> >

> >

> >

> >mavis

> >

> >

> >__________________________________________________

> >Do You Yahoo!?

> >Send FREE Valentine eCards with Yahoo! Greetings!

> >http://greetings.yahoo.com

> >





> $subst('Email.Unsub').

> 

> 

> 

> 

>

_________________________________________________________________

> Get your FREE download of MSN Explorer at

> http://explorer.msn.com/intl.asp.

> 

> 





$subst('Email.Unsub').





__________________________________________________

Do You Yahoo!?

Send FREE Valentine eCards with Yahoo! Greetings!

http://greetings.yahoo.com

Message #4 by "Albert Davis" <albertdavis@h...> on Fri, 08 Feb 2002 13:23:29 -0500
Correct - if you are wanting to reference a COM component using VS.NET the 

COM tag will serve this purpose which will create a proxy object for 

communication.  But if you are wanting to reference a .NET Assembly then add 

that assembly to the /bin directory - if code behind pages are being used 

then add a reference under the .NET tab and compile as normal - and if .aspx 

pages are needing the reference then just add your imports statement (since 

your using VB.NET)...  When you request that .aspx page from browser 

invocation the .NET Runtime will JIT that directory thus compiling your 

.aspx page at runtime.  The actual assembly for your .aspx pages will be 

managed from a Microsoft.NET Temp direcory.



Hope this helps,

Al



>From: lim soo <limsk99@y...>

>Reply-To: "ASP+" <aspx@p...>

>To: "ASP+" <aspx@p...>

>Subject: [aspx] Re: .Net Assemblies & web.config

>Date: Thu, 7 Feb 2002 23:52:40 -0800 (PST)

>

>hi,

>Thanks, al. All I need to do is just add reference

>from COM in VS.NET & insert another statement like -

>imports ComponentA at my .aspx, right?

>

>mavis

>

>--- Albert Davis <albertdavis@h...> wrote:

> > .NET Assemblies don't ever get registered by using

> > "regsvr32" - so don't

> > worry about this step...  As well as adding a line

> > to your web.config file -

> > you probably don't have to worry about this step

> > either...  Check in your

> > machine.config file and you probably (cause I'm

> > pretty sure it's the default

> > configuration) see a line that looks like <add

> > assembly="*"/>..  This tag

> > will take care of your component - so you can just

> > XCOPY your components to

> > your \bin directory, add a reference to the

> > component within one of your

> > .aspx or codebehind pages and you should be all

> > set...

> >

> > Al

> >

> >

> >

> > >From: lim soo <limsk99@y...>

> > >Reply-To: "ASP+" <aspx@p...>

> > >To: "ASP+" <aspx@p...>

> > >Subject: [aspx] .Net Assemblies & web.config

> > >Date: Wed, 6 Feb 2002 00:48:06 -0800 (PST)

> > >

> > >Hi,

> > >

> > >I was understood that every time when one needs a

> > >component for the use of .NET web application, they

> > >can place those component at /bin directory. By

> > just

> > >telling the ASP.NET page where to find it by adding

> > >some code in web.config file. Can I use XCOPY

> > >deployment for this case?

> > >

> > >

> > >

> > >Just wonder what are those lines of code? Does it

> > look

> > >something like this as below?

> > >

> > >

> > >

> > ><configuration>

> > >

> > ><system.web>

> > >

> > >             <compilation>

> > >

> > >                         <assemblies>

> > >

> > >                                     <add

> > >assembly=?ComponentA?/>

> > >

> > >                         </assemblies>

> > >

> > >             </compilation>

> > >

> > ></system.web>

> > >

> > ></configuration>

> > >

> > >

> > >

> > >If I add this to my web.config file, do I need to

> > >register them using the regsvr32 method in /bin

> > >directory? What is the proper step?

> > >

> > >

> > >

> > >Thanks for the advice.

> > >

> > >

> > >

> > >mavis

> > >

> > >

> > >__________________________________________________

> > >Do You Yahoo!?

> > >Send FREE Valentine eCards with Yahoo! Greetings!

> > >http://greetings.yahoo.com

> > >





> > $subst('Email.Unsub').

> >

> >

> >

> >

> >

>_________________________________________________________________

> > Get your FREE download of MSN Explorer at

> > http://explorer.msn.com/intl.asp.

> >

> >





>$subst('Email.Unsub').

>

>

>__________________________________________________

>Do You Yahoo!?

>Send FREE Valentine eCards with Yahoo! Greetings!

>http://greetings.yahoo.com

>












_________________________________________________________________

MSN Photos is the easiest way to share and print your photos: 

http://photos.msn.com/support/worldwide.aspx




  Return to Index