Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 132629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:17:34+00:00 2026-05-11T06:17:34+00:00

I have an application with 2 directories (books and export). If we create a

  • 0

I have an application with 2 directories (books and export).
If we create a book or a page of a book in the application a directory is added with the id of the page (this is for uploading resources).
If we delete a page, the page (and it’s directory) is removed from the database and the filesystem.

However this resulted in a session loss (even an application restart). I’ve looked up some thing on google and found the following link.
It seems to be a problem in ASP.NET 2.0 (and 3.5).

We are now thinking about writing a service that will clean up the directories at night.
But there has got to be another solution for this no?
Oh and putting the directory outside the virtual directory is not an option.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T06:17:34+00:00Added an answer on May 11, 2026 at 6:17 am

    Oh and putting the directory outside the virtual directory is not an option.

    Putting the directory outside the virtual directory is the only solution I found (so far). What you can do, is to create a link (junction) in the file system so that the directory appears to be inside the virtual directory, e.g:

    • Our web site (virtual directory) is located at C:\projectX\website
    • the data directory (where we create/delete files and folders) is located at C:\projectX\data
    • then we create a link which makes the data folder available as C:\projectX\website\data

    The link is created using the program Linkd.exe (available in the windows resource kit), with the following command:

    linkd c:\projectX\website\data c:\projectX\data 

    Now c:\projectX\website\data is a link/junction which points to the real data directory. You can work with the link as if it were a physical directory.

    E.g. in your web site you can access it using this code:

    Server.MapPath('~/data') 

    And you can also used the windows file explorer and browse to C:\projectX\website\data. It appears just like a real directory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have an application which stores files in directories that I create when
I have an application using JFileChooser to select a directory. In this app, I
I have an application that creates invalid Directories... e.g. c:\Program Files\somedirectory. - the period
I have the following situation: multiple virtual directories under same application pool in IIS
I have application with needs to have access to some sensitive data(in this case
I have Application written with GWT 1.7. I have one page where I upload
I have an application in a virtual directory (ASP.Net 4.0 C#). It is secured
I have a web application that creates directories. The application works fine when creating
I have a web application that deploys with two virtual directories under it's IIS
We have a Python application that polls directories using threads and inotify watchers. We

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.