Casini,IIS以不同的方式运行代码 [英] Casini, IIS run code differently

查看:73
本文介绍了Casini,IIS以不同的方式运行代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个双线程应用程序,就像它应该在Casini下运行一样。

然而,当我运行完全相同的代码更加虚空的IIS(ASP.NET 2.0)相同的

机器,它完全不可预测并且崩溃了服务器。有人会认为

我的线程是问题,但就像我说的那样,在Casini下完美运行。


有什么想法吗?

解决方案

您是否尝试在IIS下调试应用程序?


发布一些在IIS中失败的代码。

这是我们可以帮助你的唯一方式。


Juan T. Llibre,asp.net MVP

aspnetfaq.com : http://www.aspnetfaq.com/

asp.net faq: http://asp.net.do/faq/

foros de asp.net,en espa?ol: http: //asp.net.do/foros/

============================ =======

" Chip" < CH ** @ intradata.com>在消息新闻中写道:我们************** @ TK2MSFTNGP14.phx.gbl ...

我有一个双线程应用程序,就像它一样运行应该在卡西尼之下。但是,当我在同一台机器上运行完全相同的代码并且IIS(ASP.NET 2.0)完全相同时,它完全不可预测并且会使服务器崩溃。有人会认为我的线程是问题所在,但就像我说的那样,在Casini下完全运行。

任何想法?



调试似乎有点无用,因为正如我所说,它在Casini下完美地运行了
。问题不在于我的代码,而在IIS和Casini之间存在

差异。看来IIS中存在一个错误。我不能

成为第一个也是唯一一个注意到两个

环境之间差异的人。


" Juan T. Llibre <无*********** @ nowhere.com>在消息中写道

news:eW ************** @ tk2msftngp13.phx.gbl ...

你试过调试吗IIS下的应用程序?

发布一些在IIS中失败的代码。
这是我们可能帮助你的唯一方法。


Juan T. Llibre,asp.net MVP
aspnetfaq.com: http: //www.aspnetfaq.com/
asp.net常见问题: http://asp.net.do/faq/
foros de asp.net,en espa?ol: http://asp.net.do/foros/
==================== ===============
芯片 < CH ** @ intradata.com>在消息中写道
新闻:我们************** @ TK2MSFTNGP14.phx.gbl ...

我有一个运行双线程的应用程序就像它应该在卡西尼一样。但是,当我在同一台机器上运行完全相同的代码并且IIS(ASP.NET 2.0)完全相同时,它完全不可预测并且崩溃服务器。
有人会认为我的线程是问题,但是像我说,在卡西尼完全运行


任何想法?




不想看起来像一个聪明的屁股,但在IIS上的调试仍然建议

,因为它会让你深入了解你的代码片段

将是由IIS处理的不同,所以它可能会给你一个

可能的解决方法的提示。


Chip写道:

调试似乎有点无用,因为正如我所说,它完全在Casini下运行。问题不是我的代码,而是IIS和Casini之间的区别。看来IIS中存在一个错误。我不能成为第一个也是唯一一个注意到两个环境之间差异的人。



-

Ward Bekker

Asp.Net专业开发人员讨论
http://www.dotnettaxi.com


免费.Net 2.0 C#往返VB.Net代码转换器
http://www.dotnettaxi.com/Tools/Converter.aspx


I have a dual-threaded app that runs just as it''s supposed to under Casini.
However, when I run the exact same code undier IIS (ASP.NET 2.0) on the same
machine, it is totally unpredictable and crashes the server. One would think
my threading was the problem, but like I said, runs perfectly under Casini.

Any ideas?

解决方案

Have you tried debugging the app under IIS ?

Post some of the code that''s failing in IIS.
That''s the only way we could possibly help you.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espa?ol : http://asp.net.do/foros/
===================================
"Chip" <ch**@intradata.com> wrote in message news:us**************@TK2MSFTNGP14.phx.gbl...

I have a dual-threaded app that runs just as it''s supposed to under Casini. However, when I run the
exact same code undier IIS (ASP.NET 2.0) on the same machine, it is totally unpredictable and
crashes the server. One would think my threading was the problem, but like I said, runs perfectly
under Casini.

Any ideas?



Debugging would seem to be a little useless since, as I said, it runs
perfectly under Casini. The problem is not with my code, but with the
difference between IIS and Casini. It appears there is a bug in IIS. I can''t
be the first and only person to notice a difference between the two
environments.

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:eW**************@tk2msftngp13.phx.gbl...

Have you tried debugging the app under IIS ?

Post some of the code that''s failing in IIS.
That''s the only way we could possibly help you.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espa?ol : http://asp.net.do/foros/
===================================
"Chip" <ch**@intradata.com> wrote in message
news:us**************@TK2MSFTNGP14.phx.gbl...

I have a dual-threaded app that runs just as it''s supposed to under
Casini. However, when I run the exact same code undier IIS (ASP.NET 2.0)
on the same machine, it is totally unpredictable and crashes the server.
One would think my threading was the problem, but like I said, runs
perfectly under Casini.

Any ideas?




Don''t want to look like a smart-ass, but debugging on IIS is still
recommended as it will give you insight into what piece of your code
will be dealt with differently by IIS, so it might give you a hint for a
possible workaround.

Chip wrote:

Debugging would seem to be a little useless since, as I said, it runs
perfectly under Casini. The problem is not with my code, but with the
difference between IIS and Casini. It appears there is a bug in IIS. I can''t
be the first and only person to notice a difference between the two
environments.


--
Ward Bekker
"Asp.Net Discussions for the Professional Developer"
http://www.dotnettaxi.com

"Free .Net 2.0 C# to/from VB.Net Code Converter"
http://www.dotnettaxi.com/Tools/Converter.aspx


这篇关于Casini,IIS以不同的方式运行代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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