powered by simpleCommunicator - 2.0.60     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / ASP.NET [игнор отключен] [закрыт для гостей] / Вопрос знатокам
2 сообщений из 2, страница 1 из 1
Вопрос знатокам
    #33919743
berentan
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Есть API(.dll+.lib+.h) стороннего производителя, динамическая библиотека сетевых функций.
Возможно ли ее использовать в веб-сервисе (вызывать функции из .dll
файла проекта, например)? Я пытался как в обычном приложении, дает ошибки
Server Error in '/tu' Application.
--------------------------------------------------------------------------------
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: File or assembly name tu, or one of its dependencies, was not found.
Source Error:

Line 196:    <add assembly="System.EnterpriseServices, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 197:    <add assembly="System.Web.Mobile, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 198:    <add assembly="*"/>
Line 199:   </assemblies>
Line 200:  </compilation>
 
Source File: c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config    Line: 198
Assembly Load Trace: The following information can be helpful to determine why the assembly 'tu' could not be loaded.

=== Pre-bind state information ===
LOG: DisplayName = tu
 (Partial)
LOG: Appbase = file:///c:/inetpub/wwwroot/tu
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: tu
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/tu/2d49e761/ad5bdfc7/tu.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/tu/2d49e761/ad5bdfc7/tu/tu.DLL.
LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/tu/bin/tu.DLL.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: tu, Version=1.0.2418.27800, Culture=neutral, PublicKeyToken=null
 
Пытался загружать библиотеку посредством LoadLibrary(), тоже такие же ошибки.
Может кто мне может подсказать возможно вообще то , что я пытаюсь сделать. Если возможно, то подсоветуйте. Буду благодарен.Berentan
...
Рейтинг: 0 / 0
Вопрос знатокам
    #33919751
См. DllImportAttribute.Все должно быть просто, очень просто, настолько просто - насколько это возможно!
 Мой блог Возможно на твой вопрос уже есть ответ? FAQ
...
Рейтинг: 0 / 0
2 сообщений из 2, страница 1 из 1
Форумы / ASP.NET [игнор отключен] [закрыт для гостей] / Вопрос знатокам
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]