CA0055 error when using fxcop

Hi

I recently downloaded the new version of Aspose Total. The Cells Version is 4.1.2.0.

When I try to use FxCop to run Code Analysis on my web site, I got

CA0055 : Could not load Aspose.Cells.dll. C:\Projects\TestWebSite1\
FxCopCmd.exe returned error code 8.

Does any one know how to fix this error. Last time I checked it occurs because the external DLL is composed with a different version of .Net than the version I have. The version I have is .Net 2.0.50727. I am using Visual Studio 2005 Team Suite.

Thanks in advance

Siva

Hi Siva,

Are you using the Aspose.Cells for .net 2.0?

Yes, I am using ASP2.0 DLL. I noticed that there are 2 directories and I took the DLL from 2.0 directory.

Hi,

We will figure out your case and response you soon.

Thank you.

Please try this attached dll.

Hi Lawrence,

I still got the same error. This is very easy to recreate. Just create a new WebSite using Visual Studio 2005 and add reference to Aspose.Cells.dll. Build web site and run code analysis. You get this error. Please let me know if you have any fix for this.

Thank you very much for your help

Siva

Hi Siva,

This may be a configuration problem. I don't know how to run code analysis in my visual studio 2005. I use the following ways to analysis code:

1. Install Fxcop v1.3.5.

2. Build and publish a new website as your description.

3. Run Fxcop

4. Create a Fxcop project and add assemblies to this project.

5. Analysis code

Hi Laurence,

Using FxCop 1.3.5 you can not add web site as target. In Visual Studio 2005 Build Menu you see "Run Code Analysis On Web Site" menu item when you select a web site project. This is what I am using. Using FxCop 1.3.5 I tried to Code Analysis Aspose.Cells.Dll. I was prompted to choose the DLL location of mscorlib.dll based on .NET v1.0.3705 version. May be this is the problem. You need to use the new version of .NET. Please let me know if this is os any help.

Thanks

Siva

In my VS.net 2005 I don't find this "Run Code Analysis On Web Site" option. So I just run FxCop 1.3.5 with Aspose.Cells.dll and deployed web application dll. I don't find the problem you mentioned here.

Please make sure that your application uses this attached dll, not in setup package.

Hi Laurence,

Sorry for the confusion. That fixed it. Please let me know if this DLL is the release version or if the changes will be incorporated into release version.

Thank you very much for your help

Siva

Hi Siva,

A release version will be published in 1-2 days.

Hi Laurence,

I downloaded a new version of Aspose Total on 04/23/2007. This version of aspose cells still did not have the fix. Can you please let me know when you are planning to release the new version.

Thanks

Siva

Hi Siva,

Well, we released the next version (4.2.0.0 ) of Aspose.Cells on 04/23/2007. Did you download Aspose.Total version (1.4.0.5). I think you may try download the new Aspose.Total version (1.4.0.6) hotfix as it is available now.

Thank you.

Hi Amjad,

I downloaded the new version 4/30/2007 and still getting the same error. The size of the DLL also did not match to the dll that you gave me in this post. The size of the DLL that came with the installation is (2,097,152 bytes). The size of the dll that you gave me in this post is (2,441,216 bytes). Please let me know if you need any more details.

Thanks

Siva

Hi Siva,

Do you download v4.2? After you install it, you will see a Net2.0 folder under Bin folder. It includes a dll with size of 1,978,368 bytes (we remove some redudant code).

Hi Laurence,

I installed based on the link that you have included. The size of the DLL in 2.0 directory is 2,097,152 bytes. The size of the DLL in 1.0 directory is 1,175,552 bytes. When I ran FxCop on this DLL it asked me the location of .Net 1.0.3705. Please let me know if you need any more information.

Thanks

Siva

What's the OS of your machine? Do you get the same CA0055 error with the .net 2.0 dll?

I use Winxp and the 2.0 dll size is not 2,097,152 but 1,978,368 .

Could you please zip and post your installed 2.0 dll here? And please make sure that you deployed the new dll, not the old one.

I have windows XP Professional with Service Pack 2.

Yes I still am getting the same error (CA0055) with .Net 2.0 dll that I attached.

Please let me know what you found.

Thanks

Siva

Hi Siva,

I think you are still using the older dll. The Aspose.Cells version, which you sent is 4.1.2.0 and not the latest 4.2.0.0. Attached is the latest one for .Net2.0. Please try it and tell us if it is fine now.

Thank you.

Hi Amjad,

This DLL works. But again we go back to original problem. Can you please tell me how to download the release version of aspose cells and have this dll in the distribution (instead of just using a DLL that is not part of a release build).

Thanks

Siva