473,386 Members | 1,698 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,386 software developers and data experts.

MC++ impliciting loading native DLL

I have developed a MC++ business component (named PWSNetBridge.dll) which
utilizes an exported class resident within a separate native DLL (named
PWSWinBridge.dll). This exported class is made visible via a
__declspec(dllexport) declaration.... so the separate DLL is implicitly
loaded.

If I write a C# test program to invoke PWSNetBridge.dll everything works
fine. I place both PWSNetBridge.dll and PWSWinBridge.dll within the same
directory as the C# test program and everything works fine.

On the other hand, if I invoke PWSNetBridge.dll from a ASP.NET application
and I place PWSNetBridge.dll and PWSWinBridge.dll into the ASP.NET
application's "bin" directory, there is a failure loading the
PWSNetBridge.dll assembly. If within PWSNetBridge.dll I comment out
references to the PWSWinBridge.dll class... everything works fine..... so the
problem has been isolated to the PWSWinBridge.dll native DLL that is
implicitly loaded.

Help !!!

See the following...

Source File:
c:\windows\microsoft.net\framework\v1.1.4322\Confi g\machine.config Line:
198

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'PWSNetBridge' could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = PWSNetBridge
(Partial)
LOG: Appbase = file:///c:/inetpub/wwwroot/aspx/PasswordSafeStoreWeb
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: PWSNetBridge
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/aspx_passwordsafestoreweb/027cc01d/9c8df954/PWSNetBridge.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/aspx_passwordsafestoreweb/027cc01d/9c8df954/PWSNetBridge/PWSNetBridge.DLL.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/aspx/PasswordSafeStoreWeb/bin/PWSNetBridge.DLL.
LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Post-policy reference: PWSNetBridge, Version=1.0.1736.37042,
Culture=neutral, PublicKeyToken=null

--
Philip
Nov 16 '05 #1
0 998

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

Similar topics

8
by: Ted Miller | last post by:
Hi folks, I'm looking at moving a large base of C++ code to .Net under tight time constraints. The code runs in mission-critical environments, and I am extremely concerned about the loader lock...
5
by: Scott Chang | last post by:
Hi all, I copied a set of VC++ version 6 source code of the 'cppdll'(2 projects) from a website and put the cppdll.cpp, cppdll.def, cpp.h, (as the 1st project) and test.cpp (as the 2nd project)...
1
by: Jannis Linxweiler | last post by:
Hi guys! I'm fairly new to managed C++, so I hope someone can help me. I've got a Problem with the native C++ types. What I did is using an jagged array of double in my managed app. The...
0
by: Eric Twietmeyer | last post by:
Hello, Am I mistaken in thinking that if I have a mc++ dll that I should be able to link against it (so long as it has exported symbols via declspec(dllexport)) in an unmanaged application? I...
2
by: tzvika.visman | last post by:
I write a MC++ wrapper for our company internal SDK that wrote in C++ native code for writing application with this SDK over C# and other .NET languages and most of my SDK API function return a...
1
by: John | last post by:
Hi, I tried to load a mixedmode dll (MC++) with AppDomain.Load(Byte ) in a C# Client. During the Load Process I got the following Exception: System.IO.FileLoadException: Ausnahme von...
2
by: gauss | last post by:
Hi, I am using VS2003.NET. When /clr option is activated, /MT(d) is automatically chosen (just as said in the doc). Can I changed that to /MD(d)? Knowing that in VS2005 /MD is chosen by default....
8
by: WebSnozz | last post by:
I have an application written in C that does a lot of low level stuff. It does a lot of things like casting from void*'s. I want to create a new GUI for it in either C# or MC++, but reuse the...
8
by: STG | last post by:
Greetings, My group has an SDK that was developed 5 years ago with VC++ 6. Over the last years, the requests for a VS.NET SDK has reached critical mass and I am now in the process of doing that....
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.