473,848 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Guid

Hi all,

I'm just wondering if there is a way of obtain the guid from the clientside
in C#. Or this is just an impossible thing to do without Active Directory as
the guids are unique? I've tried looking for it everywhere but I cant find
any source on this.

Thanks in advance

Alex


Nov 15 '05 #1
3 11130
If you are just trying to create a new guid, check out
Guid.NewGuid Method

http://msdn.microsoft.com/library/de...wguidtopic.asp

Cheers

_aaron

"news.microsoft .com" <at***@learning fast.com> wrote in message
news:OY******** ******@tk2msftn gp13.phx.gbl...
Hi all,

I'm just wondering if there is a way of obtain the guid from the clientside in C#. Or this is just an impossible thing to do without Active Directory as the guids are unique? I've tried looking for it everywhere but I cant find
any source on this.

Thanks in advance

Alex

Nov 15 '05 #2
Hi Aaron,

Thanks for the reply.
I'm not trying to create a new guid, i want to find the guid value from the
clients computer and use this as their username.

Thanks in advance

Alex

"aaron" <aa***@raging.c om> wrote in message
news:uv******** ******@tk2msftn gp13.phx.gbl...
If you are just trying to create a new guid, check out
Guid.NewGuid Method

http://msdn.microsoft.com/library/de...wguidtopic.asp
Cheers

_aaron

"news.microsoft .com" <at***@learning fast.com> wrote in message
news:OY******** ******@tk2msftn gp13.phx.gbl...
Hi all,

I'm just wondering if there is a way of obtain the guid from the clientside
in C#. Or this is just an impossible thing to do without Active Directory as
the guids are unique? I've tried looking for it everywhere but I cant

find any source on this.

Thanks in advance

Alex


Nov 15 '05 #3
you should use the user's username in which case, rather than an identifier
from the PC (presumably you mean the mac address?) they might happen to be
sitting at at the time. so saying it is possible to get the mac address by
adding a reference to System.Manageme nt and use a ManagementObjec tSearcher
to retrieve it...

r.
"Alex Ting" <at***@learning fast.com> wrote in message
news:eC******** ******@TK2MSFTN GP10.phx.gbl...
Hi Aaron,

Thanks for the reply.
I'm not trying to create a new guid, i want to find the guid value from the clients computer and use this as their username.

Thanks in advance

Alex

Nov 15 '05 #4

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

Similar topics

4
15658
by: Louis Frolio | last post by:
Greetings All, I have read many upon many articles here regarding GUID data types and uniqueness. There have been many opinions regarding the effectiveness of GUID's and when they should/should not be used. However, every article strongly implies, if it does not state it outright, that GUID's are always unique. My question is this, what happens if you have a database that uses GUID's and the NIC is changed out on the box? From what I...
9
34861
by: Rene | last post by:
I am using the Guid.Empty value ("00000000-0000-0000-0000-000000000000") to represent a special meaning. The problem is that I don't know if there is a chance that a command like "Guid.NewGuid()"would generate a Guid.Empty value could this be possible or is the "00000000-0000-0000-0000-000000000000" Guid reserved or something like that? Thank you.
5
6347
by: rcolby | last post by:
Evening, Wondering if someone can point me in the right direction, on how I would compare a system.guid with a system.byte. system.guid (pulled from sql server table with a data type of uniqueidentifier, originally taken from objectGUID from active directory domain)
5
6506
by: Michael Primeaux | last post by:
I have a simple .NET 2.0 web service created with VS.NET 2005 with a single web method with the following signature: void HelloWorld(Guid parameter1); When calling this method I receive the following error: System.IndexOutOfRangeException: Index was outside the bounds of the array. at System.Web.Services.Protocols.HttpServerType..ctor(Type type) at System.Web.Services.Protocols.HttpServerProtocol.Initialize()
2
16242
by: Troll | last post by:
Windows XP Pro VS 2005 & C# (I'm fairly new to C# but have doing VB.Net going on 2yrs and VB6 for 5yrs.) I'm using C# to build a custom RSS generator. I'm having trouble building the guid element for each item node in my feed. Some items do not have the "link" node because the description element is the content. So using the "link" as the guid will not work in my case, as some sites suggest and as feedvalidator.org complains when I do not...
0
9738
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11001
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9500
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7894
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7069
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5735
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5919
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4137
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3175
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.