Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - 1 source of DLLs for Multiple Servers
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

1 source of DLLs for Multiple Servers

 Post Reply Post Reply Page  <12
Author
Bunce View Drop Down
Senior Member
Senior Member
Avatar

Joined: 10 April 2002
Location: Australia
Status: Offline
Points: 846
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bunce Quote  Post ReplyReply Direct Link To This Post Posted: 12 March 2003 at 2:50pm

Sorry for ranting, as for your particular issue, web services are probably the way to go.

If you convert your components to a web-service, then any applications can access them through HTTP:
http://aspnet.4guysfromrolla.com/articles/062602-1.aspx

Remoting is also a possibility:
http://msdn.microsoft.com/library/default.asp?PP=/library/toc/cpref/cpref0-45.xml&tocPath=cpref0-45&URL=/library/dotnet/cpref/frlrfSystemRuntimeRemoting.htm

There are a couple of videos on LearnVisualStudo.net about remoting which are quite interesting, and explain how they work. Explains MarshallByRef (where the component runs on the host server) or MarshallByValue (component runs on the client)

It depends on exactly what you want to do with your components, who you want to make them available to, in what type of applications etc.



Edited by Bunce
There have been many, many posts made throughout the world...
This was one of them.
Back to Top
CountAnton View Drop Down
Newbie
Newbie
Avatar

Joined: 18 February 2003
Location: United Kingdom
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote CountAnton Quote  Post ReplyReply Direct Link To This Post Posted: 17 March 2003 at 1:55am

Okay, thanks for the info.  I'm sure the videos are great, but I only work part time here, and so I really only have time to look at things directly relevent to the problem at hand.  Also I'm not prepared to invest my personal funds on a work related project, I come here to earn money, not to spend it.

I am currently investigating remoting, and if that doesn't work I'll try web services.

I thought I was using assemblies.  They just seem to have 'dll' extensions, which is why I called them dlls.  Should .net assemblies have different extensions? 

Basically, an example of what I am trying to do, is the database assembly.  This is an assembly that sits on a server with Oracle Client installed, and when called, creates a connection to one of several different database servers we have here.  This mainly gets called by the intranet asp.net application that sits on the same server.

However, there is also another asp.net application that sits on a different server.  This also connects to the same databases, so should use the same assembly.

Also, it is possible that some windows applications may be written that sit on various client machines, that should also reference the same assembly.  This could be especially useful because Oracle Client would not need to be installed on each machine, just the server.

The same thing would apply to other assemblies...

Back to Top
Bunce View Drop Down
Senior Member
Senior Member
Avatar

Joined: 10 April 2002
Location: Australia
Status: Offline
Points: 846
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bunce Quote  Post ReplyReply Direct Link To This Post Posted: 17 March 2003 at 2:19am

Yep sorry. I was probably confusing things. They do have the same extension but are different from what we generally refer to as DLL's that must be registered by the OS.

Probably best we call them components!  Makes it a lot clearer..

As for your question, Remoting is a possibilty, however for the Oracle situation, you're adding another 'path' that the data must travel. ie From DB Server -> 'Central' server (which hosts your components) -> to local Server -> Client.

I'd imagine it would be more efficient for the data to skip the 'Central' Server in this situation, which would probably require you copying the components to each server.

Thats the advantage with 'assemblies' in .NET though. All you have to do is copy them to the \bin directory of your Web app (or the global assembly cache) and they're instanty available. No registering! 

Plus you'd think that once your component has been tested and finalised that it wouldn't need to be altered often? Additionally, doesn't .NET have a built in Oracle driver??

Anyway, there is another possible solution. There is a method in .NET where the client automatically downloads the application / components / classes upon request, which ensures the latest version (I think!)

I've read a bit about it and will try and find some more info. Get back to ya soon.

Cheers,
A

There have been many, many posts made throughout the world...
This was one of them.
Back to Top
CountAnton View Drop Down
Newbie
Newbie
Avatar

Joined: 18 February 2003
Location: United Kingdom
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote CountAnton Quote  Post ReplyReply Direct Link To This Post Posted: 02 April 2003 at 6:04am

Okay, I have successfully run some tests for both Remoting and Web Services.  I think that Web Services seem a lot cleaner to use than Remoting, although it should be easy enough to just create a Web Services layer that allows access to certain classes to existing classes with the assemblies.

That way the main Intranet application will be able to run directly from the assemblies in its bin, whilst also offering bits of those assemblies to other secondary applications via some Web Services.

As for Oracle drivers, there isn't one with the basic distribution of .Net but MicroSoft have made one available.  I am of course using this, but what I call my Database assembly for accessing our Oracle Databases is higher level code than this.

As for registering dlls etc.  All sounds good although I have no idea what problems there were before because I am an ASP programmer that has only just started using assemblies now we are upgrading to ASP.Net and C#.  That .Net means we can use the same code to write Windows Applications is just something that has opened up possibilities.

Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.