Missing using directive or assembly reference (FormDataCollection)
Hi devs,
For some reason I had to rename my project that was working fine, I rename the solution, projects and namespaces. But, after renaming I get the following error:
The error says that it´s missing using directive or assembly reference for FormDataCollection. I checked the references in my project and the reference(System.Net.Http.Formatting) for FormDataCollection is there.
If you open the references-folder in the project with the controller, you should see a broken reference - or maybe just a missing using-statement in the controller code?
Most likely the reference was made to a path that has now changed after you renamed the project. The reference may have been point at an assembly in the projects bin folder - that's a bad practice, but it occurs way to often.
If you open the references-folder in the project with the controller, you should see a broken reference - or maybe just a missing using-statement in the controller code?
With the controller and the the references folder everything is normal.
Problem solved, Visual Studio was showing that the assemblie System.Net.Http.Formatting was included in my project but when I checked the bin folder the assemblie wasn't there.
All I did was copy the assemblie from the project that was working fine and paste it into the bin folder of the new project.
Missing using directive or assembly reference (FormDataCollection)
Hi devs,
For some reason I had to rename my project that was working fine, I rename the solution, projects and namespaces. But, after renaming I get the following error:
Code
The error says that it´s missing using directive or assembly reference for FormDataCollection. I checked the references in my project and the reference(System.Net.Http.Formatting) for FormDataCollection is there.
Anyone knows how to solve this problem?
Note: I'm using Umbraco 7.2.1
Best Regards
If you open the references-folder in the project with the controller, you should see a broken reference - or maybe just a missing
using
-statement in the controller code?Most likely the reference was made to a path that has now changed after you renamed the project. The reference may have been point at an assembly in the projects bin folder - that's a bad practice, but it occurs way to often.
Hi Gregersen,
With the controller and the the references folder everything is normal.
Best Regards
Hi Devs,
Problem solved, Visual Studio was showing that the assemblie System.Net.Http.Formatting was included in my project but when I checked the bin folder the assemblie wasn't there.
All I did was copy the assemblie from the project that was working fine and paste it into the bin folder of the new project.
Best Regards
is working on a reply...