473,498 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# And Terminal Services

Using: .NET 1.1, Visual Studio 2003, C#, Microsoft Windows 2000
Server (SP4 and all latest windows updates), Terminal Server running
in application mode.
I have a C# application that I've deployed to our terminal server for
remote users to use. However, normal users (simple domain users) can
not run the application. After double clicking on the icon, an
hourglass appears as if its loading then it goes back to the normal
cursor. After investigating the issue, I saw that is causing an
exception that shows up in the server's event logs. Here is what I
get:

The application, , generated an application error The error occurred
on 05/1/2004 @ 17:41:59.990 The exception generated was c00000fd at
address 791B50C3 (Ordinal71)

Later in the detailed portion of the event, it shows that c00000fd is
a "Stack Overflow". I am not doing any recursive function calls or
anything like that. My application is multithreaded and accesses a
database. I even took out all the thread function calls and it still
would not work (gives same error).

The weird thing about this is if I give that user administrative
access, it'll work fine (over terminal services). Or, if I login with
a normal user's account from the console, it'll work fine. However, I
can not get it to work with a normal user over terminal services.
The application runs fine on Windows XP Professional as well. At this
point I don't believe it is a .NET or C# or an issue with my
application.
My question is, are there any options for me? Will Windows Server
2003 (or a 64-bit edition) fix my problem? Is there a way I can
expand the stack size (or other resources) for a terminal services
user? Is there a way I can compile my application differently that
uses less stack space?
Thanks, any and all help will be appreciated. I can be emailed
directly at tim .AT. outdoordecor.com
Nov 16 '05 #1
5 7554
As it looks like it's happening very early at start-up (even before a form
is shown?), I would try to remove large portions of the application until it
works on TS.

W2K3 and increasing stack space are no options IMO.

Willy.

"TPoise!" <tp****@yahoo.com> wrote in message
news:40**************************@posting.google.c om...
Using: .NET 1.1, Visual Studio 2003, C#, Microsoft Windows 2000
Server (SP4 and all latest windows updates), Terminal Server running
in application mode.
I have a C# application that I've deployed to our terminal server for
remote users to use. However, normal users (simple domain users) can
not run the application. After double clicking on the icon, an
hourglass appears as if its loading then it goes back to the normal
cursor. After investigating the issue, I saw that is causing an
exception that shows up in the server's event logs. Here is what I
get:

The application, , generated an application error The error occurred
on 05/1/2004 @ 17:41:59.990 The exception generated was c00000fd at
address 791B50C3 (Ordinal71)

Later in the detailed portion of the event, it shows that c00000fd is
a "Stack Overflow". I am not doing any recursive function calls or
anything like that. My application is multithreaded and accesses a
database. I even took out all the thread function calls and it still
would not work (gives same error).

The weird thing about this is if I give that user administrative
access, it'll work fine (over terminal services). Or, if I login with
a normal user's account from the console, it'll work fine. However, I
can not get it to work with a normal user over terminal services.
The application runs fine on Windows XP Professional as well. At this
point I don't believe it is a .NET or C# or an issue with my
application.
My question is, are there any options for me? Will Windows Server
2003 (or a 64-bit edition) fix my problem? Is there a way I can
expand the stack size (or other resources) for a terminal services
user? Is there a way I can compile my application differently that
uses less stack space?
Thanks, any and all help will be appreciated. I can be emailed
directly at tim .AT. outdoordecor.com

Nov 16 '05 #2
As it looks like it's happening very early at start-up (even before a form
is shown?), I would try to remove large portions of the application until it
works on TS.

W2K3 and increasing stack space are no options IMO.

Willy.

"TPoise!" <tp****@yahoo.com> wrote in message
news:40**************************@posting.google.c om...
Using: .NET 1.1, Visual Studio 2003, C#, Microsoft Windows 2000
Server (SP4 and all latest windows updates), Terminal Server running
in application mode.
I have a C# application that I've deployed to our terminal server for
remote users to use. However, normal users (simple domain users) can
not run the application. After double clicking on the icon, an
hourglass appears as if its loading then it goes back to the normal
cursor. After investigating the issue, I saw that is causing an
exception that shows up in the server's event logs. Here is what I
get:

The application, , generated an application error The error occurred
on 05/1/2004 @ 17:41:59.990 The exception generated was c00000fd at
address 791B50C3 (Ordinal71)

Later in the detailed portion of the event, it shows that c00000fd is
a "Stack Overflow". I am not doing any recursive function calls or
anything like that. My application is multithreaded and accesses a
database. I even took out all the thread function calls and it still
would not work (gives same error).

The weird thing about this is if I give that user administrative
access, it'll work fine (over terminal services). Or, if I login with
a normal user's account from the console, it'll work fine. However, I
can not get it to work with a normal user over terminal services.
The application runs fine on Windows XP Professional as well. At this
point I don't believe it is a .NET or C# or an issue with my
application.
My question is, are there any options for me? Will Windows Server
2003 (or a 64-bit edition) fix my problem? Is there a way I can
expand the stack size (or other resources) for a terminal services
user? Is there a way I can compile my application differently that
uses less stack space?
Thanks, any and all help will be appreciated. I can be emailed
directly at tim .AT. outdoordecor.com

