ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message    Subscribe to forumSubscribe

  netchardir.dll referencing mscorlib version 0.0.0.0
Posted by Willy Chua Ong on Apr-16-2012 13:28
Hi,

I'm trying to use smart assembly from red gate to obfuscate a .net project that uses the netchardir.dll

But the smart assembly software complaints that the project is referencing an unrecognized version of mscorlib version 0.0.0.0.  After some investigation, it is found that the module that is referencing mscorlib version 0.0.0.0 is netchardir.dll  All our other modules are referencing version mscorlib 2.0.0.0.  And we are able to use smart assembly on our modules as long as they don't reference netchardir.dll

I wonder if you guys can update your netchardir.dll by putting in a valid mscorlib version number there.  Same thing happens to the System.* that are being referenced in netchardir.dll

Thanks,
--Willy

  Re: netchardir.dll referencing mscorlib version 0.0.0.0
Posted by Peter Kwan on Apr-16-2012 14:23
Hi Willy,

ChartDirector assembly can work with all versions of .NET (from 1.x to 4.x) and does not request any particular .NET version. I think the .NET system by default reports it as 0.0.0.0. It should be a vaild version number. It works normally with any version of Visual Studio, ASP.NET, etc..

If we hard coded the .NET version to be 2.0.0.0, there can be version conflicts if someone used our assembly in certain Visual Studio 2010 .NET 4.x projects. (This problem can be manually resolved by configuring the VS 2010 project, but it is not as clean if ChartDirector does not hard coded any particular .NET version.)

If you must use version 2.0.0.0, you may use ildasm to disassemble our assembly. You may open it with a text editor. Right at the top, you can see the version dependencies. You can modify them to 2.0.0.0 if you like, then save the file, and use ilasm to compile it back to a DLL.

Hope this can help.

Regards
Peter Kwan

  Re: netchardir.dll referencing mscorlib version 0.0.0.0
Posted by Willy Chua Ong on Apr-17-2012 12:47
Hi Peter,
Got it.  Thanks for the quick response.
--Willy