Cannot access a disposed object. Object name: 'Transaction'.
Hi,Over the last month or so despite no changes to the system, my users have sporadically started to receive the below error when using my asp.net web page:-Upload of file failed -...
View ArticleMicrosoft TechNet Wiki C# Guru - Winners for December!!
The results for December's TechNet Guru competition have been posted!http://blogs.technet.com/b/wikininjas/archive/2014/01/16/technet-guru-awards-december-2013.aspxCongratulations to all our new Gurus...
View Articlehow to union two datatable
Hi list,I have two datatable dt1 and dt2, do you know how I can union them together?DataTable dt1 = new DataTable();dt1.Columns.Add("col1",Typeof(int));dt1.Rows.Add(1);dt1.Rows.Add(2);DataTable dt2 =...
View Articleembedded dll can't be detected when installing control in visual studio 2008
In order to embed third party dll into my user control, I have added the dll to the project and set it to embedded resource and then added it to the references.In order to load it I have used...
View Articlesound buffer size
can I increase my sound buffer size?right now I am getting 17640 bytes coming in at a time.theni do this code: int bytesRecorded = e.BytesRecorded; buffer1 = new double[(8192)]; //...
View ArticleAccessing VISUAL FOXPRO DLL from .NET
I have Create simple Multithreaded from Visual FoxPro and Register on my workstationthen build one Web service in .NET to access the VFP DLL I received he following Exception exception from...
View ArticleWhy is my ASP.NET Application only showing a directory listing when I try to...
I opened Visual Studio 2012 Express for Web on my Windows 7 machine. I created an ASP.NET Empty Web Application named "EduPortal". I added a Web User Control to the project. In this User Control I put...
View ArticleOut-of-Process Modal Form
The goal is to create out-of-process COM component in C# which will display some user interface (Forms). It will be called from Excel VBA and C# Forms should be modal to Excel. C# COM component is...
View ArticleFixing - System.Net.WebException: The remote server returned an error: (500)...
I created FTP code to transfer files. This code works fine except that it sometimes causes an error 500. The exact error is -Error:System.Reflection.TargetInvocationException:Exception has been thrown...
View ArticleAsk about getting Serial Number of Hard disk return two different values ?
Hi everyone,I used below codes to get the serial number of hard drive. ManagementObjectSearcher searcher = new ManagementObjectSearcher("select * from Win32_PhysicalMedia"); foreach (ManagementObject...
View Article[Question] Error 2 Root Object in JSON in C#
Hi i need to use both RootObject in order to get the results however it is giving me error pls help public class RootObject { public Result request { get; set; } } public class...
View ArticleAccessing Windows Forms Controlls
I created a Windows Form with some buttons and a Panel. When one of the buttons are pressed, it brings up a form in the Panel. My problem is on some of the Forms that appear in the Panel have label...
View Articlepls help me with this, can't tell the error in this and am new to it
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using...
View ArticleGet value from Generic List
HI,I have two lists are tab1 and tab2 with same properties are called ABUId,User,BuildingId,UserFolio and BuildingName.Here I need to get data which available in tab1 and which not available in...
View ArticleImport excel to datatable from 9th row in asp.net using Oledb provide
I have a excel sheet that i have to import to data table then in SAP, and I want to make the 9th row header column and read the data from the 10th row, considering 9th row is the Column name. From...
View Articleword 2007 automation using c# visual studio 2008
How to insert text box in each page of word 2007 using c#. Im using Visual studio 2008. For eg, if the input is 5, document will be created with 5 pages with each page containing textbox(so totally 5...
View ArticleDatabase is not updating after exiting from the application.
Actually my database is storing data temporarily. when I start the application and store the data through application, I can see the data. But after terminating the application the entered data are...
View ArticleError_1_'WindowsFormsApplication1.Form1.GetRandomWords()' is a 'method',...
namespace WindowsFormsApplication1{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } enum BodyParts { Head,...
View ArticleClasses not recognized in their unit test code
I have a C# class library, which I'll call "MyLibrary," for which I have made a unit test project, which I will call "MyLibrary.Test." MyLibrary contains several class definitions. Currently, all of...
View ArticleObject reference not set to an instance of an object in JSON C#
Why i keep getting the above error when i retrieve out the flight amount?below is my code for reference. var requestBooking =...
View Article