473,396 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

different values by changing server

Hello,

I have a C# Application that runs on a IIS6. On the first machine I get
with the command:

Request.ServerVariables["AUTH_USER"]

the authorized user like MillerSte.

Now I put the hole application to another machine with the same System
(Windows 2003 Server) and also IIS. On the new machine I now get the
result: mydomain\MillerSte . For some reason the web server put the
domain name in this variable.

Can someone tell me where I can change this setting, so that the domain
name will not by shown in this variable like on the first machine?

Thanks for all answers.
Mar 17 '08 #1
1 1019
Is not it much easier to take care of domain name in the code? Something
like this (not checked):

string ss = Request.ServerVariables["AUTH_USER"];
string noDomainName = ss.Replace (ss.Substring(0, ss.LastIndexOf("\\") +1),
String.Empty);
--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Thomas Weiler" <T.******@web.dewrote in message
news:47**********************@newsspool3.arcor-online.net...
Hello,

I have a C# Application that runs on a IIS6. On the first machine I get
with the command:

Request.ServerVariables["AUTH_USER"]

the authorized user like MillerSte.

Now I put the hole application to another machine with the same System
(Windows 2003 Server) and also IIS. On the new machine I now get the
result: mydomain\MillerSte . For some reason the web server put the domain
name in this variable.

Can someone tell me where I can change this setting, so that the domain
name will not by shown in this variable like on the first machine?

Thanks for all answers.

Mar 17 '08 #2

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

Similar topics

7
by: Dave Smithz | last post by:
Hi There, I have taken over someone else's PHP code and am quite new to PHP. I made some changes and have implemented them to a live environment fine so far. However, I now want to setup a...
5
by: martin | last post by:
I needed a way to display calculated, multiple, changing values (numerical sums) as users interacted with the page, and do this without going back to the server to load the page again. What I...
3
by: Itai | last post by:
I have an aspx file named index.aspx which contains two ‘form' sections, one that has the runat=server attribute (e.g From1) and one which is a regular HTML form (e.g SignInForm). I am trying...
20
by: xixi | last post by:
hi, we use db2 udb v8.1 on windows, i am trying to use federated database objects to create wrapper, even though i have update dbm cfg using federated yes, i still get error "the instance for the...
3
by: Jeremy Ames | last post by:
I have a form that contains two hidden values, among other controls. I was wondering, if I change these values in server script and immediately do a server.transfer, do these values get updated...
1
by: googlegroups | last post by:
We have an application that is run in many timezones and uses remoting to access the DB. I have one screen that will only save if the user is in the same timezone as the server. I can reproduce...
2
by: ibcarolek | last post by:
We have a field which is decimal (9,2) and another which is decimal (9,3). Is there anyway to subtract the two and get a precision 3 value without changing the first field to 9,3? For instance,...
2
by: dsdevonsomer | last post by:
Hello, I have one simple query joining two tables with left outer join on 3 fields and using MIN on two fields. These two tables have lot of data about 3 mil in total. I am trying to migrate db...
2
by: sepe | last post by:
Hello, I've a problem with SQL Server and OLE DB. SQL Server handles NULL as NULL whereas empty string is stored as a space. This is correct when using OLE DB but with ODBC an empty string gets...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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
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...
0
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,...

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.