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

Lifetime of types used in generics instantiated using Type.MakeGenericType

Suppose I have a class A<T> {} in my main program, and B is a type that I define at runtime inside a collectible assembly.Initially, my program obtains the following references:1) System.Type of...

View Article


Right click on PropertyGrid Lable/name

I am not sure if I might be looking for this the wrong way but I can't find and answer to this somewhat simple question. Is it possible to detect a right mouse click (or any other click for that...

View Article


System.DirectoryServices msExchRecipientTypeDetails getting its value.

Hello,I am trying to get the value for msExchRecipientTypeDetails from my local active directory. I am using the following C# code. However instead of returning the integer value of the...

View Article

FM20.DLL not registering (Error Code 0x80040151)

Hello,I apologize if I'm posting this in the wrong forum. If this is the case I'd appreciate it if someone could suggest a better place to ask this question.I'm trying to register a FM20.DLL file on a...

View Article

Error in Decryption --> Invalid padding and Data size is not block size multiple

Hi All, Could you please help me on this error anybody its very urgnet issue in production. i have an issue while doing the decription with ingrainkey value got below 2 errors. 1. Error in Decryption...

View Article


ZipArchive Corrupts Signed OOXML Files

Hi,If i pass a path to a signed ooxml (office 2007 and up) file, after running the code below - office shows that the file is corrupt. using (FileStream stream = File.Open(filePath, FileMode.Open,...

View Article

Visual Studio

Hello everybody who have in this forum!Now i have problem with Visual Studio installation. It's alert message error " Error .Net Framework 4, 4.5". who can help me?

View Article

Can I do this with a Regular Expression?

I am using  System.Text.RegularExpressions.  I'm looking for a regular expression that will match the end of a document. These documents end with a string on its own line that looks like:PAGE 1 of...

View Article


creating a Runspace with administrative privileges

I'm currently trying to use the Runspace class to run a powershell command in vb.net. The command NEEDS to be run with administrative privileges I want to use a pipeline to run the command, so i have a...

View Article


HttpWebRequest/Resposne Callback Function never hit

I am trying to select json and a url from the database to make asycnh http posts.  However, the callback method (PostCallback) never gets hits.  When I step through the code in Visual Studio it does...

View Article

REGISTRATION KEY

How to get the registration key for visual c# 2010?..I am a windows 7 user..

View Article

SSL and NTLM with Web Service (asmx) proxy - only first Invoke works

Hi,After installing SSL and switching the Web Service proxy Url to https, it seems like only the first web method invocation works. Consecutive requests end with 401 without the client resubmitting the...

View Article

Launching Store App from .Net

Hi, I have a WPF desktop application, I'm trying to launch windows store app from .Net/Wpf application.  I've tried following code: [ComImport] [Guid("45BA127D-10A8-46EA-8AB7-56EA9078943C")] public...

View Article


To create Excel file without installing MS Office

Hi Friends,I am using web application. Microsoft Excel is not installed in my webserver machine. but my application needs to create the Excel file with specific format and stored in my local PC. We are...

View Article

Privileges issues in Windows Service..

Hi,I've developed a Windows Service in VB.Net to check the running instances of Internet Explorer, I'm successfully tracking the instances which are running under admin privileges but I'm unable to...

View Article


how to divide string array

Hello, I have a problem to operate two numbers two much big, I have two numbers in two string arrays but I have to think the worse case, if the numbers are two much big I have to Split them before...

View Article

Active Directory query to get UserPrincipal fails with "An operations error...

I have a set up of two domains A and B where there is a one-way trust from B to A (B can essentially query A's active directory). But when I'm trying to query A's to retrieve a user's email address...

View Article


Thread in a threadpool not being executed on time

My Windows Service is written in VB.NET Visual Studio 2010 (.NET framework 4). The service is using a threadpool like below: ThreadPool.QueueUserWorkItem(New WaitCallback(AddressOf clsA.ProcessIt))In...

View Article

WIA 2.0 Duplex Scanning

Hi,I have a developed an application that uses the WIA 2.0 library to transfer images from a number of scanners.The application is developed for Windows 8.1, 7 & xp. I understand xp doesn't have...

View Article

Assembly

What is the importance of asssembly in create to setup file...

View Article
Browsing all 8156 articles
Browse latest View live