TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Olivier Muhring
NA
150
10k
Attempting to access a 32 bit sdk through com on 64 bit
Oct 24 2019 7:56 AM
Within the context of an application I'm developing data exporting functionality. This functionality takes data from the application and attempts to transfer it into another application.
This other application allows data-exchange trough a 32-bit com interface. Now my application get builds both in 32 bit and in 64 bit. In case of 32 bit there are no problems, when I build it in 64-bit however...
I've done some research on the subject and I found a solution on https://techtalk.gfi.com/32bit-object-64bit-environment/.
I tried this and it appeared to work.. up until a point...
connnection =
new
ClSdk.Venice();
bsCreatedForVenVer =
"11.50_"
;
bsAppName =
"MyApplication"
;
eLanguage = eLanguage.lngNld;
bWithUserInterface =
true
;
bsInitials =
"XXX"
;
bsName =
"Yzzzzzzzzzzzz"
;
bsPassword =
"Yzzzzzzzzzzzz"
;
bsFunction =
"Uvvvvvvv Wxxxxxxx"
;
bsCabinet =
"Abbbb"
;
bsDossier =
"Some Client"
;
accessMode = connnection.GetAccessMode();
if
(accessMode == eAccessMode.amSecure)
{
connnection.LogonSecure(bsCreatedForVenVer, bsAppName, eLanguage,
bWithUserInterface, bsName, bsPassword);
}
else
{
connnection.Logon(bsCreatedForVenVer, bsAppName, eLanguage, bWithUserInterface, bsInitials, bsName, bsFunction);
}
When I started I would get an exception the second I tried creating new instance of the ClSdk.Venice class. After following the steps I found on the post the creation of the instance worked flawlessly, but when coming to to the connection part (connnection.LogonSecure) a new exception was thrown:
'errNoInterfaceAsService:
No interface allowed if running as a service.'
I've been trying to find some more information on this exception, but so far my searches didn't turn up anything useful.
Does anyone here has an idea how to resolve this?
Reply
Answers (
4
)
.bat file not running in IIS 8.5 - Windows Server 2012 R2
Use VB6 dll in c#