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

The "ResolveNativeReference" task failed unexpectedly


I have a C++ project (assembly) and a C# project (client that uses the C++
assembly). These projects used to work when compiled under VS 2003 but when
I upgraded my projects to VS 2005 I got the following error when I compile
the C# client,

----------------------------------------------------------------------------
--------------------------------------------
The "ResolveNativeReference" task failed unexpectedly.
System.ArgumentNullException: Parameter "metadataValue" cannot be null.
at Microsoft.Build.Shared.ErrorUtilities.VerifyThrowA rgumentNull(Object
parameter, String parameterName)
at Microsoft.Build.Utilities.TaskItem.SetMetadata(Str ing metadataName,
String metadataValue)
at
Microsoft.Build.Tasks.ResolveNativeReference.Extra ctFromManifest(ITaskItem
taskItem, String path, Hashtable containingReferenceFilesTable, Hashtable
containedPrerequisiteAssembliesTable, Hashtable containedComComponentsTable,
Hashtable containedTypeLibrariesTable, Hashtable
containedLooseTlbFilesTable, Hashtable containedLooseEtcFilesTable)
at Microsoft.Build.Tasks.ResolveNativeReference.Execu te()
at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask (ExecutionMode
howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup
projectPropertiesAvailableToTask, Boolean& taskClassWasFound)
----------------------------------------------------------------------------
--------------------------------------------

I searched the MSDN forum and found another guy had the same problem
(http://forums.microsoft.com/msdn/Sho...isthread=false
&siteid=1&authhash=300d160e0f32a3abd006853e6246666 0da83fab9&ticks=6328166038
53148671
). Any one seen this and know how to fix it?

Thanks.
Apr 26 '06 #1
6 2710
What happens if you remove the referene and add it again?

"Tony Wong" <th*****@nortel.com> wrote in message
news:uk**************@TK2MSFTNGP05.phx.gbl...

I have a C++ project (assembly) and a C# project (client that uses the C++
assembly). These projects used to work when compiled under VS 2003 but
when
I upgraded my projects to VS 2005 I got the following error when I compile
the C# client,

----------------------------------------------------------------------------
--------------------------------------------
The "ResolveNativeReference" task failed unexpectedly.
System.ArgumentNullException: Parameter "metadataValue" cannot be null.
at Microsoft.Build.Shared.ErrorUtilities.VerifyThrowA rgumentNull(Object
parameter, String parameterName)
at Microsoft.Build.Utilities.TaskItem.SetMetadata(Str ing metadataName,
String metadataValue)
at
Microsoft.Build.Tasks.ResolveNativeReference.Extra ctFromManifest(ITaskItem
taskItem, String path, Hashtable containingReferenceFilesTable, Hashtable
containedPrerequisiteAssembliesTable, Hashtable
containedComComponentsTable,
Hashtable containedTypeLibrariesTable, Hashtable
containedLooseTlbFilesTable, Hashtable containedLooseEtcFilesTable)
at Microsoft.Build.Tasks.ResolveNativeReference.Execu te()
at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask (ExecutionMode
howToExecuteTask, Hashtable projectItemsAvailableToTask,
BuildPropertyGroup
projectPropertiesAvailableToTask, Boolean& taskClassWasFound)
----------------------------------------------------------------------------
--------------------------------------------

I searched the MSDN forum and found another guy had the same problem
(http://forums.microsoft.com/msdn/Sho...isthread=false
&siteid=1&authhash=300d160e0f32a3abd006853e6246666 0da83fab9&ticks=6328166038
53148671
). Any one seen this and know how to fix it?

Thanks.

Apr 27 '06 #2
I did that and I am still getting the same error.

"Marcus Heege" <NO****@heege.net> wrote in message
news:eU**************@TK2MSFTNGP04.phx.gbl...
What happens if you remove the referene and add it again?

"Tony Wong" <th*****@nortel.com> wrote in message
news:uk**************@TK2MSFTNGP05.phx.gbl...

I have a C++ project (assembly) and a C# project (client that uses the C++ assembly). These projects used to work when compiled under VS 2003 but
when
I upgraded my projects to VS 2005 I got the following error when I compile the C# client,


--------------------------------------------------------------------------

