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

Discussion in 'ASP .Net' started by =?Utf-8?B?TWFyYw==?=, Aug 7, 2006.

  1. 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
     
    =?Utf-8?B?TWFyYw==?=, Aug 7, 2006
    #1
    1. Advertising

  2. 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" <> wrote in message
    news:...
    >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 Timney \(MVP\), Aug 7, 2006
    #2
    1. Advertising

  3. 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" <> wrote in message
    > news:...
    > >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

    >
    >
    >
     
    =?Utf-8?B?TWFyYw==?=, Aug 10, 2006
    #3
  4. 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)


    "Marc" <> wrote in message
    news:...
    > 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" <> wrote in message
    >> news:...
    >> >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 Timney \(MVP\), Aug 10, 2006
    #4
  5. 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/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)
    >
    >
    > "Marc" <> wrote in message
    > news:...
    > > 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" <> wrote in message
    > >> news:...
    > >> >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
    > >>
    > >>
    > >>

    >
    >
    >
     
    =?Utf-8?B?TWFyYw==?=, Aug 11, 2006
    #5
  6. My pleasure, I hope you find a solution.

    Regards

    John Timney (MVP)


    "Marc" <> wrote in message
    news:...
    > 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/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)
    >>
    >>
    >> "Marc" <> wrote in message
    >> news:...
    >> > 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" <> wrote in message
    >> >> news:...
    >> >> >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 Timney \(MVP\), Aug 11, 2006
    #6
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Michal Valent
    Replies:
    2
    Views:
    1,092
    =?Utf-8?B?cmVpbmhhcmQ=?=
    Nov 27, 2003
  2. shailesh
    Replies:
    1
    Views:
    851
    Tim Golden
    Mar 28, 2007
  3. KevinSimonson
    Replies:
    17
    Views:
    708
    KevinSimonson
    Sep 28, 2009
  4. Mrunal

    Accessing ClearCase Mapped Drive using ASP.NET

    Mrunal, Nov 16, 2004, in forum: ASP .Net Security
    Replies:
    1
    Views:
    174
    Ken Schaefer
    Nov 16, 2004
  5. king
    Replies:
    1
    Views:
    311
Loading...

Share This Page