Reference not being passed when importing class on 32 bit machine The Next CEO of Stack OverflowThe located assembly's manifest definition does not match the assembly referenceWhy is it important to override GetHashCode when Equals method is overridden?How do I pass a variable by reference?MSBuild doesn't copy references (DLL files) if using project dependencies in solutionVisual Studio jump to next error shortcut?How do I remedy the “The breakpoint will not currently be hit. No symbols have been loaded for this document.” warning?Could not load file or assembly … The parameter is incorrectThe Web Application Project […] is configured to use IIS. The Web server […] could not be found. Could not load file or assembly … An attempt was made to load a program with an incorrect format (System.BadImageFormatException)No EditorOptionDefinition Export Found Error
Is there a difference between "Fahrstuhl" and "Aufzug"
0 rank tensor vs 1D vector
Bartok - Syncopation (1): Meaning of notes in between Grand Staff
Find non-case sensitive string in a mixed list of elements?
How did people program for Consoles with multiple CPUs?
How is this set of matrices closed under multiplication?
Can you be charged for obstruction for refusing to answer questions?
Method for adding error messages to a dictionary given a key
How many extra stops do monopods offer for tele photographs?
Why is information "lost" when it got into a black hole?
I believe this to be a fraud - hired, then asked to cash check and send cash as Bitcoin
Why, when going from special to general relativity, do we just replace partial derivatives with covariant derivatives?
If Nick Fury and Coulson already knew about aliens (Kree and Skrull) why did they wait until Thor's appearance to start making weapons?
Unclear about dynamic binding
Rotate a column
Is it my responsibility to learn a new technology in my own time my employer wants to implement?
Poetry, calligrams and TikZ/PStricks challenge
Domestic-to-international connection at Orlando (MCO)
Why didn't Khan get resurrected in the Genesis Explosion?
How I can get glyphs from a fraktur font and use them as identifiers?
If the heap is zero-initialized for security, then why is the stack merely uninitialized?
How to prove a simple equation?
How to count occurrences of text in a file?
Why isn't the Mueller report being released completely and unredacted?
Reference not being passed when importing class on 32 bit machine
The Next CEO of Stack OverflowThe located assembly's manifest definition does not match the assembly referenceWhy is it important to override GetHashCode when Equals method is overridden?How do I pass a variable by reference?MSBuild doesn't copy references (DLL files) if using project dependencies in solutionVisual Studio jump to next error shortcut?How do I remedy the “The breakpoint will not currently be hit. No symbols have been loaded for this document.” warning?Could not load file or assembly … The parameter is incorrectThe Web Application Project […] is configured to use IIS. The Web server […] could not be found. Could not load file or assembly … An attempt was made to load a program with an incorrect format (System.BadImageFormatException)No EditorOptionDefinition Export Found Error
I have a Visual Studio solution that consists of several different classes that, when compiled, each produces a .dll file. A majority of the classes are written in VB.Net, but some are written in C#. One class, ClassA, is written in C# and has Sybase.Ado.Net4.AseClient in its References folder. A separate class, ClassB, is written in VB.net, and it imports ClassA. ClassB does not have Sybase.AdoNet4.AseClient in its References folder. Whenever this Visual Studio solution is opened on a 32-bit machine, the following error pops up for ClassB:
Error 2 Reference required to assembly 'Sybase.AdoNet4.AseClient, Version=4.157.104.0, Culture=neutral, PublicKeyToken=95d94fac46c88e1e' containing the type 'Sybase.Data.AseClient.AseConnection'. Add one to your project.
However, when this Visual Studio solution is opened on a 64-bit machine, no errors pop up. We need to have this solution be able to compile successfully on both 32-bit and 64-bit machines, and we need to do it without adding Sybase.Data.AseClient.AseConnection to ClassB's References. Why is it that the error only pops up when using a 32-bit machine and not a 64-bit machine? Since ClassA has Sybase.Data.AseClient.AseConnection in its References, shouldn't ClassB get it by importing ClassA?
c# vb.net import reference 32bit-64bit
add a comment |
I have a Visual Studio solution that consists of several different classes that, when compiled, each produces a .dll file. A majority of the classes are written in VB.Net, but some are written in C#. One class, ClassA, is written in C# and has Sybase.Ado.Net4.AseClient in its References folder. A separate class, ClassB, is written in VB.net, and it imports ClassA. ClassB does not have Sybase.AdoNet4.AseClient in its References folder. Whenever this Visual Studio solution is opened on a 32-bit machine, the following error pops up for ClassB:
Error 2 Reference required to assembly 'Sybase.AdoNet4.AseClient, Version=4.157.104.0, Culture=neutral, PublicKeyToken=95d94fac46c88e1e' containing the type 'Sybase.Data.AseClient.AseConnection'. Add one to your project.
However, when this Visual Studio solution is opened on a 64-bit machine, no errors pop up. We need to have this solution be able to compile successfully on both 32-bit and 64-bit machines, and we need to do it without adding Sybase.Data.AseClient.AseConnection to ClassB's References. Why is it that the error only pops up when using a 32-bit machine and not a 64-bit machine? Since ClassA has Sybase.Data.AseClient.AseConnection in its References, shouldn't ClassB get it by importing ClassA?
c# vb.net import reference 32bit-64bit
Can you open your project file in a text editor and provide theHintPath
to that Sybase.Data.AseClient.AseConnection reference?
– Steve Danner
Mar 7 at 17:14
There is no HintPath for Sybase.Data.AseClient.AseConnection
– Cody_S
Mar 7 at 19:36
Okay, I was looking in the .vbproj file of the entire visual studio solution and I didn't see a HintPath. However, when I look at the ClassA.csproj file, I see this HintPath: <HintPath>\wblzbT02BLZBExecutablesSybase.AdoNet4.AseClient.dll</HintPath>
– Cody_S
Mar 7 at 20:58
Is it possible that the 32 bit machine just doesn't have access to the UNC path where that Sybase DLL resides? Might be that the 32 bit vs 64 bit issue is just coincidence...
– Steve Danner
Mar 8 at 14:28
But ClassA is able to reference the Sybase DLL, or are you suggesting that the UNC Path doesn't come into play when Sybase.Data.AseClient.AseConnection is listed in the References folder for a class?
– Cody_S
Mar 8 at 18:37
add a comment |
I have a Visual Studio solution that consists of several different classes that, when compiled, each produces a .dll file. A majority of the classes are written in VB.Net, but some are written in C#. One class, ClassA, is written in C# and has Sybase.Ado.Net4.AseClient in its References folder. A separate class, ClassB, is written in VB.net, and it imports ClassA. ClassB does not have Sybase.AdoNet4.AseClient in its References folder. Whenever this Visual Studio solution is opened on a 32-bit machine, the following error pops up for ClassB:
Error 2 Reference required to assembly 'Sybase.AdoNet4.AseClient, Version=4.157.104.0, Culture=neutral, PublicKeyToken=95d94fac46c88e1e' containing the type 'Sybase.Data.AseClient.AseConnection'. Add one to your project.
However, when this Visual Studio solution is opened on a 64-bit machine, no errors pop up. We need to have this solution be able to compile successfully on both 32-bit and 64-bit machines, and we need to do it without adding Sybase.Data.AseClient.AseConnection to ClassB's References. Why is it that the error only pops up when using a 32-bit machine and not a 64-bit machine? Since ClassA has Sybase.Data.AseClient.AseConnection in its References, shouldn't ClassB get it by importing ClassA?
c# vb.net import reference 32bit-64bit
I have a Visual Studio solution that consists of several different classes that, when compiled, each produces a .dll file. A majority of the classes are written in VB.Net, but some are written in C#. One class, ClassA, is written in C# and has Sybase.Ado.Net4.AseClient in its References folder. A separate class, ClassB, is written in VB.net, and it imports ClassA. ClassB does not have Sybase.AdoNet4.AseClient in its References folder. Whenever this Visual Studio solution is opened on a 32-bit machine, the following error pops up for ClassB:
Error 2 Reference required to assembly 'Sybase.AdoNet4.AseClient, Version=4.157.104.0, Culture=neutral, PublicKeyToken=95d94fac46c88e1e' containing the type 'Sybase.Data.AseClient.AseConnection'. Add one to your project.
However, when this Visual Studio solution is opened on a 64-bit machine, no errors pop up. We need to have this solution be able to compile successfully on both 32-bit and 64-bit machines, and we need to do it without adding Sybase.Data.AseClient.AseConnection to ClassB's References. Why is it that the error only pops up when using a 32-bit machine and not a 64-bit machine? Since ClassA has Sybase.Data.AseClient.AseConnection in its References, shouldn't ClassB get it by importing ClassA?
c# vb.net import reference 32bit-64bit
c# vb.net import reference 32bit-64bit
asked Mar 7 at 17:01
Cody_SCody_S
143
143
Can you open your project file in a text editor and provide theHintPath
to that Sybase.Data.AseClient.AseConnection reference?
– Steve Danner
Mar 7 at 17:14
There is no HintPath for Sybase.Data.AseClient.AseConnection
– Cody_S
Mar 7 at 19:36
Okay, I was looking in the .vbproj file of the entire visual studio solution and I didn't see a HintPath. However, when I look at the ClassA.csproj file, I see this HintPath: <HintPath>\wblzbT02BLZBExecutablesSybase.AdoNet4.AseClient.dll</HintPath>
– Cody_S
Mar 7 at 20:58
Is it possible that the 32 bit machine just doesn't have access to the UNC path where that Sybase DLL resides? Might be that the 32 bit vs 64 bit issue is just coincidence...
– Steve Danner
Mar 8 at 14:28
But ClassA is able to reference the Sybase DLL, or are you suggesting that the UNC Path doesn't come into play when Sybase.Data.AseClient.AseConnection is listed in the References folder for a class?
– Cody_S
Mar 8 at 18:37
add a comment |
Can you open your project file in a text editor and provide theHintPath
to that Sybase.Data.AseClient.AseConnection reference?
– Steve Danner
Mar 7 at 17:14
There is no HintPath for Sybase.Data.AseClient.AseConnection
– Cody_S
Mar 7 at 19:36
Okay, I was looking in the .vbproj file of the entire visual studio solution and I didn't see a HintPath. However, when I look at the ClassA.csproj file, I see this HintPath: <HintPath>\wblzbT02BLZBExecutablesSybase.AdoNet4.AseClient.dll</HintPath>
– Cody_S
Mar 7 at 20:58
Is it possible that the 32 bit machine just doesn't have access to the UNC path where that Sybase DLL resides? Might be that the 32 bit vs 64 bit issue is just coincidence...
– Steve Danner
Mar 8 at 14:28
But ClassA is able to reference the Sybase DLL, or are you suggesting that the UNC Path doesn't come into play when Sybase.Data.AseClient.AseConnection is listed in the References folder for a class?
– Cody_S
Mar 8 at 18:37
Can you open your project file in a text editor and provide the
HintPath
to that Sybase.Data.AseClient.AseConnection reference?– Steve Danner
Mar 7 at 17:14
Can you open your project file in a text editor and provide the
HintPath
to that Sybase.Data.AseClient.AseConnection reference?– Steve Danner
Mar 7 at 17:14
There is no HintPath for Sybase.Data.AseClient.AseConnection
– Cody_S
Mar 7 at 19:36
There is no HintPath for Sybase.Data.AseClient.AseConnection
– Cody_S
Mar 7 at 19:36
Okay, I was looking in the .vbproj file of the entire visual studio solution and I didn't see a HintPath. However, when I look at the ClassA.csproj file, I see this HintPath: <HintPath>\wblzbT02BLZBExecutablesSybase.AdoNet4.AseClient.dll</HintPath>
– Cody_S
Mar 7 at 20:58
Okay, I was looking in the .vbproj file of the entire visual studio solution and I didn't see a HintPath. However, when I look at the ClassA.csproj file, I see this HintPath: <HintPath>\wblzbT02BLZBExecutablesSybase.AdoNet4.AseClient.dll</HintPath>
– Cody_S
Mar 7 at 20:58
Is it possible that the 32 bit machine just doesn't have access to the UNC path where that Sybase DLL resides? Might be that the 32 bit vs 64 bit issue is just coincidence...
– Steve Danner
Mar 8 at 14:28
Is it possible that the 32 bit machine just doesn't have access to the UNC path where that Sybase DLL resides? Might be that the 32 bit vs 64 bit issue is just coincidence...
– Steve Danner
Mar 8 at 14:28
But ClassA is able to reference the Sybase DLL, or are you suggesting that the UNC Path doesn't come into play when Sybase.Data.AseClient.AseConnection is listed in the References folder for a class?
– Cody_S
Mar 8 at 18:37
But ClassA is able to reference the Sybase DLL, or are you suggesting that the UNC Path doesn't come into play when Sybase.Data.AseClient.AseConnection is listed in the References folder for a class?
– Cody_S
Mar 8 at 18:37
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55049216%2freference-not-being-passed-when-importing-class-on-32-bit-machine%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55049216%2freference-not-being-passed-when-importing-class-on-32-bit-machine%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Can you open your project file in a text editor and provide the
HintPath
to that Sybase.Data.AseClient.AseConnection reference?– Steve Danner
Mar 7 at 17:14
There is no HintPath for Sybase.Data.AseClient.AseConnection
– Cody_S
Mar 7 at 19:36
Okay, I was looking in the .vbproj file of the entire visual studio solution and I didn't see a HintPath. However, when I look at the ClassA.csproj file, I see this HintPath: <HintPath>\wblzbT02BLZBExecutablesSybase.AdoNet4.AseClient.dll</HintPath>
– Cody_S
Mar 7 at 20:58
Is it possible that the 32 bit machine just doesn't have access to the UNC path where that Sybase DLL resides? Might be that the 32 bit vs 64 bit issue is just coincidence...
– Steve Danner
Mar 8 at 14:28
But ClassA is able to reference the Sybase DLL, or are you suggesting that the UNC Path doesn't come into play when Sybase.Data.AseClient.AseConnection is listed in the References folder for a class?
– Cody_S
Mar 8 at 18:37