Quantcast
Channel: .NET Framework Class Libraries forum
Browsing all 8156 articles
Browse latest View live

How to get the DomainSid or domain Sid ?

Hi,I would like to use this:SecurityIdentifier sidAdmin = new SecurityIdentifier(WellKnownSidType.AccountDomainAdminsSid, domainSid);But i don't know how to get the domainSid. I tried...

View Article


Number Representation

hi,I wanna to know the below number representation.0x005C00 5C000C00 5C005C00 0C202020 20202020 20202020 20202020 20202020 20202020 20

View Article


Eventlog.WriteEntry throws "Win32Exception / The parameter is incorrect"

//See if we need to truncate our buffer so we don't generate error while logging  private const int MAX_ENTRY_SIZE = 32766; if (buffer1.Length > MAX_ENTRY_SIZE) { string buffer2 =...

View Article

MessageQueue BeginReceive/EndReceive thread safety

Documentation for .net 3.5 states thatOnly the following methods are thread safe: BeginPeek,BeginReceive,EndPeek(IAsyncResult),EndReceive(IAsyncResult),GetAllMessages,Peek, andReceive.Documentation for...

View Article

Cannot find system.windows.point

I am using UIAutomation with the method System.Windows.Automation.AutomationElement.FromPoint(System.Windows.Point)to get the element by the mouse cursor, but I cannot find the type...

View Article


Updating BLOB Image from a MySQL DB in Visual Studio 2013

I have an Add Form where I can add records to my db with 3 fields (Last Name, First Name and a Picture). There is no error whatsoever but now I'm stuck on how to EDIT/UPDATE each record's IMAGE. I can...

View Article

Windows Update last week system.dll GetHostName() function problem

The problem comes up on top form , and then call that function best are GetHostName () function call , and then Windows Update last week . Is there a way around this ?Help.....................

View Article

Loading assemblies and dependencies in a new AppDomain

Hi all. I've been fighting this issue for a few days now. My original goal was to load an assembly dll in a new AppDomain so it can be unloaded, for a plugin system. I am able to load the dll in the...

View Article


Managed class to wrap unmanaged memory

I want to call a series of C++ methods, typically with the output of one C++ method being the input to the next.  For performance reasons, I do not want to marshal the data back and forth on every call...

View Article


cetificates expired

Dear all, We're using vb .net framework 2.0 and cryptography API (System.Security.Cryptography.X509Certificates) and recently we found that the cetificates will expire soon. If we haven't set any...

View Article

Regasm / Not a valid .NET assembly

I have a .NET 4.5 DLL that I need to run regasm on.   So I do this:1. Change directory to C:\Windows\Microsoft .NET\Framework64\v4.0.303192. Run regasm on full path of my custom dll in another...

View Article

some problem for referenceassemblies ,CodeDom and csharp compiler

hello anyone!i have some code following below AssemblyName _aname = new AssemblyName("__Temps"); _aname.Version = new Version("1.0.0.0"); AssemblyBuilder _asmbuilder =...

View Article

How to get the DomainSid or domain Sid ?

Hi,I would like to use this:SecurityIdentifier sidAdmin = new SecurityIdentifier(WellKnownSidType.AccountDomainAdminsSid, domainSid);But i don't know how to get the domainSid. I tried...

View Article


Why are FileSystemWatcher Attribute changes detected on Windows 7 but not...

I have some code that uses FileSystemWatcher to monitor file changes outside of my application. On Windows 7, using .NET 4, the below code would detect when a file had been edited and saved in an...

View Article

Number Representation

hi,I wanna to know the below number representation.0x005C00 5C000C00 5C005C00 0C202020 20202020 20202020 20202020 20202020 20202020 20

View Article


Discover Bluetooth LE Device and its custom service with uuid and its...

Hello Team,I have a requirement for developing a library in C# which can be used in any windows app (Metro or Non Metro) apps to discover Bluetooth LE devices which are advertising a custom service...

View Article

Eventlog.WriteEntry throws "Win32Exception / The parameter is incorrect"

//See if we need to truncate our buffer so we don't generate error while logging  private const int MAX_ENTRY_SIZE = 32766; if (buffer1.Length > MAX_ENTRY_SIZE) { string buffer2 =...

View Article


SignedXml - SHA256

Hi I've got SignedXml working with SHA1.  I've now got a SHA256 certifiate and I want to use SigedXml to generate the Digital Signature using SHA256.  I've tried quite a few ways of doing it.  However...

View Article

Generating 25 digit key

Hi Experts,As Per my requirement, I have to generate 25 digit alphanumeric unique key and this key should have 4 different information  hidden into it. One of 4 values is date. so I divided the key...

View Article

Information Exposure Through Sent Data error while veracode scanning

Hi, I am having an application asp.net 4.0 .Whenever run an application by veracode, am getting an issue "Information Exposure Through Sent Data " at the line of  Response.Write() , How It vl resole...

View Article
Browsing all 8156 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>