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

VS2005 Whidbey Beta 1 FileLoadException when loading assembly

Im at a loss on where to proceed next. I wonder if anyone can help
me.

I have a managed C++ DLL is basically a thin wrapper around several
unmanaged classes. This DLL builds fine.

In my main C# application I have setup a project reference to this
DLL.
Im able to reference these managed .DLL classes from within my code
without problem.

However, the application runs fine up until the point where I first
access the the DLL, I get a FileLoadException.

The only useful information that this exception provides me, is the
following:

"Error while loading file 'RTAudio, Version=1.0.1724.42384,
Culture=neutral, PublicKeyToken=null'. For more details, check for an
inner exception."

Data: System.Collections.ListDictionaryInternal
InnerExeception: "One or more arguments are invalid"

From what I can tell. The Fuslogvw.exe log indicates a good load:

------------------------------------------------------------------------
*** Assembly Binder Log Entry (21/09/2004 @ 22:31:19) ***

The operation was successful.
Bind result: hr = 0x0. The operation completed successfully.

Assembly manager loaded from:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.40607\msco rwks.dll
Running under executable
c:\Sequencer\RTAudioTest\bin\Debug\RTAudioTest.vsh ost.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: User = TRINITY\Dan
LOG: DisplayName = RTAudioTest, Version=1.0.1725.38566,
Culture=neutral, PublicKeyToken=null
(Fully-specified)
LOG: Appbase = file:///c:/Sequencer/RTAudioTest/bin/Debug/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = RTAudioTest.vshost.exe
Calling assembly : vshostutil, Version=8.0.1200.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a.
===
LOG: This bind is in default load context.
LOG: No application configuration file found.
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v2.0.40607\conf ig\machine.config.
LOG: Policy not being applied to reference at this time (private,
custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL
file:///c:/Sequencer/RTAudioTest/bin/Debug/RTAudioTest.dll.
LOG: Attempting download of new URL
file:///c:/Sequencer/RTAudioTest/bin/Debug/RTAudioTest/RTAudioTest.dll.
LOG: Attempting download of new URL
file:///c:/Sequencer/RTAudioTest/bin/Debug/RTAudioTest.exe.
LOG: Assembly download was successful. Attempting setup of file:
c:\Sequencer\RTAudioTest\bin\Debug\RTAudioTest.exe
LOG: Entering run-from-source setup phase.
LOG: Binding succeeds. Returns assembly from
c:\Sequencer\RTAudioTest\bin\Debug\RTAudioTest.exe .
-------------------------------------------------------------------------

Any help would be much appreciated.

Regards,
Daniel Mori
Jul 21 '05 #1
4 1700
Bump. Anyone? even any hints. I can provide other data if need be.

Thankyou.
Jul 21 '05 #2
Daniel,

Probably because there are special Beta testing newsgroups.

Whidbey groups:
http://communities.microsoft.com/new...sp?icp=whidbey

Infos on how to view these groups with an NNTP news client:
http://communities.microsoft.com/new...elcomePage.htm

I hope you find your answer there,

Cor
Jul 21 '05 #3
Thankyou for your response.
I've posted this message on the whidbey newsgroups that you suggested.

I posted the problem here, as I cannot confirm if this is a whidbey
specific problem, General .net problem, or plain old user error.

however, my changes of a response has just doubled. So thankyou.
Jul 21 '05 #4
I managed to solve my problem.

I needed to set my mixed C++ DLL to a 'Resource only DLL'..../NoEntry.

However, after this, I got an Assertion in dbgheap.c...."pUserData != null".

I fixed this by using /include "__DllMainCRTStartup@12"

Works fine now
Jul 21 '05 #5

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

Similar topics

0
by: Don Stevic | last post by:
I am running VS2005 and using VSTO for Word. I keep getting this error saying that there is no source code available for this location when I try and run this application. I am going to...
16
by: clintonG | last post by:
I haven't installed VS2005 B2 yet. My main concern is installing VS2005 B2 on the XP Pro machine where VSN2003 already exists. Am I asking for trouble? Your comments... <%= Clinton Gallagher
6
by: Ken Varn | last post by:
I am trying to remote debug a C# application but the debugger is reporting the following exception: An unhandled exception of type 'System.IO.FileLoadException' occurred in Unknown Module....
5
by: Andre Lorbach | last post by:
Hi all, I hope I picked up the right group ;) A few days ago I installed the VS2005 Beta and started playing with it. First of all the (Profile Guided Optimizations) PGO Feature looks very...
5
by: rogsonl | last post by:
My computer was moved last week, and the company changed the network groups we work on. As a result, one of the main benefits from Whidbey (database connectivity) no longer works. Situation: 1....
4
by: Daniel Mori | last post by:
Im at a loss on where to proceed next. I wonder if anyone can help me. I have a managed C++ DLL is basically a thin wrapper around several unmanaged classes. This DLL builds fine. In my...
0
by: Chertzy B | last post by:
Datasets in Whidbey (Beta 2) contain a namespace property suggesting that it is possible to web enable them. However, it seems very difficult to do this. Take the following scenario 3...
3
by: Doug | last post by:
I'm having problems w/ the VS2005 debugger with C#. It blows past any breakpoints in even the simplest "Hello World" console application. I can't do any step-by-step debugging. I've provided the...
2
by: scarleton | last post by:
A coworker and I have spent the last day and a half trying to track down this bug in our code. We found the solution and thought we might post it to help others out... The setup: Class...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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: 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...

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.