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 ArticleSystem.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 ArticleDesign 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 ArticleSuddenly 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 ArticleServer 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 ArticleHow 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 ArticleWhy 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 ArticleAntiXssEncoder.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 ArticleVariable 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 Articlegetting input from microphone
pls i just wanted to ask how to how do i get input from microphone
View Articlemicrosoft.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 ArticleApplication 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 ArticleData 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 ArticleImpact 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 ArticleHijri 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 ArticleApp.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 ArticleCan 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 ArticleHow 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 ArticleInline get and set with CodeMemberProperty
Hi, The following code:CodeMemberProperty clrProperty = new CodeMemberProperty(); clrProperty.Attributes = MemberAttributes.Public | MemberAttributes.Final; clrProperty.Name = property.Key;...
View ArticleFaulting 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