--
--------------------------------------------
The "ResolveNativeReference" task failed unexpectedly.
System.ArgumentNullException: Parameter "metadataValue" cannot be null.
at Microsoft.Build.Shared.ErrorUtilities.VerifyThrowA rgumentNull(Object parameter, String parameterName)
at Microsoft.Build.Utilities.TaskItem.SetMetadata(Str ing metadataName,
String metadataValue)
at
Microsoft.Build.Tasks.ResolveNativeReference.Extra ctFromManifest(ITaskItem taskItem, String path, Hashtable containingReferenceFilesTable, Hashtable containedPrerequisiteAssembliesTable, Hashtable
containedComComponentsTable,
Hashtable containedTypeLibrariesTable, Hashtable
containedLooseTlbFilesTable, Hashtable containedLooseEtcFilesTable)
at Microsoft.Build.Tasks.ResolveNativeReference.Execu te()
at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask (ExecutionMode
howToExecuteTask, Hashtable projectItemsAvailableToTask,
BuildPropertyGroup
projectPropertiesAvailableToTask, Boolean& taskClassWasFound)


--------------------------------------------------------------------------

--
--------------------------------------------

I searched the MSDN forum and found another guy had the same problem
(http://forums.microsoft.com/msdn/Sho...isthread=false &siteid=1&authhash=300d160e0f32a3abd006853e6246666 0da83fab9&ticks=6328166038 53148671
). Any one seen this and know how to fix it?

Thanks.


Apr 27 '06 #3
I have been able to repoduce your problem. It is very likely that your
problem is related to the CRT libraries. In VS2005, these are deployed as
native assemblies (in the %windir%\WinSxS directory). To be able to load the
CRT dlls, you need a native manifest. If you create a new C++/CLI class
library project, the project settings ensure that such a native manifest
will be embedded. If you port pojects from older versions, you will have to
update your porject settings for the manifest tool. Create a new C++/CLI
class lib project and update your old project settings for the manifest tool
according to the new project settings. Let me know if this does not solve
the problem.

Marcus Heege

"Tony Wong" <th*****@nortel.com> wrote in message
news:up**************@TK2MSFTNGP03.phx.gbl...
I did that and I am still getting the same error.

"Marcus Heege" <NO****@heege.net> wrote in message
news:eU**************@TK2MSFTNGP04.phx.gbl...
What happens if you remove the referene and add it again?

"Tony Wong" <th*****@nortel.com> wrote in message
news:uk**************@TK2MSFTNGP05.phx.gbl...
>
> I have a C++ project (assembly) and a C# project (client that uses the C++ > assembly). These projects used to work when compiled under VS 2003 but
> when
> I upgraded my projects to VS 2005 I got the following error when I compile > the C# client,
>


--------------------------------------------------------------------------

--
> --------------------------------------------
> The "ResolveNativeReference" task failed unexpectedly.
> System.ArgumentNullException: Parameter "metadataValue" cannot be null.
> at Microsoft.Build.Shared.ErrorUtilities.VerifyThrowA rgumentNull(Object > parameter, String parameterName)
> at Microsoft.Build.Utilities.TaskItem.SetMetadata(Str ing
> metadataName,
> String metadataValue)
> at
> Microsoft.Build.Tasks.ResolveNativeReference.Extra ctFromManifest(ITaskItem > taskItem, String path, Hashtable containingReferenceFilesTable, Hashtable > containedPrerequisiteAssembliesTable, Hashtable
> containedComComponentsTable,
> Hashtable containedTypeLibrariesTable, Hashtable
> containedLooseTlbFilesTable, Hashtable containedLooseEtcFilesTable)
> at Microsoft.Build.Tasks.ResolveNativeReference.Execu te()
> at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask (ExecutionMode
> howToExecuteTask, Hashtable projectItemsAvailableToTask,
> BuildPropertyGroup
> projectPropertiesAvailableToTask, Boolean& taskClassWasFound)


--------------------------------------------------------------------------

--
> --------------------------------------------
>
> I searched the MSDN forum and found another guy had the same problem
> (http://forums.microsoft.com/msdn/Sho...isthread=false > &siteid=1&authhash=300d160e0f32a3abd006853e6246666 0da83fab9&ticks=6328166038 > 53148671
> ). Any one seen this and know how to fix it?
>
> Thanks.
>
>



Apr 27 '06 #4
The project settings doesn't seem to make a difference. I looked into this
matter further and am now thinking the issue may be related to how the
VC2005 upgrader handles resource files. I will post more information if I
know more.
"Marcus Heege" <NO****@heege.net> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
I have been able to repoduce your problem. It is very likely that your
problem is related to the CRT libraries. In VS2005, these are deployed as
native assemblies (in the %windir%\WinSxS directory). To be able to load the CRT dlls, you need a native manifest. If you create a new C++/CLI class
library project, the project settings ensure that such a native manifest
will be embedded. If you port pojects from older versions, you will have to update your porject settings for the manifest tool. Create a new C++/CLI
class lib project and update your old project settings for the manifest tool according to the new project settings. Let me know if this does not solve
the problem.

Marcus Heege

