Solved

remote reference to a dll on backend server from a virtual website

Posted on 2008-06-13
4
221 Views
Last Modified: 2013-11-07
I have my website hosted on a virtual website on IIS to which I don't have access to except deploying code to my doc root.
  My project requires having the data access layer in a back-end 2003 server as a dll. Since I don't have exclusive use of the web server, I cannot map a drive to reference the path to the dll on remote server. How do I access the back-end dll, if the path to back end server looks like this //xxxx/e$/DataLayer/bin/Debug/DataLayer.dll ?
  I have Oracle client installed on local machine where I'm developing. There is none on the Web Server. But it is installed on the back end server. I don't want any issues when I deploy my code to the web server and invoke the back-end data layer from web server.
  I'd appreciate your help.
0
Comment
Question by:varasani
  • 2
4 Comments
 
LVL 33

Expert Comment

by:raterus
Comment Utility
Instead of trying to access another server (Which I highly doubt you can do here), why don't you just copy the DataLayer.dll to the /Bin folder of your application?
0
 

Author Comment

by:varasani
Comment Utility
Hi raterus,
  Sorry for the late response. For some reason I didn't see the response till today. Why do you think that I wont be able to access the remote server from the front end? If I copy the data.dll along with my front end source code and run in debugger mode in my local desktop and connect to the backend, it works fine since I have Oracle client on my desktop.
  It does not work if I move it to the server. I get some ora error, that the Ora client installed should be more than version 6 or something like that. But there is no client installed on the web server. Backend has Oracle 10g installed.

Thanks.
0
 

Accepted Solution

by:
varasani earned 0 total points
Comment Utility
The answer to my question is to use MarshallByRefObject for the remote class I was trying to access. You got to have an intermediary .exe on the remote host that listens to the incoming request and sends the remote object's reference to the requesting server.

  There is an article on MSDN explaining how to do using TCP/IP. You can also alternatively use HTTP stream.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Problem to picture file 3 38
Pass through dll 2 34
Change data in datatable 8 15
c# if statement weird reaction 3 29
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now