C # Please specify assembly explicitly in type name

I have an umbraco website where I want to add fileuploader from a separate VS working project. I added it to the umbraco VS project with the addition of an existing project.

Then I moved the code from default.aspx to usercontrol to add it to my umbraco.

But when I try to download some files, I get 500 errors. In my event viewer, I have the following 2 exceptions:

Exception message: the type "jQueryUploadTest.FileTransferHandler" is ambiguous: it can be obtained from the assembly "C: \ UmbracoSites \ sitename \ sitename \ bin \ sitename.DLL" or from the assembly "C: \ UmbracoSites \ sitename \ sitename \ bin \ jQueryUpload .DLL. Please specify the assembly explicitly in the type name.

Invalid directory specified for caching compressed content. C: \ Users \ name \ AppData \ Local \ Temp \ iisexpress \ IIS Temporary Compressed Files \ Clr4IntegratedAppPool. Static compression is disabled.

What does it mean? How does this come from sitename.DLL file when dll etc. They are copied from jQueryUploadTest during assembly and have nothing to do with sitename.DLL.

0
source share
1 answer

You probably have the QueryUploadTest.FileTransferHandler type in both assemblies.

Make sure the sitename.dll file does not have this type name or, to make sure that this problem does not occur at another time, change the namespace of one of the projects.

, , .

+3

Source: https://habr.com/ru/post/1780754/


All Articles