strange behaviour

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nazomens
    New Member
    • Jan 2010
    • 2

    strange behaviour

    Can anyone explaint the next thing:

    In the asp development environment (visual studio 2008, MS SQL Server) I can CopyFile files from one place on the network to another place and after that I can print them with ProcessStartInf o propeerties and methods.
    My production environment is on the same server as the development environment and I use exactly the same maps in both environments. Yet when I try to print files from the production environment I receive the message that the files cannot be found... even though CopFile works fine.

    Help
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    You are remembering that aspx code runs on the server and not on the client right?

    Comment

    • nazomens
      New Member
      • Jan 2010
      • 2

      #3
      script

      Yes, I know that, but perhaps you are referring to script code. But the behaviour I mentioned is strict asp code and runs on the server.
      It seems to me that the solution must be found somewhere in the user rights of the server user (IUSR_... or NT AUTHORITY\SYSTE M), because Visual Studio uses it own set of userrights and is not disturbed by default user rights.

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        A good way to test would be to edit the web.config file
        Add to the <appSettings> section:
        <identity impersonate="tr ue" userName="myDom ain\username" password="passw ord"/>

        And pick a user account that has the rights

        Comment

        Working...