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

I am having the a problem with Aspose.Words.dll version 4.1.1.0

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 seems to be conflicting with aspNetEmail.DLL It is failing just because I referenced it in my ASP.NET project. When auto generating the global.asax file.

The weird part is that sometimes this work and sometimes it doesn't. I found out the most consistent way to 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.

As discussed in IM:

This problem is caused by the obfuscation tool. We are going to check with the obfuscation tool vendor if there is a fix for this, we reported this problem to them earlier too.

If that does not work, I will be able to provide you a non obfuscated build, but you might have to sign an NDA agreement first.

In the meantime try to proceed by removing a reference to aspnetemail from your project or try using aspose.words in a separate project.

The vendor of the obfuscation tool has agreed to fix the issue, so it will be fine in one of the next Aspose.Words releases. In the meantime I provided you with a build obfuscated with different settings that also solves the problem.

Hi Roman,

Can you give an idea as to which Aspose.Words release this will be available in???

Thanks,
Brett

This is fixed in Aspose.Words 4.2.1, available for download.

Hi,



We are having the same problem using version 4.1.1 of Aspose.Words.
However our support agreement has just expired and so I cannot download
the hotfix in version 4.2.1 for free.



Do you know of any other workarounds available without upgrading the component ?



Many thanks.

Hi,

I have just contacted the sales team and they stated you had renewed today. Is the issue resolved?

Yes. We upgraded to version 4.2.1 of Aspose.Words and that fixed the problem as above.