Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 2005 > Pro Visual Basic 2005
|
Pro Visual Basic 2005 For advanced Visual Basic coders working in version 2005. Beginning-level questions will be redirected to other forums, including Beginning VB 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro Visual Basic 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 20th, 2006, 06:06 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default Placing IIS resources where _I_ want them

In my classic ASP / VB6-webclass web site I have
Code:
inetpub
   |
   +—— components
   |       |
   |       +—— FS
   |       |    +—— FS.DLL
   |       |
   |       +—— CR
   |            +—— CR.DLL
   +—— wwwroot
           |
           +—— FS
           |    +—— FS.ASP
           |    +—— Images
           |    |      +—— . . .
           |    +—— Javascript
           |           +—— . . .
           |
           +—— CR
                |
                +—— CR.ASP
(and so on.) This way my executable code (called by the .ASPs) is separated from exposure to the internet, and so forth.

Now, I'd like to put .ASPX pages under \wwwroot, but put the dll holding the page’s class under \components. Can this even be done, or is .NET completely inflexible regarding the location of required components?
 
Old November 28th, 2006, 03:02 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Come on: It’s been a week—no one has a response?
 
Old November 28th, 2006, 07:36 PM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by BrianWren
 Come on: It’s been a week—no one has a response?
Okay, okay! Settle down.
First a disclaimer: I am working exclusively in .NET 2003, and although I was full steam on the beta 2005 I got shifted off to another projet about 6 months ago. So... things might have changed.

You can put dlls anywhere you want them to be as long as they are installed in the GAC. Otherwise, they need to be in the bin folder or one of its children.

Remember: The "equivalent" of the GAC in good ole COM was the registry - so it didn't matter at all where you placed the dlls, since the location of the dll was determined by COM which looked it up in the registry via the prog id.

Make Sense?

So, (again, unless things are changing), ASP.NET is inflexible about where the dlls can reside.

Woody Z http://www.learntoprogramnow.com
 
Old November 29th, 2006, 04:52 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

OK (breathe in . . . breathe out . . . breathe in . . . )

So If I place the compiled code in the GAC, the .asp will be able to "hook up" with the machinery therein?

Is there more to it than that?
 
Old November 29th, 2006, 05:20 PM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, if you register the code in the GAC, any application on that machine will be able to make a reference to it and use its services. To register the application into the GAC requires a strong name key and a few other small steps that you can easily locate with a search on the internet.

And no, there isn't really any more to it.

Woody Z http://www.learntoprogramnow.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Why is IE placing the image up into the H1? mishagos BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 2 December 7th, 2006 10:32 AM
Placing Session variable KamalRaturi ASP.NET 2.0 Professional 3 September 13th, 2006 04:53 AM
error in placing mysql.h jl_joanne Visual C++ 3 February 18th, 2005 07:09 PM
Placing quotes in attributes rooroo Classic ASP Basics 2 December 1st, 2003 01:00 PM
Placing processes in the background ohwail C++ Programming 2 September 10th, 2003 11:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.