could not find part of the path

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sandeepdhankar10
    New Member
    • Dec 2008
    • 36

    could not find part of the path

    hi experts

    i have a problem with vista.. i have a activex in .net(VS2005) and embed that in a web page.. when i run the page on server2003, xp , and also on some vista systems..it work fine and able to run and doing own work ..

    but in some vista system activex works but throw an exception
    that
    could not find part of the path 'c:\users\comvi sion\Appdata\Lo cal\microsoft\w indows\temarary internet files\Virtualiz ed\c:\users\com vision\Appdata\ Local\Temp\Low\ asgd23.tmp'

    when i checked this path i found that ~\Temp\Low is not there..
    if i manually make a folder with name Temp and Low inside it .. then it start working.

    so i am not able to under stand what sholud i do..
    this problem come in some vista PC and on other vista PC it works fine..

    please help me out.. i reallly indeed.. pls

    thanks
    Last edited by Frinavale; Jan 9 '09, 03:01 PM. Reason: Moved to ASP.NET from .NET
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Is asgd23.tmp a file you use in your activeX? Are you not instanciating your directories correctly maybe?
    Not sure why it would for some and not others, but that usually means there is a permissions issue I think.

    Comment

    • tlhintoq
      Recognized Expert Specialist
      • Mar 2008
      • 3532

      #3
      In all my C# windows forms apps I always make sure that I make the directory I'm expecting before doing anything else. If the directory already exists, then no harm. Then I wrap the writing function in a construct such as...
      Code:
       if (Directory.Exists(myFolderVariable)
      {
      ... // Code for writting
      }
      Just to cover the bases in case I don't have permissions to that path.

      Can you do something similar with your ActiveX project?

      Comment

      • sandeepdhankar10
        New Member
        • Dec 2008
        • 36

        #4
        hey guys never mind....
        i found the solution for that..

        actully in vista browser u have disble on efeature.. in tool>>>internet options>>>secur ity
        here u find a check box "Enable Protected mode"
        make sure this is unchecked.. if it is checked then pls disable this.,.
        and agian reload the browers .. and u will see it works...


        atleast for me it works... :)

        Comment

        • Plater
          Recognized Expert Expert
          • Apr 2007
          • 7872

          #5
          Heh, with Vista, most problems seem to come down to a permissions issue

          Comment

          Working...