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

add multiple passengers

Hi, I have a form for the user to enter how many passengers to add.  I would like to enter txtFirstName, txtLastName, cbodateOfBrith and txtPassportNumber for the x number of passengers entered in the...

View Article


how to set the identity of WCF application ?

Hello,I want the wcf to run as the ID of the app pool (userx). But when I debug wcf ,  the thread.currentprincipal. idently.name shows as my own  domain account. Why?The Wcf Application is hosted by...

View Article


How to pass claims within a “Request” object to OpenID Connect Provider using...

We have our own OpenID Connect Provider. Also we have our own SDK for Relying Party, which creates requests and then parses result. And now we want to make work our Provider with Owin/Katana clients....

View Article

Maximum number of if statement within a method

HiMay I know any limit of if statement within a method? for example as below..if (a==1) {return 1;} if (a==2) {return 2;} if (a==3) {return 3;} if (a==4) {return 4;} if (a==5) {return 5;} if (a==6)...

View Article

Window_Application_Issue

Hie I am Kush from New Delhi.  I have a made on project on VS 2012 and Sql Server 2008 as Local server. Now i want to install this exe in my friend PC.  Though exe is running pretty fine in my Laptop...

View Article


distinguish unstarted and completed threads viaThread.IsAlive

When a thread is newly created it looks like this IsAlive = falsewhile it's running, obviously it looks like thisIsAlive = trueand when its finishedIsAlive = false Now, assuming I have a plain list of...

View Article

Passing a System.Array to a VB6 ActiveX EXE from C#

I have a C# app written in VS2005 using Net Framework 2.0. I call a function in a VB6 ActiveX EXE and pass a System.Array by ref. I recently upgraded the app to VS2010 but still using Net Framework...

View Article

System.Net.HttpWebRequest The operation has timed-out on the 3rd GetResponse()

Hello experts,I'm running the following example and in the first two attempts it all works fine, then on the 3rd attempt to GetResponse() I get an exception: " The operation has timed-out", then again...

View Article


Is there a Visual Studio Express 2013 for Web and Windows? Why, or, why not?

Greetings,I'm just starting to learn about .net/.NET. I've been directed to download Microsoft Visual Studio Express 2008. I thought I should start with the latest and greatest, so I thought I should...

View Article


Image may be NSFW.
Clik here to view.

After boot: Microsoft Visual C++ Runtime Library This application has...

Hello,when I boot my PC, on some days several minutes after the boot I get this error, even when I do nothing!I there a way to detect which application is involved in this error? Or which runtime...

View Article

IEnlistmentNotification ForceRollback in Prepare throws exception instead of...

Hello,I'm trying to implement IEnlistmentNotification interface and I have read through the documentation on msdn, but I have a problem with something. When I call scope.Complete() Prepare method is...

View Article

While building get error: "The operation could not be completed. The process...

If I change one character of code in any sub and rebuild in Debug mode I get this error and have shut down MVS and restart then it will run.  I am sure this is something simple that I have set wrong...

View Article

Generic Data Access Layer

Hello EveryoneCan anyone guide in the direction on creating a Generic data access layer e.g basic CRUD operations on any db type e.g Sql Server, Orcale, MySql, Mongo, ODBC and calling procedures?Thanks

View Article


How To Make An Back-Ground Process that restarts a program when it is closed...

So basically i want to make an program that plays music on start up to troll the user ; and when they close whatever plays the music the process restarts it and plays music again.C#

View Article

Reflection on a .Net Assembly - to find out if the class access modifier is...

Am using System.Reflection to read the assembly. If the class has  3 partial classes, in the assembly Only one class with all the properties and methods of all the partial classes can be is seen .I...

View Article


XmlSerializer CS0016 exception on Windows 7 with cyrillic user name

Hi,I get exception in .Net 3.5 WinForms application on W7 with Cyrillic user name, like this:-- Unable to generate a temporary class (result=1). error CS0016: Could not write to output file...

View Article

LINQ Nth Record

HI,I wish to access nth record in a table. For example i want to get 5th record in a table etc.I am following this code getting error. Any help will be appreciated.  var hbidQry = (from s in...

View Article


read value from item array in user control

Hi, I have created a user control with txtFirstName and txtLastName fields on it. On my frmPassengers, I am populating the user control more than one time based on the number user decided to add like...

View Article

Retrieving the COM class factory for component with...

Retrieving the COM class factory for component with CLSID(00024500-0000-0000-C000-000000000046) failed due to the following error: 80040154

View Article

MVC5 Razor PasswordFor Not Consistently Passing Value to View Model

I am developing a number of MVC5 applications involving user registration with two Html.PasswordFor helpers, one for initial password entry the other to confirm the password. I am having trouble with...

View Article
Browsing all 8156 articles
Browse latest View live


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