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 5 1574
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.
--
Regards
John Timney (MVP)
"Marc" <Ma**@discussio ns.microsoft.co mwrote in message
news:35******** *************** ***********@mic rosoft.com...
>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
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
"John Timney (MVP)" wrote:
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.
--
Regards
John Timney (MVP)
"Marc" <Ma**@discussio ns.microsoft.co mwrote in message
news:35******** *************** ***********@mic rosoft.com...
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
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/de...ersonation.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)
"Marc" <Ma**@discussio ns.microsoft.co mwrote in message
news:3E******** *************** ***********@mic rosoft.com...
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
"John Timney (MVP)" wrote:
>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.
-- Regards
John Timney (MVP)
"Marc" <Ma**@discussio ns.microsoft.co mwrote in message news:35******* *************** ************@mi crosoft.com...
>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
John,
Thanks again.
- Marc
"John Timney (MVP)" wrote:
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/de...ersonation.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)
"Marc" <Ma**@discussio ns.microsoft.co mwrote in message
news:3E******** *************** ***********@mic rosoft.com...
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
"John Timney (MVP)" wrote:
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.
--
Regards
John Timney (MVP)
"Marc" <Ma**@discussio ns.microsoft.co mwrote in message
news:35******** *************** ***********@mic rosoft.com...
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
My pleasure, I hope you find a solution.
Regards
John Timney (MVP)
"Marc" <Ma**@discussio ns.microsoft.co mwrote in message
news:6B******** *************** ***********@mic rosoft.com...
John,
Thanks again.
- Marc
"John Timney (MVP)" wrote:
>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/de...ersonation.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)
"Marc" <Ma**@discussio ns.microsoft.co mwrote in message news:3E******* *************** ************@mi crosoft.com...
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
"John Timney (MVP)" wrote:
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.
-- Regards
John Timney (MVP)
"Marc" <Ma**@discussio ns.microsoft.co mwrote in message news:35******* *************** ************@mi crosoft.com... 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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Anthony Boudouvas |
last post by:
Hi to all,
is there a way to access a mapped network drive from
a Windows Service application ?
I created a very simple one, using a timer that checks for a file existance
on G:\Emails
(a Novell server mapped drive)
I created the Service with "LocalSystem" for the ServiceProcess.Account
and it cannot find the G:\ drive.
|
by: Niloday |
last post by:
Hi All,
I am trying to access a mapped network drive from a service that I have
created.
The service needs to create/delete folders/files on a network drive. When I
tried to connect to a folder on mapped network drive (eg. N:\Storage that
corresponds to \\FS1NS\SharedDir\), I get an error as "Could not find part
of path N:\".
|
by: Max Baki via .NET 247 |
last post by:
I all,
i've write a sample ftp Windows service which download files and copy them on remote share or remote mapped drive (the service works fine on local drives).
This part of code is the function to change the local path for downloaded files.
If the configured path is different from local drive C: the new path is selected.
The program works fine in debug or release mode into Visual Studio. All downloaded files were placed on remote...
|
by: Bonj |
last post by:
I have a service which is a Windows Service, but it is running under a User
account - I enter my own credentials on installing.
It can access network files by specifying the full UNC path, i.e.
\\server\share, but it can't use mapped drive letters.
Is there anyway I can modify it so that it can?
Thanks
|
by: Jasonkimberson |
last post by:
Currently I am having a problem creating a windows service that
monitors a mapped drive for events (using the FileSystemEventHandler).
The service complies but fails to start:
"The XMLWatcher service on Local Computer started and then stopped.
Some services stop automatically if they have no work to do, for
example, the Preformance Logs and Alerts service."
The Service has no problem starting if i point the folder to be
monitored to...
| |
by: Nirosh |
last post by:
Hi All,
Can any one suggest me a best way to do this ..
I have a thrid party tool "EXE" that we need to use with our web service to
manipulate some complex XML files, which reside in a seperate files server.
we have mapped the fodler to a different folder and need to allow the EXE to
process on the mapped drive. When I trigger the EXE via web service the EXE
get the permission of the launching user (mean ASP.NET user) resulting a...
|
by: Dave Stewart |
last post by:
I am attempting to write a vb.net windows service that will automate various
file movements on my network. When I attempt to access files on a mapped
drive or UNC file share, I get exceptions claiming that the file is not
there. However if I copy the file path directly in to explorer it pops right
up.
I know that my service is running as local system and this must be causing
the problems. When I write the windowsidentity.getcurrent().name...
|
by: Ruben Fdez. |
last post by:
Hi, I'm in troubles with Windows XP SP_2
I've mapped a net drive to Z: for the machine user Administrator.
I've build a Windows service in C# and .NET Framework 1.1. This service
must copy several files to this net drive and for that, I use de
Administrator account on the machine.
|
by: sajid_yusuf |
last post by:
Hi
I am trying to develop a Windows service in VB.NET which has timer
enabled and keeps checking a folder (or group of folders) for any new
file or changed files. As soon as it detects any new file or changes
(to files or folders) then it copies the files (and any new folders) to
a folder in the mapped network drive.
So far I have been successful in developing and deploying the service
which works on my local machine with two drives...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |