Directory.Move->会话失去了 [英] Directory.Move-> Sessions Lost

查看:100
本文介绍了Directory.Move->会话失去了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道之前已经问过这个问题,但是我读过的所有帖子中都有关于使用Directory.Move的
,然后应用程序重新启动我

没有找到答案,除了Sessions有缺陷或你应该

创建一个新文件夹然后将旧内容复制到其中然后删除

旧的... .pretty跛脚这么简单的IO动作。微软可以给出

如何解决这个问题的答案,还是这只是一个知道错误......这将在Whidbey :)中固定好



谢谢

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

推荐答案

嗨罗恩,


从你的描述来看,你在某些特定操作之后,您的Web应用程序中的回收和会话损失了很多。你提到了

Directory.Move和IO动作。

我不太确定你提到的IO动作的细节,你会不会/>
请提供一些进一步的描述吗?


另外,据我所知,以下操作将导致

ASP .NET workprocess或appdomain recycle会导致所有

会话丢失:

1.修改服务器计算机上的machine.config文件


2.修改应用程序的web.config文件


3.在ASP.NET Web应用程序的私有中做一些修改

bin文件夹(ASP.NET将对此文件夹中的任何更改进行模糊处理)


4.发生任何超出processModel某些

限制的内部错误。这是在machine.config'< processModel>中设置的。元素。


请检查一下IO动作是否导致任何

以上的事情。谢谢。


问候,


Steven Cheng

微软在线支持


安全! www.microsoft.com/security

(此帖子按原样提供,不作任何保证,并且不授予

权利。)


在ASP.NET上获取预览whidbey
< a rel =nofollowhref =http://msdn.microsoft.com/asp.net/whidbey/default.aspxtarget =_ blank> http://msdn.microsoft.com/asp.net/whidbey /default.aspx

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


很抱歉,但就是这样。

基本上我正在重命名目录


我有一个名为>的指令MyDirectory


MyDirectory(内容)
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)

注意:目录已重命名,但只有所有会话都丢失了。


注意:该目录与内部无关/ bin

目录

注意:该目录与web.config文件无关。


我是意识到修改上面的文件会导致应用程序重启。

简单...我正在重命名文件夹,它正在重启我的应用程序。


我已注意到有关此事的帖子没有解决方案。是ASPNET会话

如此错误,重命名文件夹将转储所有会话?

谢谢

Ron


Steven Cheng [MSFT]" <,V - ****** @ online.microsoft.com>写在消息

新闻:gL ************* @ cpmsftngxa06.phx.gbl ...嗨罗恩,

从您的描述在某些操作之后,您在Web应用程序中遇到了回收和会话丢失的问题。你提到了
Directory.Move和IO动作。
我不太确定你提到的IO动作的细节,请你提供一些进一步的描述它?

另外,据我所知,以下操作将导致ASP.NET工作进程或appdomain回收,这将导致所有的会话丢失:< 1.修改服务器机器上的machine.config文件

2.修改应用程序的web.config文件

3.做一些修改ASP.NET Web应用程序的私有
bin文件夹(ASP.NET将隐藏此文件夹中的任何更改)

4.发生任何超出processModel某些限制的内部错误。这是在machine.config'< processModel>中设置的。元素。

请检查一下IO动作是否导致上述任何事情。谢谢。

问候,

Steven Cheng
微软在线支持

获得安全! www.microsoft.com/security
(此帖已提供按原样,没有任何保证,也没有授予
权利。)

在ASP.NET上预览whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
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



你好Ron,


既然你提到某些目录路径与
$ b $无关bbin文件夹或webconfig,我想在我的

方面生成一些测试。您能否在您的Web应用程序的

目录结构中提供更多信息:

1.它是在IIS站点的根文件夹中还是只是一个子文件夹虚拟目录

在站点根文件夹下?


2.MyDirectory在哪里?你提到了什么,

" MyNewDirectory"(你想转移到)


另外,请你尝试创建一个新的web应用程序(通过一个简单的页面发送一个

)并尝试在其中执行相同的操作以查看

会话是否也在这样一个简单的Web应用程序中丢失了?


如果没有,我们应该对某个网络应用程序做进一步的研究。

谢谢。


问候,


Steven Cheng

Microsoft在线支持


安全! www.microsoft.com/security

(此帖子按原样提供,不作任何保证,并且不授予

权利。)


在ASP.NET上获取预览whidbey
< a rel =nofollowhref =http://msdn.microsoft.com/asp.net/whidbey/default.aspxtarget =_ blank> 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


这篇关于Directory.Move-&GT;会话失去了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