1. S

    Question SystemIOException

    Hi Guys, I am getting an error on a program i created, the program seems to work great so i started trying to cause problems (as users will generally do), I have found i can get it to crash if i remove the removable USB drive while it is compressing data to it, below is a small program i...
  2. Priyabrata

    Question SQL Server CE throws exception while inserting data using code

    I am writing a code for a project and I am stuck in a place where it throws an exception, and this is my first project working with DB with VB.NET Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim connStr As New SqlCeConnection("Data...
  3. B

    Question Index Out Of Range Exception was unhandeld

    I get this error: What is wrong with my code?
  4. cwnonthehill

    Preparing my app for ERROR

    Hey guys, I have completed work on my application, and during testing here in the office it occasionally will throw an Unhandled Exception error, mainly related to Crystal Reports which I know I can remedy by having CR installed on the end-user's PC. The one thing I find odd is that in those...
  5. L

    Security.Exception when calling .net dll function

    I am using a .NET assembly written by a small company for automation of their hardware. it is not signed, etc. and that's not an option. i am getting security exceptions for certain calls. Strangely, if i do the calls within a new thread, i don't have these problems, when i call them within the...
  6. poncianux

    System.XML.Linq reference in Framework 2.0

    Due to most of the computers uses Windows XP or a non updated framework, as developer sometimes you need to use the most common tools, but what happens when the common tools doesn't have what you want? That's exactly what happens to me now with the reference 'System.XML.Linq' I need that...
  7. S

    Question Error upon filling dataAdapter (SQL2005)

    Hi all, I'm trying to fill a dataadapter from my sql2005 server. After filling i'm planning on generating a chart (VS2008) from the datarows. But upon filling the data adapter I'm getting: "A first chance exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll" in...
  8. G

    Target Invocation Exception with Excel NewSeries

    Using Excel 2007 and Visual Studio 2003 This function throws a target invocation exception Private Function ExcelNewSeries(ByVal sercol As Excel.SeriesCollection) As Excel.Series Dim series As Excel.Series series = CType(sercol, Object).GetType.InvokeMember("NewSeries"...
  9. G

    Question INSERT INTO exception

    Hi, everybody, i've dev a program that access to an mdb database and insert a new record with the command INSERT INTO but when i execute the db command with ExecuteNonQuery the program catch an exception that i did not understand. I post the oledbcommand line and the fields of the access mdb...
  10. P

    Question A first chance exception of type 'System.Runtime.InteropServices.COMException' occurr

    I'm using Visual Basic 2010 Express I get the following error message SIX times before the code reaches the line marked ***: A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in mscorlib.dll Code: ----- Module Module1 Sub Main() Dim xlApp As...
  11. Z

    Question Help Implementing Event from Interface

    I am having trouble implementing an Event from an Interface in a ClassLibrary. Here's the scenario: o I have 2 projects -- a ClassLibrary "CL1" and a Windows Application. The ClassLibrary: o Contains a Friend Interface "I1" and a Public Class "C1". o The Interface defines one Event "E1" and one...
  12. S

    Exception: "Update requires a valid InsertCommand..."

    Exception: "Update requires a valid InsertCommand when passed DataRow collection with new rows" This is the error message i got when i tried to update my database. The way i'm trying to update is by creating 2 DataRow objects and adding each to a DataTable that i filled with DataAdapters, then i...
  13. B

    Question Null reference exception??

    I have written a CLR stored procedure which I call through code in MS Access. It throws a Null Reference Exception. I guess it must be due to one of two variables I use inside the CLR procedure, for both of which the Refactor gives me a message 'Variable is used before it has been assigned a...
  14. I

    Handle error or exception when host is down

    Hi in some part of my code i am forwarding the user to a different page. eg { Response.redirect("www.abc.com") } Now i want to check if the website is available and if not then user should not see page not found, rather i should keep him on my website only, showing a gracefull error...
  15. M

    Unhandled exception popup

    My apologies up front if I am posting in the wrong forum ... I have a vb.net app that uses excel via ActiveX. If the user kills Excel instead of returning to the app and letting it do it, I get an unhandled exception popup for the exception RPC_E_DISCONNECTED when the app tries to close the...
  16. Adagio

    Question SQL server 2008 - Connection problems

    I get this lovely message from time to time: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote...
Top Bottom