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

Ask A Question

Stats

  • Questions 256k
  • Answers 256k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Bear in mind that ElementNotFoundException is not a checked exception… May 13, 2026 at 10:28 am
  • Editorial Team
    Editorial Team added an answer Second form. In my opinion, the less language constructs and… May 13, 2026 at 10:28 am
  • Editorial Team
    Editorial Team added an answer The foreign key blocks the initial delete, and the trigger… May 13, 2026 at 10:28 am

Related Questions

The production change implementers for our IT group have been tasked with reviewing the
I have a large application in a production environment that I'm trying to move
I have a pet project where I build a text-to-HTML translator. I keep the
I'm running Visual Studio 2008 on a Vista Ultimate box. When I create a

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.