Solved

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

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need help on C# Linq query on object 6 53
Visual Studio 2015 Source Code Control 10 32
C#.NET and microsoft certification. 3 31
Video Player 2017 5 8
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

912 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

26 Experts available now in Live!

Get 1:1 Help Now