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. 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
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
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
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
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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...
|
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...
|
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...
|
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...
| |
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,...
|
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,...
|
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...
|
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,...
|
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...
|
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...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |