Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2008-06-13
4
Medium Priority
?
232 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

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

636 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