Hi
I've got a problem with my current application. I currently use
Windows Vista with Visual Studio Express 2008. If I compile the
application on Vista, it works fine on Vista, but it doesn't work on
XP. If I compile it on XP (with the same source code [copied from
vista]), it runs without any problems.
The thing is: I only have a virtual machine to test my software on XP,
but I can't develop on it.
The error shows up, when I try to declare a public OleDb object. Here
the source:
Public DatabaseConnect ion As New OleDb.OleDbConn ection
This error only happens, when I try to fill up the ConnectionStrin g of
this OleDb Object.
The error message itself is not really helpful, so I won't post it
right now.
My Question is: Where is the problem, is there someone which had
similar problem with Vista and XP apps?
Thank you for your help.
--
pmw 19 4224
On Sep 22, 4:00*pm, pmw <we...@see64.ch wrote:
Hi
I've got a problem with my current application. I currently use
Windows Vista with Visual Studio Express 2008. If I compile the
application on Vista, it works fine on Vista, but it doesn't work on
XP. If I compile it on XP (with the same source code [copied from
vista]), it runs without any problems.
The thing is: I only have a virtual machine to test my software on XP,
but I can't develop on it.
The error shows up, when I try to declare a public OleDb object. Here
the source:
Public DatabaseConnect ion As New OleDb.OleDbConn ection
This error only happens, when I try to fill up the ConnectionStrin g of
this OleDb Object.
The error message itself is not really helpful, so I won't post it
right now.
My Question is: Where is the problem, is there someone which had
similar problem with Vista and XP apps?
Thank you for your help.
--
pmw
What's the error?
On 22 Sep., 16:04, kimiraikkonen <kimiraikkone.. .@gmail.comwrot e:
On Sep 22, 4:00*pm, pmw <we...@see64.ch wrote:
Hi
I've got a problem with my current application. I currently use
Windows Vista with Visual Studio Express 2008. If I compile the
application on Vista, it works fine on Vista, but it doesn't work on
XP. If I compile it on XP (with the same source code [copied from
vista]), it runs without any problems.
The thing is: I only have a virtual machine to test my software on XP,
but I can't develop on it.
The error shows up, when I try to declare a public OleDb object. Here
the source:
Public DatabaseConnect ion As New OleDb.OleDbConn ection
This error only happens, when I try to fill up the ConnectionStrin g of
this OleDb Object.
The error message itself is not really helpful, so I won't post it
right now.
My Question is: Where is the problem, is there someone which had
similar problem with Vista and XP apps?
Thank you for your help.
--
pmw
What's the error?- Zitierten Text ausblenden -
- Zitierten Text anzeigen -
Error Number 5 - The type initializer for
Project.ModuleG lobalVariables threw an exception
and the ex.InnerExcepti on.Message says: "Exception has been thrown by
the target of an invocation"
On Sep 22, 5:16*pm, PmW <we...@see64.ch wrote:
On 22 Sep., 16:04, kimiraikkonen <kimiraikkone.. .@gmail.comwrot e:
On Sep 22, 4:00*pm, pmw <we...@see64.ch wrote:
Hi
I've got a problem with my current application. I currently use
Windows Vista with Visual Studio Express 2008. If I compile the
application on Vista, it works fine on Vista, but it doesn't work on
XP. If I compile it on XP (with the same source code [copied from
vista]), it runs without any problems.
The thing is: I only have a virtual machine to test my software on XP,
but I can't develop on it.
The error shows up, when I try to declare a public OleDb object. Here
the source:
Public DatabaseConnect ion As New OleDb.OleDbConn ection
This error only happens, when I try to fill up the ConnectionStrin g of
this OleDb Object.
The error message itself is not really helpful, so I won't post it
right now.
My Question is: Where is the problem, is there someone which had
similar problem with Vista and XP apps?
Thank you for your help.
--
pmw
What's the error?- Zitierten Text ausblenden -
- Zitierten Text anzeigen -
Error Number 5 - The type initializer for
Project.ModuleG lobalVariables threw an exception
and the ex.InnerExcepti on.Message says: "Exception has been thrown by
the target of an invocation"- Hide quoted text -
- Show quoted text -
Sorry, without seeing full code (if it's not too long), i can't make
out the reason beyond guessing the following:
1)Make sure you are using proper connection string syntax. Look at http://www.connectionstrings.com for more info.
2)Try to put your code inside a Try-Catch block and catch the actual
error if it provides additional clue.
Like:
Try
'...All the code including connection string
' and stuff related to OleDb object
Catch ex As Exception
Msgbox(ex.Messa ge.ToString)
End Try
3)Try to initialize your disposable OleDb class within Using-End Using
to ensure there's no pending open connections.
All from me.
Hope this helps,
Onur Güzel
Lets see if I got this right
compile on XP, run on XP is OK
compile on XP, run on Vista is OK
compile on Vista, run on Vista is OK
but, compile on Vista, run on XP is NOT OK
- Larry
pmw wrote:
Hi
I've got a problem with my current application. I currently use
Windows Vista with Visual Studio Express 2008. If I compile the
application on Vista, it works fine on Vista, but it doesn't work on
XP. If I compile it on XP (with the same source code [copied from
vista]), it runs without any problems.
The thing is: I only have a virtual machine to test my software on XP,
but I can't develop on it.
The error shows up, when I try to declare a public OleDb object. Here
the source:
Public DatabaseConnect ion As New OleDb.OleDbConn ection
This error only happens, when I try to fill up the ConnectionStrin g of
this OleDb Object.
The error message itself is not really helpful, so I won't post it
right now.
My Question is: Where is the problem, is there someone which had
similar problem with Vista and XP apps?
Thank you for your help.
--
pmw
On 22 Sep., 17:45, kimiraikkonen <kimiraikkone.. .@gmail.comwrot e:
>Sorry, without seeing full code (if it's not too long), i can't make out the reason beyond guessing the following:
Sorry, I would love to give you the source code, but I can't. Not
because it's big, I just can't hand you over that code.
>1)Make sure you are using proper connection string syntax. Look at http://www.connectionstrings.com for more info.
That one has to be allright, because on Vista it works with the same
one. I also checked it by creating an *.udl file on the XP machine to
create the string.
>2)Try to put your code inside a Try-Catch block and catch the actual r error if it provides additional clue. [...]
Already did that. There isn't really a good error message for that ...
makes it even harder to understand the problem.
>3)Try to initialize your disposable OleDb class within Using-End Using to ensure there's no pending open connections.
Problem 1: I can't use "Using-End Using" with "OleDB.OleDbCon nection".
Problem 2: I'm using the object all over the application, so it has to
be a public one, declared in a module. (like I'm doing it right now).
Thank you anyway for your help! I really appreciate that.
On 22 Sep., 23:19, Larry__Weiss <l...@airmail.n etwrote:
compile on XP, run on XP is OK
True
compile on XP, run on Vista is OK
Not sure, didn't try that. But I expect that it is running on Vista.
compile on Vista, run on Vista is OK
True
but, compile on Vista, run on XP is NOT OK
True
--
PmW
On Sep 23, 7:01*am, PmW <we...@see64.ch wrote:
On 22 Sep., 17:45, kimiraikkonen <kimiraikkone.. .@gmail.comwrot e:>Sorry, without seeing full code (if it's not too long), i can't make
out the reason beyond guessing the following:
Sorry, I would love to give you the source code, but I can't. Not
because it's big, I just can't hand you over that code.
1)Make sure you are using proper connection string syntax. Look athttp://www.connections trings.comfor more info.
That one has to be allright, because on Vista it works with the same
one. I also checked it by creating an *.udl file on the XP machine to
create the string.
2)Try to put your code inside a Try-Catch block and catch the actual r
error if it provides additional clue. [...]
Already did that. There isn't really a good error message for that ...
makes it even harder to understand the problem.
3)Try to initialize your disposable OleDb class within Using-End Using
to ensure there's no pending open connections.
Problem 1: I can't use "Using-End Using" with "OleDB.OleDbCon nection".
Problem 2: I'm using the object all over the application, so it has to
be a public one, declared in a module. (like I'm doing it right now).
Thank you anyway for your help! I really appreciate that.
So you want help solving this problem but can't show us the code
that's causing it. Call me an old cynic, but that sounds like I've
got this homework please do it for me.
On 23 Sep., 10:05, "dgcarter1...@g ooglemail.com"
<dgcarter1...@g ooglemail.comwr ote:
On Sep 23, 7:01*am, PmW <we...@see64.ch wrote:
On 22 Sep., 17:45, kimiraikkonen <kimiraikkone.. .@gmail.comwrot e:>Sorry, without seeing full code (if it's not too long), i can't make
>out the reason beyond guessing the following:
Sorry, I would love to give you the source code, but I can't. Not
because it's big, I just can't hand you over that code.
>1)Make sure you are using proper connection string syntax. Look athttp://www.connections trings.comformo re info.
That one has to be allright, because on Vista it works with the same
one. I also checked it by creating an *.udl file on the XP machine to
create the string.
>2)Try to put your code inside a Try-Catch block and catch the actual r
>error if it provides additional clue. [...]
Already did that. There isn't really a good error message for that ...
makes it even harder to understand the problem.
>3)Try to initialize your disposable OleDb class within Using-End Using
>to ensure there's no pending open connections.
Problem 1: I can't use "Using-End Using" with "OleDB.OleDbCon nection".
Problem 2: I'm using the object all over the application, so it has to
be a public one, declared in a module. (like I'm doing it right now).
Thank you anyway for your help! I really appreciate that.
So you want help solving this problem but can't show us the code
that's causing it. *Call me an old cynic, but that sounds like I've
got this homework please do it for me.- Zitierten Text ausblenden -
- Zitierten Text anzeigen -
Err ... yeah sure ...
So you want to know why I can't show you the code? First it is a
commercial product, so I can't just show you some source codes without
permission. Second, I'm working in a workplace where I have to go
through 4 security doors. So now you can imagine, that I'm not just
working at a standard workplace. Two good reasons, why I can't show
you the sources.
pmw wrote:
I've got a problem with my current application. I currently use
Windows Vista with Visual Studio Express 2008. If I compile the
application on Vista, it works fine on Vista, but it doesn't work on
XP. If I compile it on XP (with the same source code [copied from
vista]), it runs without any problems.
Is there any way you can compare the IL code generated from the Vista
and XP compiled code?
- Larry This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Allen Browne |
last post by:
If you develop for others, you probably have multiple versions of Access
installed so you can edit and create MDEs for clients in different versions.
This works fine under Windows XP, even with Access 2007 installed.
It does *not* work under Windows Vista Ultimate. After running Access 2007,
when you open an earlier version of Access, no code works, because the
references are fouled up. And Access 97 does not work at all.
Access should...
|
by: Squishy |
last post by:
I tried installing my VS2005 Pro on Vista Ultimate 32 bit RTM today and got
errors stating that VS2005 was not compatible with Vista.
Microsoft......please pull your finger out of my ass and tell me this is a
joke.
It must be a joke....because I also have read that VS2002 and VS2003 will
not be supported on Vista. This clearly violates Microsoft's own terms of
support for these products.
|
by: nik |
last post by:
Hi,
I've compiled my application on my vista machine, and it won't run at
all on my xp machine. In the windows error report I get Exception
code; 0xe0434f4d. I searched for that exception, but didn't see
anything related to my problem. I can run a different .exe that I made
on the vista machine on the xp machine, so I am wondering what is
different/wrong with this one.
The xp machine does have vb6 installed on it, could that be an...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |