Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. UNC required ???

UNC required ???

Scheduled Pinned Locked Moved Database
sysadminhelptutorialquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vector7
    wrote on last edited by
    #1

    Have a problem with the Server.MapPath command. This works on the local ServerA Server.MapPath("\FSDIR\WORK\track.mdb"); If I want access it from ServerB, programm requires UNC path. This is UNC, isn't it ? He doesn't accept \\ServerB Server.MapPath("\\ServerB\FSDIR\WORK\track.mdb"); Background : I have a Connectionstring and need access to an external server. Is there another method to do this ? Has anybody an example for a connectionstring which handles external access ?

    C J 2 Replies Last reply
    0
    • V Vector7

      Have a problem with the Server.MapPath command. This works on the local ServerA Server.MapPath("\FSDIR\WORK\track.mdb"); If I want access it from ServerB, programm requires UNC path. This is UNC, isn't it ? He doesn't accept \\ServerB Server.MapPath("\\ServerB\FSDIR\WORK\track.mdb"); Background : I have a Connectionstring and need access to an external server. Is there another method to do this ? Has anybody an example for a connectionstring which handles external access ?

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      This is the forum for ADO.NET. You should post in the ASP.NET[^] forum.


      Do you want to know more? WDevs.com - Member's Software Directories, Blogs, FTP, Mail and Forums

      1 Reply Last reply
      0
      • V Vector7

        Have a problem with the Server.MapPath command. This works on the local ServerA Server.MapPath("\FSDIR\WORK\track.mdb"); If I want access it from ServerB, programm requires UNC path. This is UNC, isn't it ? He doesn't accept \\ServerB Server.MapPath("\\ServerB\FSDIR\WORK\track.mdb"); Background : I have a Connectionstring and need access to an external server. Is there another method to do this ? Has anybody an example for a connectionstring which handles external access ?

        J Offline
        J Offline
        Jon Hulatt
        wrote on last edited by
        #3

        It's almost certainly a permissions problem. IIS runs as an anonymous user, which probably won't have access to your share. Try enabled NTLM (Integrated Windows Authentication) on your webserver, and then logging into your web application like that. IIS will then use your credentials, and it'll probably work.

        using System.Beer;

        C 1 Reply Last reply
        0
        • J Jon Hulatt

          It's almost certainly a permissions problem. IIS runs as an anonymous user, which probably won't have access to your share. Try enabled NTLM (Integrated Windows Authentication) on your webserver, and then logging into your web application like that. IIS will then use your credentials, and it'll probably work.

          using System.Beer;

          C Offline
          C Offline
          Colin Angus Mackay
          wrote on last edited by
          #4

          Jon Hulatt wrote: IIS runs as an anonymous user, which probably won't have access to your share. IIS runs as a special user, not anonymous. The user name is different depending on the version of windows being used. In IIS you can set which user will be used when the end user is logged on as anonymous. This user can be configured as a domain user, by default it is a machine user.


          Do you want to know more? WDevs.com - Member's Software Directories, Blogs, FTP, Mail and Forums

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups