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

How the "void" keyword works

Hi all,I try to have a deeper understanding of the .net framework but I'm stuck on the 1st issue on my list - how void works.This is the System.Void structure as found on the void.cs file...

View Article


System.Net.WebRequest Internet Explorer settings

Looking for information about updates to System.Net.WebRequest protocols and settings within the .Net framework. We have a DLL originally written in VB6 which used the MSINET control. I am using the...

View Article


Design Custom Excel Class Library Best Practices

I am designing a class library based on Excel.Interop that has some methods to check some document property values.I have to package my class library code as a reusable asset in a class library that...

View Article

Suddenly HttpWebRequest times out

I have been using System.Net.HttpWebRequest (in PowerShell scripts) without trouble with jobs running daily for almost a decade.  Suddenly yesterday, majority of the requests timed out.  The...

View Article

Server Name Invocation with TLS

Hi I have a .Net client programm running on Windows Server 2008. The programm communicates with a third party server using TLS. The owner of the server gives us a new requirement that the client has...

View Article


How do I get the font-size of a HtmlElement in one WebBrowswer control?

I am using the following code to get some HtmlElements and I need to know which has got the biggest text. Do you have any idea about this? wb.Document.Body.GetElementsByTagName("p");I would like to get...

View Article

Why is Entity Framework so slow with join statements?

I have an EF 6 query that has about 6 linq join statements in it.  When I step through my code with the debugger, I can see that the query statement takes roughly 6 seconds to run. With a SQL trace, I...

View Article

AntiXssEncoder.MarkAsSafe() doesnt recognize "–" and replace it with –...

Need help to pass right code charts to AntiXssEncoder.MarkAsSafe() so that below input would be persisted without replace that character with hex value. Hyphen  "–" seems to fall under Basic Latin code...

View Article


Variable padding for String.Format()

Hi,the question have been asked before but none of my tests works and I don't know why.string name1 = "TEST"; string name2 = "Description"; maxLength = 10; string format = "{0:" + maxLength + "} =...

View Article


getting input from microphone

pls i just wanted to ask how to how do i get input from microphone

View Article

microsoft.ACE.OLEDB 12.0 provider is not register on local machine

In visual studio , i am unable to make the connection with excel file with the extention .xlsx though i have installed  "AccessDatabaseEngine"  whenever i run the program it only...

View Article

Application is Crashing

Hi,I have a simple Application using simple controls. I have deployed the application with all the libraries listed in the References but the application is crashing when I run it.here is the log from...

View Article

Data Driven Unit Tests for Azure Cloud Service Web API methods

Hi,I created an Azure Cloud Service project and selected "unit tests" as part of the options. It created me a default ValuesControllerwhich has a Get method that accepts a integer parameter. It also...

View Article


Impact when - awaiting the async method which does not have any await calls

I have a following async method which does not have any await calls.    public async Task<bool> AddCust(Customer cust)        {// doing some synchronous operationsreturn true;                   }...

View Article

Hijri Calendar Class

Dear all,I am working with hijri calendar.1. does this calendar class updated Automatically based on new moon seen,?    because now ramadan 29 days and it returns first , last date of shawwal correct2....

View Article


App.Config Deployment for WinForm Application

Hi,I have a C# WinForm application. I have added an App.Config file in my project.Do I need to deploy the App.Config with my application or it will be complied with the EXE file?Thanks,Jassim

View Article

Can not back up sql localdb at run time

Hello everyone,This is my first time using sql localdb. I do not know am I doing right or not. This is what I did.1. I install SqlLocalDB.msi(downloaded from Microsoft).2. Add a new project(Windows...

View Article


How to develop propagating mechanism like exception?

Hi,I like the way of exception propagation. I want to develop same behaviour without compromising  performance by logging exception details. Please suggest me the implementation. Thanks,Pallam Madhukar...

View Article

Inline get and set with CodeMemberProperty

Hi, The following code:CodeMemberProperty clrProperty = new CodeMemberProperty(); clrProperty.Attributes = MemberAttributes.Public | MemberAttributes.Final; clrProperty.Name = property.Key;...

View Article

Faulting module name: clr.dll" error message when you run a Microsoft .NET...

while i am running my .NET Framework 4 application, sometimes i got this errorEvent 2Log Name: Application Source: Application Error Event ID: 1000 Task Category: (100) Level: Error Keywords: Classic...

View Article
Browsing all 8156 articles
Browse latest View live


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