473,490 Members | 2,486 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

A remote service problem

Hi.
This is the problem:
I need to construct an UI asp.net web application that will be able to start
and stop game servers on a dedicated game server.
I came up with an idea to make the server serve asp.net web form application
that will be able to just run game servers and stop those using
System.Diagnostics.Process class and it's methods.

Well, I tried it using C# win32 desktop application - it worked just fine.
But if I try to do it using asp.net web form, the process is started under
aspnet account and I can't see it's window. I just can confirm it is running
by using task manager.

Well. First: is the game server I ran that way available just byusing ip and
port like if it was ran manually using remote desktop?

If it is, that's ok, but if not.. is there any way I could force the asp.net
web app to run the game server under local logged-in account so it is
available normaly?

I've read something about impersonation, but it seems it does not do the
trick.
Thanks for all help.
Nov 18 '05 #1
5 954
There are couple of things you can do

1) If the webserver is running the only your web application, you can configure it to run under the User Account. You can modify the machine.config file to make ASP.NET work under your specified User Account rather than use its own User Account.
2) If you start the Game Server within ASPNET Process it will be available at the given IP and Port, unless the ASPNET windows account does not have the necessary permissions. You can check to see if the ASPNET account has the permissions your server needs in order to execute.

Regards,
Saurabh Nandu
Nov 18 '05 #2
Yep. It's ok now.

Well, now I have a problem. I would like to really run that apps under
loggedin account.

Where to change that? I didn't find the option in any of control panel\admin
tools tools.

Thanks.

"Saurabh Nandu" <Saurabh Na***@discussions.microsoft.com> wrote in message
news:85**********************************@microsof t.com...
There are couple of things you can do

1) If the webserver is running the only your web application, you can configure it to run under the User Account. You can modify the
machine.config file to make ASP.NET work under your specified User Account
rather than use its own User Account. 2) If you start the Game Server within ASPNET Process it will be available at the given IP and Port, unless the ASPNET windows account does not have
the necessary permissions. You can check to see if the ASPNET account has
the permissions your server needs in order to execute.
Regards,
Saurabh Nandu

Nov 18 '05 #3
Locate the machine.config file in the [ C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFI G ] directory and open it in notepad.

And search for the processModel node and change the userName attribute to the username of the account you want ASP.NET to work under. Once thats done reboot the machine to ensure the changes take effect correctly.

Please work on this file with caution, better back it up before making changes!

--
Regards,
Saurabh Nandu
Master C#, the easy way...
[ www.MasterCSharp.com ]

"crawlerxp" wrote:
Yep. It's ok now.

Well, now I have a problem. I would like to really run that apps under
loggedin account.

Where to change that? I didn't find the option in any of control panel\admin
tools tools.

Thanks.

"Saurabh Nandu" <Saurabh Na***@discussions.microsoft.com> wrote in message
news:85**********************************@microsof t.com...
There are couple of things you can do

1) If the webserver is running the only your web application, you can

configure it to run under the User Account. You can modify the
machine.config file to make ASP.NET work under your specified User Account
rather than use its own User Account.
2) If you start the Game Server within ASPNET Process it will be available

at the given IP and Port, unless the ASPNET windows account does not have
the necessary permissions. You can check to see if the ASPNET account has
the permissions your server needs in order to execute.

Regards,
Saurabh Nandu


Nov 18 '05 #4
Thank you very much. You've been of help!

:)
"Saurabh Nandu" <Sa**********@discussions.microsoft.com> wrote in message
news:CC**********************************@microsof t.com...
Locate the machine.config file in the [ C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFI G ] directory and open it
in notepad.
And search for the processModel node and change the userName attribute to the username of the account you want ASP.NET to work under. Once thats done
reboot the machine to ensure the changes take effect correctly.
Please work on this file with caution, better back it up before making changes!
--
Regards,
Saurabh Nandu
Master C#, the easy way...
[ www.MasterCSharp.com ]

"crawlerxp" wrote:
Yep. It's ok now.

Well, now I have a problem. I would like to really run that apps under
loggedin account.

Where to change that? I didn't find the option in any of control panel\admin tools tools.

Thanks.

"Saurabh Nandu" <Saurabh Na***@discussions.microsoft.com> wrote in message news:85**********************************@microsof t.com...
There are couple of things you can do

1) If the webserver is running the only your web application, you can

configure it to run under the User Account. You can modify the
machine.config file to make ASP.NET work under your specified User Account rather than use its own User Account.
2) If you start the Game Server within ASPNET Process it will be
available at the given IP and Port, unless the ASPNET windows account does not have the necessary permissions. You can check to see if the ASPNET account has the permissions your server needs in order to execute.

Regards,
Saurabh Nandu


Nov 18 '05 #5
You can use the identity element in the web.config file to set the identity under which asp.net runs. You simply set the userName and password attributes to an existing user and the process will run under that user. You also have to set impersonation to true.

If you are using Windows Server 2003, you have support to add this info into the registry instead of having it in plain text.

hope this helps,
John


"crawlerxp" wrote:
Hi.
This is the problem:
I need to construct an UI asp.net web application that will be able to start
and stop game servers on a dedicated game server.
I came up with an idea to make the server serve asp.net web form application
that will be able to just run game servers and stop those using
System.Diagnostics.Process class and it's methods.

Well, I tried it using C# win32 desktop application - it worked just fine.
But if I try to do it using asp.net web form, the process is started under
aspnet account and I can't see it's window. I just can confirm it is running
by using task manager.

Well. First: is the game server I ran that way available just byusing ip and
port like if it was ran manually using remote desktop?

If it is, that's ok, but if not.. is there any way I could force the asp.net
web app to run the game server under local logged-in account so it is
available normaly?

I've read something about impersonation, but it seems it does not do the
trick.
Thanks for all help.

Nov 18 '05 #6

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

Similar topics

15
2051
by: JJ | last post by:
A current requirement I am facing is the all business objects be stateless remote components hosted in IIS. I am partial to web services myself. However, it is insisted that IIS hosted remoting be...
5
5729
by: felecha | last post by:
I have a VB.Net application that runs as a Windows Service and monitors a MessageQueue on another machine. At times that machine will have to be rebooted, so I've been working on how to get my...
0
1688
by: Michael Höhne | last post by:
Hi, we're developing some web services and use the local development server of Visual Studio 2005 to create, run and debug the project. The web service methods connect to a database hosted on a...
3
2197
by: lk | last post by:
I need some help regarding the mechanism to put in place to be able to dynamically update a remote object when the assembly where it is defined is modified, and this whitout having service...
15
7043
by: =?Utf-8?B?TVNU?= | last post by:
To demonstrate my problem, I have a very simple VB Windows application. It has a text box that is used to display a counter, a button to reset the counter, and a timer that increments the counter...
0
7112
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
7146
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
7183
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...
0
5448
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
4573
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...
0
3084
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
3074
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1389
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
628
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.