Solved

C# app, strange runtime behaviour

Posted on 2016-10-08
5
20 Views
Last Modified: 2016-10-13
I've just encountered a wierd problem.
The following piece of code (using VS2010) works
SNAG-0028.bmpand, on the same PC, the following piece of code (using VS2015) fails
SNAG-0029.bmp
Any ideas as to what is going on - I just copied and pasted the file from one project to a newer one.
0
Comment
Question by:AndyAinscow
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 29

Expert Comment

by:Pawan Kumar
ID: 41835054
Prefix @ before Provider keyword in the connection string.
0
 
LVL 44

Author Comment

by:AndyAinscow
ID: 41835056
No it isn't that, the code is identical.
0
 
LVL 29

Expert Comment

by:Pawan Kumar
ID: 41835059
Yes it is the VS 2015. If you Prefix @ before Provider keyword in the connection string then it will work.
0
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 0 total points
ID: 41835063
I've tried it and it doesn't make any difference.

Meanwhile I have found it is an x86 / x64 conflict.  Changing the solution property settings cured it.
0
 
LVL 44

Author Closing Comment

by:AndyAinscow
ID: 41841662
32/64 bit compilation problem, only one of those options had the provider installed.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question