473,405 Members | 2,294 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,405 software developers and data experts.

Error: procedure could not be found in a call from Smart Client

Hello All!

I've encountered with the error when I call a method of dependency
library (written in managed VC++) from Smart Client placed on a web
page. In general, I make a call to the Windows function and I get from
GetLastError – "<127> The specified procedure could not be found"
error.

Below is more detailed information about the problem.

Operation system: Windows XP Pro SP2
..NET Framework 1.1

I should display all available Bluetooth devices on my web-page. The
web-page is displayed in IE 6.0 and belonged to the trusted site.

On the page I call the method of the class that placed on the web-page
as follow:
<object id="bluetoothService"
classid="http:dll/myService.dll#MyService.BluetoothService" />
<script>

bluetoothService.GetBluetoothDevices();

</script>

The myService library is the managed library written in C#. The method
GetBluetoothDevices makes a call to method DiscoverDevices(…) from
another my library Bluetooth.dll, written in managed VC++. In the
method DiscoverDevices(…) there is a call to the
BluetoothFindFirstDevice(…) from the Platform SDK.

All libraries (myService.dll and Bluetooth.dll) are located in the
folder ‘dll' of the web-site.

When I've tested my code in the stand-alone win-form application, the
all code works fine!
But when I've started it from the web-page, after
BluetoothFindFirstDevice I've got the error code 127 returned from
Marshal::GetLastWin32Error() function (127 - The specified procedure
could not be found).

Also I've checked how my libraries are located in the GAC. I've ran
"gacutil /ldl" and both myService.dll and Bluetooth.dll are displayed.
Also I've tried to clear the GAC ("gacutil /cdl") and have stared the
page again – no successful result ((

And one interesting thing.
In the Bluetooth.dll there is a call to the
BluetoothAuthenticateDevice(…) method from the Platform SDK. This call
is successful from win-form test application and from the web-page. I
don't know how to explain it…………

Please, help me understand what is the error?
I would be glad to receive any help.
Thanks in advance for your comments and advices!

With best regards,
Eugene Safrankow.
Nov 17 '05 #1
0 2676

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Eugene Safrankow | last post by:
Hello All! I've encountered with the error when I call a method of dependency library (written in managed VC++) from Smart Client placed on a web page. In general, I make a call to the Windows...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
0
by: Nawanat | last post by:
Dear All, I’m developing software using Microsoft Visual C++ 6.0 and having a problem with Remote Procedure Call (RPC). Since RPC is used as a tool to communicate between applications over...
5
by: Amaryllis | last post by:
I'm trying to call a CL which is located on our AS400 from a Windows application. I've tried to code it in different ways, but I seem to get the same error every time. Does anyone have any clue...
3
by: Agnes | last post by:
My client hold its MS SQL server in hkbranch, Both china and hong kong office can run the vb.net application very well via VPN. Now, they want to reduce cost and move the MS SQL server to china 's...
0
by: HKSHK | last post by:
This list compares the error codes used in VB.NET 2003 with those used in VB6. Error Codes: ============ 3: This Error number is obsolete and no longer used. (Formerly: Return without GoSub)...
0
by: Lysander | last post by:
Thought I would give something back with a few articles. This article is a bit of code to add error handling. When I have time, I want to write articles on multilingual databases, and Access...
7
by: Gladiator | last post by:
Here are two simple stored procedures which were there in a database on a SOLARIS machine, one with an input parameter and the other with no parameter. From a Linux DB2 client command prompt, the...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
jinu1996
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
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,...
0
isladogs
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...

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.