Cannot Compile- Compiler Error Message: CS0010: Cannot declare a namespace and a type both named 'a'

Hi, Administrator

I always get this problem. I already use the hot fix but no use. Please help me to solve it.
I’m looking forward to hearing from you. Thank you.

This is the important question that decides whether or not I can buy the product. I disappointed of the support system. No answer 'til now. How can I buy the porduct that collapse my whole website?

Dear AZMember,

I’m sorry of course but I didn’t answer because it’s not a problem of Aspose.PowerPoint.
Please rename your namespace and don’t use namespaces with only one or two characters as name. It’s a very bad practice.

Thank you for your answer. But I never make a name with just 1 or 2 character. I found that your component conflict with a DLL I used. It’s O2S.Components.PDF4NET.dll. Maybe this DLL has a namespace ‘a’.

Dear AZMember,

You can try to make aliases for pdf4net or aspose.powerpoint namespaces. Google has some solutions for that.
Another possible solution is don’t use “using” keywords for one of components.

I just made small experiment, added Aspose.Project and Aspose.PowerPoint to the same project and compiled without any problems.
Both components have “a” namespace because of obfuscation but no any conflicts…

Thank you very much. I’ll try. The error not happen when you build the project, but when you browse the website.

It happen right at my login page, even though I haven’t reach the page using Aspose.Powerpoint nor Pdf4Net. I tried to remove one of them, and it was ok. Whenever I add the two, I often get the error.

Dear AZMember,

One more idea. Do you have last version of Pdf4Net?
I’ve downloaded evaluation version from ComponentSource, combined our demo and demo from Pdf4Net installation, compiled and run (it opens and saves ppt and generates pdf) and without any conflicts again.
By the way, downloaded Pdf4Net doesn’t have “a” namespaces or classes.

Dear AZMember,

Did you try another version of pdf4net. I tested with 2.6.1.
Can I check part of your project where you use both components?

I haven't try with the newest PDF4NET version yet. I will try and tell you the result later. Thank you very much. (When I finished the testing on your component, I will buy it. It's real cool.)

I am having the same problem with Aspose.Words.dll version

CS0010: Cannot declare a namespace and a type both named 'ᐚ'

c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\qa2\53401cc3\cbf522c7\assembly\dl2\d9a345be\01468914_3f60c701\aspNetEmail.DLL: error CS0010: Cannot declare a namespace and a type both named 'ᐚ'
c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\qa2\53401cc3\cbf522c7\assembly\dl2\69752c69\fbcdb114_3f60c701\Aspose.Words.DLL: (Location of symbol related to previous error)

It is conflicting with aspNetEmail.DLL It is failing just because I referenced it in my ASP.NET project. When auto generating the global.asax file.

I re-produced this problem by deleting all temporary ASP.NET files under this folder.

c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files folder.

Please help.

Dear kchen888,

Please provide me your source code. I will look into it and try to resolve it.