Answer Questions
Amit Patankar error using vb2005 SingleInstance
Hello, I am using win xp pro sp2, .net framework 2.0.50727 and visual basic 2005 8.0.50727.42 (RTM.50727-4200) i have some errors when creating a single instance application. i have created a singleinstance app by checking the SingleInstance property and i catch the events on my app events designer: Partial Friend Class MyApplication Private Sub MyApplication_StartupNextInstance(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.Applic ...Show All
profx.netter .NET Runtime 2.0 Error Reporting
Hi, My application is running on 65 PC. After a few hours, this applications crash on 2-3 PC. I get no exception in my log files. I set the Application.ThreadException and AppDomain.CurrentDomain.UnhandledException exception event handlers. The last one is triggered with 'System.NullReferenceException: Object reference not set to an instance of an object.' but there is no stack trace available. I got no dump file, no popup window. I only get the ...Show All
Ahmed Mahdy bug in Int32.Parse
In Visual Studio 2005, the following throws a FormatException and it definitely shouldn't. The same code works fine in Visual Studio 2003. This is the version that I am seeing the problem, running on XP: Microsoft Visual Studio 2005 Version 8.0.50727.42 (RTM.050727-4200) Microsoft .NET Framework Version 2.0.50727 Installed Edition: Profes ...Show All
Bryan Cooper Representing an Access Table as a Web Page
Does anyone know if there is a wizard or conversion tool in .NET that allows the conversion or representation of a MS Access data table into a Web page format that also provides CRUD functionality For programmatic access to MS Access data, you can use Odbc or Oledb providers and all of the ADO.Net stack. For tool support, you should probably post the question in one of the Visual Studio forums. ...Show All
Dave Koehler Framework 2.0 breaks app, supportedRuntime does not fix
Original Environment Windows 2000 Service Pack 4 1.0.3705 1.1.4322 Application written using VS.NET 2003 and 1.1.4322. Application calls unmanaged code. Everything works. Breaking Change One change was made, installation of 2.0.50727. It was expected (hoped ) this would not affect a 1.1 application. Details of unsuccessful workaround Added this to the application's config file: < startup > < supportedRuntime versio ...Show All
mhams ThreadPooling in c#
I have to upload 70 files using ThreadPooling and code i have used is as below.I have set the maxthread size as 10.But it is uploading only 8 files. Please tell me how to make it work.Also if u can please give a sample code.Help will be greatly appreciated. WaitCallback callBack = new WaitCallback ( UploadFileEx0 ); for ( int i = 0 ; i < 70 ; i ++) { if ( true == isThreadAvailable ( true )) { T ...Show All
DilipK Appending from file to file
Hi, Im having a lil problem with 2 xml files. Im trying to append from file to file with C#. One xml file is on my pc, the other one is on the server. The xml file on the server gets input for appointments. They look like this: [code] < xml version="1.0" standalone="yes" > <Agenda> <Appointment> <Id> 1 </Id> <Date> 20060604 </Date> <Time> 120000 </Time> <Subject> whatever </Subje ...Show All
Kurt S Inserting large amount of rows using ADO.NET
Hi , I have a requirement to read rows from Table A on Server A and insert into Table B on Server B. Unfortunatley, Server A and B are not linked , so i can't use a Insert SQL to do the inserts. I am thinking of reading rows from Table A and inserting into Table B using ADO.NET. My question is : 1) Is there a way in ADO.NET 1.1 to do bulk inserts The insert will be done by a stored procedure , but I don't want this Stored proc to be ca ...Show All
Jeff FR Getting a PerformanceCounter to use a remote machine
I have been trying to get a System.Diagnostics.PerformanceCounter (.NET 2.) to work on a remote machine. I have rights to Performance Monitor Users group and Performance Log Users group on the remote server and Admin on the local machine. I can't get the code to work (see exception below). If I elevate my rights to Admin, it works flawlessly. I need to find the minimum security rights I need to get the app to run. How can I go ab ...Show All
Nevil strongly typed dataset
Hi, The following line populates a datagrid using a strongly typed dataset. dsEmps is the .xsd file in the foreach line I would like to loop through each record I get an error on the foreach line and it says: specified cast is not valid I think this line has to be somehow casted employeeDetailsData.Employees.Rows EmpBusRule.EmpService.dsEmps employeeDetailsData; EmpBusRule.Employees br = new EmpBusRule.Employees(); employeeDetailsData = ...Show All
Guber My ftp request work once on two
I have this code : TcpClient tcpc = new TcpClient (); tcpc.Connect( "10.0.0.2" , 21); NetworkStream nst = tcpc.GetStream(); byte [] bytes = new byte [tcpc.ReceiveBufferSize]; nst.Read(bytes, 0, tcpc.ReceiveBufferSize); nst.Read(bytes, 0, tcpc.ReceiveBufferSize); nst.Read(bytes, 0, tcpc.ReceiveBufferSize); byte [] wbytes = Encoding .ASCII.GetBytes( "USER myuseretudepdf\r\n" ); nst.Write(w ...Show All
bosseman What Iam doing wrong?
OK. What Iam doing wrong here I have wrote this function, but it doesen't work :S. ReadHTMLFile() is a function that reads whole HTML file. GenerateMenuBar() is a function to generate menu bar for the HTML file. Then I do what I need to do (is in WriteHTMLFile() function) and when I write the file I get a page like some tags are missing (truncated :S). I compare the html files (the original one and the generated one) and Ive notice that at the ...Show All
fhhowdy SQL Server newbie needing help.
Hi, I am a newbie with SQL Server 2005 Express Edition. My boss purchased VS2005 Pro for me and I have started work on an application for our company (using C#). I am decoding a very awkward data file and need to convert it to a database that is stored on our office network (up to 6 users need to access this database simultaneously). 1: Do all the user access PC's require SQL Server 2005 Express Edition installed on their system to be a ...Show All
BA2006 How to retrieve info (messages) from the SQL Execution
Hello. First, I hope I'm posting in the right forum. I'm developing av .NET application using ADO.NET. Everytime you execute SQL Queries the database returns information like "(1 row(s) affected)" etc, but I haven't found a way to get this info from the ADO.NET tools - eg. the SqlDataReader or OdbcDataReader. I need this information to get data returned by STATISTICS IO and STATISTICS TIME (ref http://www.vbcity.com/forums/topic.as ...Show All
Hmmm.... Threads...... ssl hell
I've made a self signed certificate and private key to use for ssl If I go by browser : no problem. When I want to do add webreference I get following exception: (it opens the page in the left window and in the right window the exception: The document at the url https://deftje/services/service.asmx was not recognized as a known document type. The error message from each known type may help you fix the problem: - Report from ...Show All
