HELP!! problem running .net application from mapped network drive

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dreea
    New Member
    • Aug 2007
    • 37

    HELP!! problem running .net application from mapped network drive

    Hello
    i have a .netapplication that runs with no problem when launched from the local machine, but when i try to run the same executable from the network the applications doesn't start. I suppose that the .exe.config file has something to do with it. Here is the content of the configuration file

    [CODE=xml]
    <?xml version="1.0" encoding="utf-8" ?>
    <configuratio n>
    <configSections >
    <sectionGroup name="userSetti ngs" type="System.Co nfiguration.Use rSettingsGroup, System, Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9" >
    <section name="DiffViewe r.Properties.Se ttings" type="System.Co nfiguration.Cli entSettingsSect ion, System, Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9" allowExeDefinit ion="MachineToL ocalUser" requirePermissi on="false" />
    </sectionGroup>
    </configSections>
    <userSettings >
    <DiffViewer.Pro perties.Setting s>
    <setting name="DirSyncLa stSourcePath" serializeAs="St ring">
    <value />
    </setting>
    <setting name="DirSyncLa stTargetPath" serializeAs="St ring">
    <value />
    </setting>
    <setting name="InfoPanel VisibleOnStartU p" serializeAs="St ring">
    <value>True</value>
    </setting>
    <setting name="Previewer Maximized" serializeAs="St ring">
    <value>False</value>
    </setting>
    </DiffViewer.Prop erties.Settings >
    </userSettings>
    </configuration>
    [/CODE]

    does anyone know or is there anything i can do in order for the application to run when being launched from the network drive?
    thank you :)
    Last edited by Plater; Jan 14 '08, 05:50 PM. Reason: fixed code tag
  • jehrich
    New Member
    • Jan 2008
    • 24

    #2
    Hi Dreea,

    You must configure the .NET framework to trust network locations. This must be done on the machine where you will be running the application. Here is a thread with some more information:



    Good luck,

    JE
    Last edited by Plater; Jan 21 '08, 03:50 PM. Reason: [URL] link

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      Originally posted by jehrich
      Hi Dreea,

      You must configure the .NET framework to trust network locations. This must be done on the machine where you will be running the application. Here is a thread with some more information:

      http://forums.microsof t.com/MSDN/ShowPost.aspx?P ostID=244031&Si teID=1

      Good luck,

      JE
      I have been wondering how this was done for quite some time

      Comment

      • Dreea
        New Member
        • Aug 2007
        • 37

        #4
        thank you very much!!!!! :)

        Comment

        Working...