"Tony Wong" <th*****@nortel.com> wrote in message
news:up**************@TK2MSFTNGP03.phx.gbl...
I did that and I am still getting the same error.

"Marcus Heege" <NO****@heege.net> wrote in message
news:eU**************@TK2MSFTNGP04.phx.gbl...
What happens if you remove the referene and add it again?

"Tony Wong" <th*****@nortel.com> wrote in message
news:uk**************@TK2MSFTNGP05.phx.gbl...
>
> I have a C++ project (assembly) and a C# project (client that uses the
C++
> assembly). These projects used to work when compiled under VS 2003
but > when
> I upgraded my projects to VS 2005 I got the following error when I

compile
> the C# client,
>
-------------------------------------------------------------------------

- --
> --------------------------------------------
> The "ResolveNativeReference" task failed unexpectedly.
> System.ArgumentNullException: Parameter "metadataValue" cannot be null. > at

Microsoft.Build.Shared.ErrorUtilities.VerifyThrowA rgumentNull(Object
> parameter, String parameterName)
> at Microsoft.Build.Utilities.TaskItem.SetMetadata(Str ing
> metadataName,
> String metadataValue)
> at
>

Microsoft.Build.Tasks.ResolveNativeReference.Extra ctFromManifest(ITaskItem
> taskItem, String path, Hashtable containingReferenceFilesTable,

Hashtable
> containedPrerequisiteAssembliesTable, Hashtable
> containedComComponentsTable,
> Hashtable containedTypeLibrariesTable, Hashtable
> containedLooseTlbFilesTable, Hashtable containedLooseEtcFilesTable)
> at Microsoft.Build.Tasks.ResolveNativeReference.Execu te()
> at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask (ExecutionMode
> howToExecuteTask, Hashtable projectItemsAvailableToTask,
> BuildPropertyGroup
> projectPropertiesAvailableToTask, Boolean& taskClassWasFound)
-------------------------------------------------------------------------

- --
> --------------------------------------------
>
> I searched the MSDN forum and found another guy had the same problem
>

(http://forums.microsoft.com/msdn/Sho...isthread=false
>

&siteid=1&authhash=300d160e0f32a3abd006853e6246666 0da83fab9&ticks=6328166038
> 53148671
> ). Any one seen this and know how to fix it?
>
> Thanks.
>
>



Apr 27 '06 #5
"Tony Wong" <th*****@nortel.com> wrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
The project settings doesn't seem to make a difference. I looked into
this
matter further and am now thinking the issue may be related to how the
VC2005 upgrader handles resource files. I will post more information if I
know more.


I have also made the experience that the pure existence of an external
native manifest file for a dependant dll (xxx.dll.manifest) in the output
directory can cause this problem.

Just in case...

Marcus
Apr 28 '06 #6
That's exactly that

May 23 '06 #7

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

Similar topics

2
by: Mike Fisher | last post by:
I'm seeing an error when I try to run/debug a web service. Although it doesn't happen every time, it does occur more than half of the times I hit F5. It appears to be returned by the the JIT...
10
by: Anton.Nikiforov | last post by:
Dear all, i have a problem with insertion data and running post insert trigger on it. Preambula: there is a table named raw: ipsrc | cidr ipdst | cidr bytes | bigint time | timestamp...
1
by: Wesley Gibbs | last post by:
The Steps I do to create and run my task are as follows: 1) I open up Control Center 2) From the Control Center I click Tools to open the Task Center Window 3) I create a Task and it is shown...
4
by: Zeng | last post by:
Hello, I'm wondering if anybody has seen this problem. I basically need to cycle through ~30000 db rows to update the data, I load up the id of the rows I need first, put them into ArrayList,...
0
by: Frank Siegmann | last post by:
Helllo, after installing the .NET Framework 1.1 we receiving when we try to run our ASP.NET applications : Fatal error BC2000: compiler initialization failed unexpectedly : 0xC0000005 Any ...
0
by: Rich | last post by:
I get this message when running almost every time I do an incremental compile. A full rebuild makes it go away. A subsequent incremental compile causes the problem again. I've read posts...
7
by: Rob Oldfield | last post by:
I have a pretty straightforward app that's designed to take entries from a database and create a Word template containing AutoText entries using those entries. A basic outline of the code is...
6
by: ruben | last post by:
Hi: I'm running a large database on PostgreSQL 7.1.3. 20 days ago the database failed with a threatening and not too descriptive error like: pg_exec() query failed: server closed the...
1
by: Myster Edd | last post by:
I have a strange problem that I think deals with security on SQL 2005. I have a scheduled task that runs on a Windows 2000 machine. It calls a vb script which creates a connection to SQL Server. ...
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
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?
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
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.