472,958 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 software developers and data experts.

Please help!! Error message - can't get rid of it!

Whenever I try and run a project in VB.NET 2003, all i get is:

"An unhandled exception of type 'System.ArgumentException' occurred in
Unknown Module.

Additional information: The parameter is incorrect."

or

"An unhandled exception of type
'System.Runtime.InteropServices.COMException' occurred in Unknown Module.

Additional information: Cannot create a file when that file already exists."

I have tried re-installing the .NET Framework and VS .NET 2003, but to no
avail.

Please help!!!

Thanks in advance

Neil Brown


Nov 21 '05 #1
4 4302
Windows XP with SP2 by any chance?

RE:
************************************************** *************
"An unhandled exception of type
'System.Runtime.InteropServices.COMException' occurred in Unknown Module.

Additional information: Cannot create a file when that file already exists."
************************************************** *************

I've only seen this error occur on XP with SP2 in third party COM components such as ESRI's ActiveX
Connector - not sure why or even how to fix it. In my view SP2 can only be relied on to turn your PC
into a large paperweight (and I am a staunch MS fan / developer).

Try catching the exception and inspecting the error message that the COM component raised eg.

Try
Do your call here

Catch e as Exception
Debug.WriteLine e.toString()
End Try

Does the error occur on a specific line or completely divorced from the code?

Chris.

"neil brown" <ne**@REMOVEsheuchanfarm01.freeserve.co.uk> wrote in message
news:Db**************@newsfe3-gui.ntli.net...
Whenever I try and run a project in VB.NET 2003, all i get is:

"An unhandled exception of type 'System.ArgumentException' occurred in
Unknown Module.

Additional information: The parameter is incorrect."

or

"An unhandled exception of type
'System.Runtime.InteropServices.COMException' occurred in Unknown Module.

Additional information: Cannot create a file when that file already exists."

I have tried re-installing the .NET Framework and VS .NET 2003, but to no
avail.

Please help!!!

Thanks in advance

Neil Brown


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.777 / Virus Database: 524 - Release Date: 14/10/2004
Nov 21 '05 #2
That's the thing that I cant get my head round. I am using no COM objects
or calling any functions - even when I start a blank Windows Application
project, the dreaded message appears. Yes, I am using SP2!!!!

Any ideas of how to fix it?

Neil Brown

"Chris Barber" <ch***@blue-canoe.co.uk.NOSPAM> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Windows XP with SP2 by any chance?

RE:
************************************************** *************
"An unhandled exception of type
'System.Runtime.InteropServices.COMException' occurred in Unknown Module.

Additional information: Cannot create a file when that file already
exists."
************************************************** *************

I've only seen this error occur on XP with SP2 in third party COM
components such as ESRI's ActiveX
Connector - not sure why or even how to fix it. In my view SP2 can only be
relied on to turn your PC
into a large paperweight (and I am a staunch MS fan / developer).

Try catching the exception and inspecting the error message that the COM
component raised eg.

Try
Do your call here

Catch e as Exception
Debug.WriteLine e.toString()
End Try

Does the error occur on a specific line or completely divorced from the
code?

Chris.

"neil brown" <ne**@REMOVEsheuchanfarm01.freeserve.co.uk> wrote in message
news:Db**************@newsfe3-gui.ntli.net...
Whenever I try and run a project in VB.NET 2003, all i get is:

"An unhandled exception of type 'System.ArgumentException' occurred in
Unknown Module.

Additional information: The parameter is incorrect."

or

"An unhandled exception of type
'System.Runtime.InteropServices.COMException' occurred in Unknown Module.

Additional information: Cannot create a file when that file already
exists."

I have tried re-installing the .NET Framework and VS .NET 2003, but to no
avail.

Please help!!!

Thanks in advance

Neil Brown


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.777 / Virus Database: 524 - Release Date: 14/10/2004

Nov 21 '05 #3
Are you using any IDE extensions that use standard DLLs?
Do you have anything setup to automatically reference specific imports for a new project (eg. a
modified template)?

My advice would be to first try reinstalling (or repair) VS.NET. If that fails then take a disk
image and try uninstalling SP2 to see if that resolves it. I'm not suggesting this as a long term
solution but merely as a means to determine if it's SP2 that is causing this issue.

This error:
'System.Runtime.InteropServices.COMException' occurred in Unknown Module.

Definitely implies that a standard DLL (eg. not .NET based) is being instantiated (and failing).
This error:
"An unhandled exception of type 'System.ArgumentException' occurred in
Unknown Module.

I'm not familiar with and can't really comment on.

You did say when you try and *run* a project in the original post - do I take it that this now
exhibits itself when merely creating a new blank project? What type of project (language and type)?
Check the references that exist for the new project and inspect the application folder for any
<something>.interop files - they should point you in the right direction to finding the culprit DLL.
If you run it in debug does it break out at a specific line?

Chris.

"Neil" <ne**@sheuchanfarm01.freeserve.co.uk> wrote in message
news:ML****************@newsfe1-win.ntli.net...
That's the thing that I cant get my head round. I am using no COM objects
or calling any functions - even when I start a blank Windows Application
project, the dreaded message appears. Yes, I am using SP2!!!!

Any ideas of how to fix it?

Neil Brown

"Chris Barber" <ch***@blue-canoe.co.uk.NOSPAM> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Windows XP with SP2 by any chance?

RE:
************************************************** *************
"An unhandled exception of type
'System.Runtime.InteropServices.COMException' occurred in Unknown Module.

Additional information: Cannot create a file when that file already
exists."
************************************************** *************

I've only seen this error occur on XP with SP2 in third party COM
components such as ESRI's ActiveX
Connector - not sure why or even how to fix it. In my view SP2 can only be
relied on to turn your PC
into a large paperweight (and I am a staunch MS fan / developer).

