473,549 Members | 2,733 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Casini, IIS run code differently

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?
Mar 23 '06 #1
13 1558
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******** ******@TK2MSFTN GP14.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?

Mar 23 '06 #2
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******** ******@tk2msftn gp13.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******** ******@TK2MSFTN GP14.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?


Mar 23 '06 #3
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
Mar 23 '06 #4
re:
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.
Aargh!

The purpose, when you debug, is to identify problems.

If you debug the application under IIS,
you will identify what's causing the problems you say you have.

Isn't that what you want to do ? [ identify the problem(s)... ]

re: I can't be the first and only person to notice a difference between the two environments.
No, but you may very well be the first one to refuse to debug an application
which apparently is having problems running uder IIS.

You can't pin down execution problems via osmosis.


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:Oo******** ******@TK2MSFTN GP12.phx.gbl... 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******** ******@tk2msftn gp13.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******** ******@TK2MSFTN GP14.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?



Mar 23 '06 #5
As suggested, debug under IIS. Put the project into IIS and then open it from
VS 2005 - Open Website > From Local IIS > and then debug.

--
blog: www.thinkingMS.com/pandurang
"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.

"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:eW******** ******@tk2msftn gp13.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******** ******@TK2MSFTN GP14.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?



Mar 23 '06 #6
On Wed, 22 Mar 2006 23:10:17 -0800, 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.


Ahh.. the classic denial.

I remember when people would come into the Visual C++ newsgroups after VC6
was released and complain that VC6 was broken because they recompiled their
apps with VC6 and their code broke. They swore up and down there was
nothing wrong with their code, because it worked fine on VC5.

After (finally) getting them to look a their code, 9 out of 10 times, they
would sheepishly admit they found the problem, and it was their code, it
just happened to work under VC5 and VC6 changed something that brought the
bug to light.

The purpose of that story was to point out to you that just because
something works in one environment, doesn't mean there's nothing wrong with
your code.
Mar 23 '06 #7
Attach to the w3wp.exe process and run the copy on IIS, you will be able to
step through in the same way.
"Chip" <ch**@intradata .com> wrote in message
news:Oo******** ******@TK2MSFTN GP12.phx.gbl...
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******** ******@tk2msftn gp13.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******** ******@TK2MSFTN GP14.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?



Mar 23 '06 #8
Casini is not the same enviroment as iis, nor if you use iis on winxp is the
same enviroment if you deploy to win2003 server (iis 6.0). it would be nice
if there was little no difference between enviroments, but its not likely to
become perfect.

you code is crashing, it probably your bug (you are counting too much on
enviroment setup). you need to test in all enviroments.

-- bruce (sqlwork.com)

"Chip" <ch**@intradata .com> wrote in message
news:us******** ******@TK2MSFTN GP14.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?

Mar 23 '06 #9
re:
Cassini is not the same enviroment as iis
your code is crashing, it's probably your bug (you are counting too much on enviroment setup). you
need to test in all enviroments.
He doesn't want to "test in all environments", Bruce.

I was the first to tell him that he needs to do that.

You're now the 4th poster who tells him that
he needs to debug under IIS ( the correct answer ).

His reply to me was that I need to "really need to get down from that ivory tower".
There's no worse blind man than one who doesn't want to see.

<shrug>

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/
=============== =============== =====
"Bruce Barker" <br************ ******@safeco.c om> wrote in message
news:eE******** ******@TK2MSFTN GP11.phx.gbl... Casini is not the same enviroment as iis, nor if you use iis on winxp is the same enviroment if
you deploy to win2003 server (iis 6.0). it would be nice if there was little no difference between
enviroments, but its not likely to become perfect.

you code is crashing, it probably your bug (you are counting too much on enviroment setup). you
need to test in all enviroments.

-- bruce (sqlwork.com)

"Chip" <ch**@intradata .com> wrote in message news:us******** ******@TK2MSFTN GP14.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?


Mar 23 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

242
13187
by: James Cameron | last post by:
Hi I'm developing a program and the client is worried about future reuse of the code. Say 5, 10, 15 years down the road. This will be a major factor in selecting the development language. Any comments on past experience, research articles, comments on the matter would be much appreciated. I suspect something like C would be the best based on...
5
8701
by: silviu | last post by:
Hi All, I have to write C++ code (server code) that will compile/run on both Windwos and Linux OS's. Could someone give me some pointers to info on this matter. Thanks in advance for your help. Silviu
6
1980
by: christian9997 | last post by:
Hi I would be very helpful if someone could help me with this code. It works fine in IE but when I display it in Netscape or Firefox and I move the mouse from one menu to the other the gap between the two menus gets bigger. What is the cause of this? Thanks CODE:
6
4439
by: Arthur | last post by:
I had two Visual Studio .NET C++ solutions that I combined into one. These project solutions were very similar. In fact, the two solutions were sharing many files. Now that they are one solution, I #ifdef'd pre-processor variables throughout the code that will compile the code differently. The solution needs to be #define'd differently...
16
1421
by: Joe Fallon | last post by:
I have a C# class that works correctly. I translated it to VB and now it runs differently. The C# class evaluates the Public properties and then executes MyBase.New. So default values are set first and then MyBase.New reads in new values (if they exist.) The VB code does it in reverse. It excutes MyBase.New and then overwrites the new...
88
7996
by: Peter Olcott | last post by:
Cab you write code directly in the Common Intermediate language? I need to optimize a critical real-time function.
2
1467
by: Chip | last post by:
I've got a website developed in VS2005 that works fine on my local dev machine using the casini server, but when I publish it to the web, which is using IIS (ASP.NET 2.0) it is flipping out. It's a multi threaded app and it is doing really unpredictable things and eventually crashing IIS. I cannot figure out how to switch my dev environment...
25
3088
by: Jon Slaughter | last post by:
I have some code that loads up some php/html files and does a few things to them and ultimately returns an html file with some php code in it. I then pass that file onto the user by using echo. Of course then the file doesn't get seen by the user. Is there any command that essentially executes the code and then echo's it? something that...
0
7524
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7720
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7475
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7812
tracyyun
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5372
isladogs
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5089
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3501
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3483
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1061
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.