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
Solved

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

Posted on 2008-06-13
4
225 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
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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

829 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