Try catching the exception and inspecting the error message that the COM
component raised eg.

Try
Do your call here

Catch e as Exception
Debug.WriteLine e.toString()
End Try

Does the error occur on a specific line or completely divorced from the
code?

Chris.

"neil brown" <ne**@REMOVEsheuchanfarm01.freeserve.co.uk> wrote in message
news:Db**************@newsfe3-gui.ntli.net...
Whenever I try and run a project in VB.NET 2003, all i get is:

"An unhandled exception of type 'System.ArgumentException' occurred in
Unknown Module.

Additional information: The parameter is incorrect."

or

"An unhandled exception of type
'System.Runtime.InteropServices.COMException' occurred in Unknown Module.

Additional information: Cannot create a file when that file already
exists."

I have tried re-installing the .NET Framework and VS .NET 2003, but to no
avail.

Please help!!!

Thanks in advance

Neil Brown


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.777 / Virus Database: 524 - Release Date: 14/10/2004



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.778 / Virus Database: 525 - Release Date: 15/10/2004
Nov 21 '05 #4
thanks for the suggestions

My advice would be to first try reinstalling (or repair) VS.NET. If that
fails then take a disk
image and try uninstalling SP2 to see if that resolves it. I'm not
suggesting this as a long term
solution but merely as a means to determine if it's SP2 that is causing
this issue.

have spent days reinstalling visual studio and even windows, and it works
without SP2 but will only really remove SP2 as a last resort.
This error:
'System.Runtime.InteropServices.COMException' occurred in Unknown Module.
....
You did say when you try and *run* a project in the original post - do I
take it that this now
exhibits itself when merely creating a new blank project?What type of
project (language and type)?
have tried it with a blank VB.NET WindowsApplication

I have managed to get it working by removing the 'System' reference from the
project properties window - will this greatly affect the features of visual
basic???

thanks for all your help

neil brown

"Neil" <ne**@sheuchanfarm01.freeserve.co.uk> wrote in message
news:ML****************@newsfe1-win.ntli.net...
That's the thing that I cant get my head round. I am using no COM
objects
or calling any functions - even when I start a blank Windows Application
project, the dreaded message appears. Yes, I am using SP2!!!!

Any ideas of how to fix it?

Neil Brown

"Chris Barber" <ch***@blue-canoe.co.uk.NOSPAM> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Windows XP with SP2 by any chance?

RE:
************************************************** *************
"An unhandled exception of type
'System.Runtime.InteropServices.COMException' occurred in Unknown Module.

Additional information: Cannot create a file when that file already
exists."
************************************************** *************

I've only seen this error occur on XP with SP2 in third party COM
components such as ESRI's ActiveX
Connector - not sure why or even how to fix it. In my view SP2 can only
be
relied on to turn your PC
into a large paperweight (and I am a staunch MS fan / developer).

Try catching the exception and inspecting the error message that the COM
component raised eg.

Try
Do your call here

Catch e as Exception
Debug.WriteLine e.toString()
End Try

Does the error occur on a specific line or completely divorced from the
code?

Chris.

"neil brown" <ne**@REMOVEsheuchanfarm01.freeserve.co.uk> wrote in message
news:Db**************@newsfe3-gui.ntli.net...
Whenever I try and run a project in VB.NET 2003, all i get is:

"An unhandled exception of type 'System.ArgumentException' occurred in
Unknown Module.

Additional information: The parameter is incorrect."

or

"An unhandled exception of type
'System.Runtime.InteropServices.COMException' occurred in Unknown Module.

Additional information: Cannot create a file when that file already
exists."

I have tried re-installing the .NET Framework and VS .NET 2003, but to no
avail.

Please help!!!

Thanks in advance

Neil Brown


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.777 / Virus Database: 524 - Release Date: 14/10/2004



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.778 / Virus Database: 525 - Release Date: 15/10/2004

Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Jerry | last post by:
Hi All I would very much appreciate your help: I have two scripts alternating in the background triggering themselves mutually. Here is how: 1.) Script A does something and then calls Script...
0
by: Pola | last post by:
Please Help I am using VC++ in win 2000 In my appl (Win32 project) I want to control the close operation of the apl (for example if somebody will try to close appl from the "Windows Task Manager")...
0
by: Jimmy | last post by:
I have a web page that displays data from a sql server db. I'm using a stored procedure to return data from a field of type text as an OUTPUT parameter. How can I use an OUTPUT parameter of...
8
by: John | last post by:
Is there any special code I have to write to log event to Security Event Log? The following code give me "Very Easy Question, How to write log to SECURTY Event Log? Please help" Error // Create...
1
by: Andrew Fenyo | last post by:
Help!!! I have been developing an application, and suddenly, whenever I try adding data, or adding a control to a form, I get the above message. I have tried moving the file from our server to...
11
by: robertmeyer1 | last post by:
Hey. I have a mainform, based off a tblClient. Then 2 sbf’s based off queries. I’m trying to insert the sbf’s into the mainform to allow for data entry (using the Tab Control). I am linking the...
20
by: jverri01 | last post by:
Hi. I am building a process that retrieves a value from a combo box, and based on the value, one of two SQL processes occur. If the value from the box is "-ALL-" then all records from a table are...
5
by: mvmashraf | last post by:
Hi to all.... I have spent some time browsing for a solution to the following error but have unfortunatly not found any solution yet ,Please any help would be much appreciated.......
0
by: gamaz | last post by:
Hi I have a web form which is a part of asp.net application. This process updates a row of a table. This works fine. However I needed to add a DueDate field in the form and update the DueDate...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.