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

DriveInfo.GetDrives().DriveType returns fixed drive for external USB drive

I have a need to detect external USB Drive and some reason drivetype return external USB Storage device (USB Harddrive) as fixed device (same as installed harddrive in the computer).Anyone has a way to...

View Article


Why are there so many unstarted managed threads (Thread state 1400) in the...

Hi, we have encountered a very strange problem, after a period of running, there are many unstarted threads exist in the thread store with no debugger id, and .net framework thread pool is full, for...

View Article


Problem with Uri.IsWellFormedUriString

Hello everyone,I have a problem with the method System.Uri.IsWellFormedUriString(string, UriKind) I use this method to validate a url, so I can open this url in a WebControl. But if I use a url that...

View Article

Use Regex.Replace to get the same value back

string output = Regex.Replace(input, pattern, replacement);I get replacement patterns from a database to transform inputs into an expected format.I need a replacement pattern that will return the same...

View Article

Image may be NSFW.
Clik here to view.

HttpConfiguration assembly reference error

We developed Asp.net MVC application using .net 4.5 in VS2012 then later We decided to recompile in .net 4.0 by changing Target framework in project properties. Now we are getting error like"Error 1036...

View Article


SecurityException is thrown

In our application we create for plugins Sandboxed AppDomains with limited access rights. After introducing this feature we started to catch SecurityException in main unrestricted AppDomain. Here is an...

View Article

Using TSQL TRANSACTION Statment from SqlCommand Class.

Dear Sirs.Could I use TSQL Transaction Statement from SqlCommand Class ?I have two database with same table structure and want to move rows from one table to another.Here is a SQL StatementBEGIN...

View Article

Webbrowser Component Browser to Chrome

hi,How can i change webbrowser to run on Chrome in wpf.

View Article


System.Printing.Printqueue consumes spooler memory when network printer...

Hi i am using System.Printing library in my application to carry out the printing process. I have come across one issue when i try to create the object of Printer which is installed on network, the...

View Article


Got "InvalidOperationException" when use...

Hi every one, This is may first time to post a question in MSDN forums here. a little bit nervous. ^^I got a "InvalidOperationException" when use System.IO.File.GetAccessControl(filePath) to access a...

View Article

System.Printing Printqueue.AddJob methods consumes memory and doesnt releases...

Hi All,I am Using System.Printing library in my application with .net framework 3.5. When i Print job on any printer using PrintQueue.AddJob memory gets increased and doesnt releases it. Memory is...

View Article

AsyncVoidMethodBuilder.AwaitOnCompleted - how this is invoked when...

HILet's say we have a custom awaitable and awaiter implemented. If I set IsCompleted property of awaiter to false and then never set it to true, then too OnCompleted method of awaiter is called. How...

View Article

I am facing an issue in Clcik Once deployment of applications (WPF...

 I am getting a weird error while trying to  publish click once application. The set up is generated but  when i launch the set up it says,Application cannot be started contact the application vendor.i...

View Article


The requested address is not valid in its context- Socket Error - 10049

I'm trying to control the network interface used for a web service call by setting the local endpoint. The error I'm getting indicates that the local IP Address that isn't recognised by the machine....

View Article

ReportViewer

I have reportviewer that need to be translated at runtime.Is it possible? How?Thank you

View Article


KB2656351 - JavaScriptSerializer - Deserialize Error: Operation is not valid...

After the security update KB2656351 http://support.microsoft.com/kb/2656351We are running into an issue with JavaScriptSerializer while deserializing a json string which has more than 1000 members.Even...

View Article

Read a specific configuration file in ASP.Net Application

I have a .net class library that makes a connection to a SQL server database and performs CRUD operations.The library is called by a windows forms project as well as a WCF service project.For the...

View Article


PerformanceCounterCategory.ReadCategory gets stuck or takes a long time on...

I've got a block of code that's been working for years that is now giving problems, but only on one particular laptop computer.The problem is that...

View Article

In Live Server (Windows server 2008 R2 enterprise) PDF Is Not Generating with...

We are using wkhtmltopdf.exe (up to 10 months it had been worked with no issues) but from few days we are facing issue with wkhtmltopdf.exe. For now we are getting error from wkhtmltopdf.exe and PDF is...

View Article

Transpose function

I'm sure i have done this before but cannot remember the function I usedi want to transpose a number from one range to another. for example if I have one range 0-100 and another range 100-0 (same range...

View Article
Browsing all 8156 articles
Browse latest View live


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