473,320 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 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 4318
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.