Nov 16 '05 #3
N.K
Can you post more details..

Are you telling App will work fine for
1 - Termainal Service user on Terminal Service
2 - Normal users on Workstations

BUT NOT FOR
1 - Terminal users on Workstations..

Are you accessing any registry information? Suggest to post some code
in startup routine which you suspect to be cause of this error.
tp****@yahoo.com (TPoise!) wrote in message news:<40**************************@posting.google. com>...
Using: .NET 1.1, Visual Studio 2003, C#, Microsoft Windows 2000
Server (SP4 and all latest windows updates), Terminal Server running
in application mode.
I have a C# application that I've deployed to our terminal server for
remote users to use. However, normal users (simple domain users) can
not run the application. After double clicking on the icon, an
hourglass appears as if its loading then it goes back to the normal
cursor. After investigating the issue, I saw that is causing an
exception that shows up in the server's event logs. Here is what I
get:

The application, , generated an application error The error occurred
on 05/1/2004 @ 17:41:59.990 The exception generated was c00000fd at
address 791B50C3 (Ordinal71)

Later in the detailed portion of the event, it shows that c00000fd is
a "Stack Overflow". I am not doing any recursive function calls or
anything like that. My application is multithreaded and accesses a
database. I even took out all the thread function calls and it still
would not work (gives same error).

The weird thing about this is if I give that user administrative
access, it'll work fine (over terminal services). Or, if I login with
a normal user's account from the console, it'll work fine. However, I
can not get it to work with a normal user over terminal services.
The application runs fine on Windows XP Professional as well. At this
point I don't believe it is a .NET or C# or an issue with my
application.
My question is, are there any options for me? Will Windows Server
2003 (or a 64-bit edition) fix my problem? Is there a way I can
expand the stack size (or other resources) for a terminal services
user? Is there a way I can compile my application differently that
uses less stack space?
Thanks, any and all help will be appreciated. I can be emailed
directly at tim .AT. outdoordecor.com

Nov 16 '05 #4

Thanks for replying. I've removed the large portion of the startup code
(it ran threads that loaded info from SQL Server), and still get the
same error. And no, it does not access the registry or anything like
that. Right now, it should only display the form with the controls, and
it does no startup code.
To clarify further, it works in the following situations:

1) The user has admin privileges and uses terminal services
2) The user has normal privileges and is logged in from the physical
console.
3) The user has normal privileges and is logged in using another
workstation on the network (the workstation is WinXP Pro)

It does not work when:

1) The user has normal user privileges and uses terminal services.
I am using Microsoft's built-in RDP (Remote Desktop Protocol) Client
version 5.1 that is included with Windows XP Pro.

The only reason why I was exploring the Windows Server 2003 option was
because we can upgrade to it relatively cheaply.
Thanks guys,
--
Tim
ti*@spamsucksoutdoordecor.com (without the spamsucks)

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #5
Ti

We had a similar problem with a vb.net app - the application would not even start up - I wrote a new app which was just a form and that had the same problem

the server had not been rebooted since the clr was installed

Long story short - Rebooted the server and everything was fine

Dave
Nov 16 '05 #6

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

Similar topics

5
2289
by: Sara_S | last post by:
I am ready to move my ASP web site onto a remote host. The problem is that when I use Terminal Services to see the host machine, the error does not show up. (I was told that debugging info is only...
3
5549
by: Josh Schmidt | last post by:
How can one set the terminal services profile and home directory path in AD using VB.NET? I can set the usual profile paths, but terminal services properties are not supported with ADSI. Any...
0
2376
by: Jindrich Prchal | last post by:
Hi there. We are running DB2 v7.2 for Win NT on Windows 2000 SP3 machine with poor configuration AMD 1800+, 512MB RAM and usual IDE harddisk. During tests of migration our batch programmes...
12
5717
by: Paul H | last post by:
Say I have a Windows 2000 server running Terminal Services with a single file Access DB (not front end/back end) on it, could multiple users access the data base simultaneously? Paul
6
1326
by: trinitypete | last post by:
Hi All, Here is what I would like to do, any advice would be greatly appreciated. I have a forms authenticated web page that accepts user credentials, these credentials are then looked up in...
0
1205
by: Brian Young | last post by:
My department is responsible for creating custom internal applications for many of our departments. Our strategy has always been to develop our applications as ActiveX controls (VB6) that get...
8
2712
by: OHM | last post by:
Hi peoples, I dont know where to place this question, so as I know you guys are all resourceful experts, I thought I would try here. I am writing some code which will be run usingh remote...
6
4025
by: Atley | last post by:
I have a Terminal Services server running Windows 2000 Server. I need to be able to identify, in my application on that server, which client computer is addressing that server and running that...
3
1733
by: shawn | last post by:
In the past I have had SQL and Terminal server on the same PC. With SQL and Windows 2003 Terminal server, you can not have them on the same PC. How can I make this work with SQL and Terminal and...
0
7121
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,...
0
6993
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...
0
7162
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,...
0
7197
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6881
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...
0
5456
agi2029
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,...
0
3088
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...
0
1411
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
650
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.