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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Studio
  4. File System access seems to fail from VS 2005 add-in

File System access seems to fail from VS 2005 add-in

Scheduled Pinned Locked Moved Visual Studio
visual-studiocsharphelptutorialquestion
1 Posts 1 Posters 1 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.
  • D Offline
    D Offline
    debnarayan
    wrote on last edited by
    #1

    Hi, I am working on a Visual Studio 2005 Add-In, which runs a Win-Form application to gather the data for it, and do other stuff. Later the add-in gathers certain info from the winform to open a solution file in the Visual Studio instance. Problem is[, rather are]: 1. There is a folder-browser dialog in the win-form, which is not displayed correctly. The folder list is not displayed at all. Looks like it cannot read the file-system 2. The win-form tries to save certain files to the system [to a folder pointed by user by the folder-dialog], which is failing [We have free-text area where we can type in the target folder name, if the browser does not work] This is happening on Vista machine [that's all that i have here] irrespective of UAC being turned on or off. Primary steps followed: 1. The winform app has to run by itself, and also from the add-in. So i hosted the win-form app in an AppDomain from the add-in. Also it has to be hosted in a separate thread, or else the form-closing signal [or that is what it seemed] was closing the Visual Studio window as well. 2. The win-form knows whether it is running from add-in or all by itself. Some string values are transferred from the add-in to the win-form and vice-versa via the AppDomain data storage. 3. As we are using Vista, the win-form as an independant application is made UAC aware, by the manifest file. So file system access is running great when i run the win-form independantly. Am i doing something wrong? Please guide...

    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