Asp.Net, Web Service needing binaries off of a Mapped Drive

G

Guest

I am trying to run a web service that has pre-compiled dll's that reference
dll's that are on a mapped drive. The web service can not load because it
does not see that mapped drive and returns an error of "Can not file
specified module". Mapped drive is added to path.

Thanks,

Marc
 
J

John Timney \(MVP\)

A mapped drive is something that belongs to a logged in user . ie you have a
X drive mapped. Your web server, and the account it runs under typically
has no concept of what a mapped drive is, and no profile to allocate a
mapped drive letter into. So you cannot use drive letters in asp.net, only
UNC paths.

I dont have a stright answer for you but I would guess that you will need to
point to the UNC share by creating a virtual folder with an alias pointing
to it in IIS and see if that enables your DLL to see the remote DLL.
Somehow I think you will be better off copying them locally.
 
G

Guest

John,
Is it possible to set up a custom account with rights from OS to get access
to these mapped drives in the path environment variable.

Thanks,
Marc
 
J

John Timney \(MVP\)

ASP.NET user runs as a specialised account setting. You can impersonate any
user in your web application, in theory inheriting their access rights -
look up impersonation.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsent7/html/vxconImpersonation.asp

Also, this is an interesting read from another MVP Rick Strahl

http://west-wind.com/weblog/posts/1572.aspx

- Niether approach are likely to give you the ability to interact with
mapped drives other than via UNC, and often only by using a domain account
that can authenticate to both servers. I dont think you can reference
remote DLL's like the way you are trying to, but impersonation is likely to
be the way to go if there is a solution to be had.

Regards

John Timney (MVP)
 
G

Guest

John,

Thanks again.

- Marc

John Timney (MVP) said:
ASP.NET user runs as a specialised account setting. You can impersonate any
user in your web application, in theory inheriting their access rights -
look up impersonation.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsent7/html/vxconImpersonation.asp

Also, this is an interesting read from another MVP Rick Strahl

http://west-wind.com/weblog/posts/1572.aspx

- Niether approach are likely to give you the ability to interact with
mapped drives other than via UNC, and often only by using a domain account
that can authenticate to both servers. I dont think you can reference
remote DLL's like the way you are trying to, but impersonation is likely to
be the way to go if there is a solution to be had.

Regards

John Timney (MVP)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,708
Latest member
SherleneF1

Latest Threads

Top