I know this has been asked before but I out of all the posts I've read
regarding using Directory.Move and then the application restarting itself I
have found no answer except that Sessions are buggy or that you should
create a new folder then copy the content of the old into it and then delete
the old one...pretty lame for such a simple IO action. Can microsoft give
an answer to how to fix this or is this just a know bug... that will
hopfully be fixed in Whidbey :).
Thanks 8 2366
Hi Ron,
From your description, you encoutered the recycling and session lost in
your web application after some certain operations. You mentioned the
"Directory.Move and IO action".
I'm not very sure on the detail of the IO Action you mentioned, would you
please provide some further description on it?
In addition, As far as I know, the following operations will cause the
ASP.NET workprocess or appdomain recycle and which will cause all the
Sessions lost:
1.Modify the machine.config file on of the server machine
2.Modify the web.config file of the application
3.Do some certain modification in the ASP.NET Webapplication's private
"bin" folder( the ASP.NET will moinitor any changes in this folder)
4.Any internal error occurs which exceed the processModel's certain
limitation. This is set in the machine.config's <processModel> element.
Please have a check to see whether the IO action have cause any of the
above things. Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Sorry, but that was it.
Basically I am renaming the directory
I had a diretory called > MyDirectory
MyDirectory (contents) Image1.jpg Image2.jpg
Directory.Move(MyDirectoryPath, MyNewDiretoryPath)
Note: the directory was renamed fine but only all sessions were lost.
Note: The directory has nothing to do with being inside of the /bin
directory
Note: The directory has nothing to do with the web.config file.
I am aware of modifiying the above file swould result in a app restart.
Simply... I am renaming a folder and it is restarting my application.
I have noticed posts regarding this with no resolution. Are ASPNET sessions
so buggy that renaming a folder will dump all sessions?
Thanks
Ron
"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:gL*************@cpmsftngxa06.phx.gbl... Hi Ron,
From your description, you encoutered the recycling and session lost in your web application after some certain operations. You mentioned the "Directory.Move and IO action". I'm not very sure on the detail of the IO Action you mentioned, would you please provide some further description on it?
In addition, As far as I know, the following operations will cause the ASP.NET workprocess or appdomain recycle and which will cause all the Sessions lost: 1.Modify the machine.config file on of the server machine
2.Modify the web.config file of the application
3.Do some certain modification in the ASP.NET Webapplication's private "bin" folder( the ASP.NET will moinitor any changes in this folder)
4.Any internal error occurs which exceed the processModel's certain limitation. This is set in the machine.config's <processModel> element.
Please have a check to see whether the IO action have cause any of the above things. Thanks.
Regards,
Steven Cheng Microsoft Online Support
Get Secure! www.microsoft.com/security (This posting is provided "AS IS", with no warranties, and confers no rights.)
Get Preview at ASP.NET whidbey http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Hi Ron,
Since you mentioned that the Certain directory path have nothing to do with
the "bin" folder or the webconfig, I'd like to generate some tests on my
side. Would you please provide some further infos on your web application's
directory structure:
1. Is it in the IIS site's root folder or just a sub virtual directory
under the site root folder?
2. Where is the "MyDirectory" you mentioned and where is the
"MyNewDirectory"( you want to move to )
Also, would you please try creating a nother new web application(emtpy one
with one simple page) and try doing the same operations in it to see
whether the Session also lost in such a simple web app?
If not, we should do some further research on the certain web application.
Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Basicaly the website is its won website in IIS, not a virtual site or
anything
The directory struct follows:
-----------------------------
<root>
/Main/
/Globals/
/WebImages/
/FolderToBeRenamed/
--MyImage1.jpg
--MyImage2.jpg
/Services/
/bin/
web.config
default.aspx
global.asax
IIS root folder is located at C:\Inetpub\wwwroot\
The website in questions root folder is Z:\websites\mywebsite\
The Directory being renamed (Directory.MoveTo) is located at
/WebImages/FolderToBeRenamed/
Also, it only seems to drop the sesssions when renaming the folder. I tried
Moving the directory to a different directory all togeather and everything
was fine. It only happens when I attemp to rename.
I will be able to perform the test later on today and will post my results.
Thanks for all your help.
"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:8u**************@cpmsftngxa06.phx.gbl... Hi Ron,
Since you mentioned that the Certain directory path have nothing to do
with the "bin" folder or the webconfig, I'd like to generate some tests on my side. Would you please provide some further infos on your web
application's directory structure: 1. Is it in the IIS site's root folder or just a sub virtual directory under the site root folder?
2. Where is the "MyDirectory" you mentioned and where is the "MyNewDirectory"( you want to move to )
Also, would you please try creating a nother new web application(emtpy one with one simple page) and try doing the same operations in it to see whether the Session also lost in such a simple web app?
If not, we should do some further research on the certain web application. Thanks.
Regards,
Steven Cheng Microsoft Online Support
Get Secure! www.microsoft.com/security (This posting is provided "AS IS", with no warranties, and confers no rights.)
Get Preview at ASP.NET whidbey http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Hi Ron,
Thanks for the response. I've also made some tests on my side on different
machine and enviroment. It seems this is a normal behavior of the ASP.NET
runtime, it'll monitor all the folders in the application, not only the bin
folder or the web.config. As for the normal folders , the constraint is not
very strict, but seems if we rename the folders' name, it'll surely cause
the web applicaiton's appdomain restart which directly cause all the
sessions drop. I've also consulted some experts on this to confirm it. So
this is a by design behavior of the ASP.NET. How do you think so? If you
still have anything unclear, please feel free to post here. Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Seems odd, i beleive you that it is by design, but why?
It seems that its only when renaming, not deleting or creating.
Odd that this is a design feature.
"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:ne**************@cpmsftngxa06.phx.gbl... Hi Ron,
Thanks for the response. I've also made some tests on my side on different machine and enviroment. It seems this is a normal behavior of the ASP.NET runtime, it'll monitor all the folders in the application, not only the
bin folder or the web.config. As for the normal folders , the constraint is
not very strict, but seems if we rename the folders' name, it'll surely cause the web applicaiton's appdomain restart which directly cause all the sessions drop. I've also consulted some experts on this to confirm it. So this is a by design behavior of the ASP.NET. How do you think so? If you still have anything unclear, please feel free to post here. Thanks.
Regards,
Steven Cheng Microsoft Online Support
Get Secure! www.microsoft.com/security (This posting is provided "AS IS", with no warranties, and confers no rights.)
Get Preview at ASP.NET whidbey http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Hi Ron,
Thanks for the followup. As you mentioned that this behavior seems ood
since only renaming rather than creating or .. cause the restart of
application, in fact I also feel a bit surprised on it because I also
haven't found and doc which definitly clarify this. Also, I think there
must be some other similar internal features due to the ASP.NET's runtime
monitoring on the webapplication's folder or some other resources. Hope the
related document will be completed soon. Thanks again for your notice.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Thanks,
"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:rA*************@cpmsftngxa06.phx.gbl... Hi Ron,
Thanks for the followup. As you mentioned that this behavior seems ood since only renaming rather than creating or .. cause the restart of application, in fact I also feel a bit surprised on it because I also haven't found and doc which definitly clarify this. Also, I think there must be some other similar internal features due to the ASP.NET's runtime monitoring on the webapplication's folder or some other resources. Hope
the related document will be completed soon. Thanks again for your notice.
Regards,
Steven Cheng Microsoft Online Support
Get Secure! www.microsoft.com/security (This posting is provided "AS IS", with no warranties, and confers no rights.)
Get Preview at ASP.NET whidbey http://msdn.microsoft.com/asp.net/whidbey/default.aspx This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Gema Gema |
last post by:
I have a large collection of directories full of various files and am
looking to create custom text files for the contents of each
directory. Here is the situation:
The directories are named...
|
by: Chad |
last post by:
I am receiving the following two errors in the code below. Both are
on Line 56.
error C2039: 'CreateDirectoryA' : is not a member of
'System::IO::Directory'
error C2660: 'CreateDirectoryA' :...
|
by: Hemant Shah |
last post by:
Folks,
I need to move HOME directory of an instance to another directory.
What is the best way of doing it?
Is changing password file enough? or dies DB2 store this info in it's own
config?
...
|
by: andrew |
last post by:
I do not understand how this function should work. It seems to be different than when I drag a folder ...
error message: Cannot create a file when that file already exists.
c:\atest has...
|
by: ngposter |
last post by:
Try the following code snippet:
Directory.CreateDirectory(@"C:\Folder1\");
Directory.Move(@"C:\Folder1\", @"C:\Folder2\");
Directory.Delete(@"C:\Folder2\");
After executing, a C:\Folder1...
|
by: rv |
last post by:
I am developing an ASP.NET website with C#, VS 2003 and Framework 1.1. For
some reason every time I execute a Directory.Move command, the next command
takes 10-20 seconds to execute. Has anyone...
|
by: Karel |
last post by:
Hello,
I have a VB.NET application where I want to move directories over a
network.
I tried this with system.io.directory.move, but that doesn't work over
different volumes.
Has anyone a...
|
by: Daves |
last post by:
why the heck can't I use Directory.Move() to rename a directory (containing
files) to a entry 2 levels below e.g.
uploads/tempfiles
-> uploads/tempfiles/48/003files
if I do this in one line...
|
by: Janiek Buysrogge |
last post by:
Hello,
Maybe this has been covered in the past in this group, but I wasn't
able to find any references. If it has been covered, please provide me
with a link of some sort.
I'm trying to...
|
by: Matt MacDonald |
last post by:
Hi all,
I'm having a really frustrating problem. I have a web application that
needs to modify the directory structure of the underlying files. The
problem I'm having is that after the system...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |