Solved

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

Posted on 2008-06-13
4
226 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 33

Expert Comment

by:raterus
ID: 21782946
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
ID: 21935695
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
ID: 22208722
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 Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

749 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