More than one type wants to be a model for content type File.
Hello,
So i'm pretty new to Umbraco. I made a part of my site yesterday and all worked well. This morning I open the project and get a lot of errors. After resolving these and running my project I get this error when running the program and I don't know what it means or how i can fix it.
More than one type wants to be a model for content type File
How I made the project:
Make a new empty .net app
Copy all the files from umbraco
Add my sql db
I made the models
Went to sleep
Got up openend Visual Studio and included all the folders in the project
Got lot's of errors -> Had to add umbraco.dll back to register
Got up openend Visual Studio and included all the folders in the project
This is probably the issue.
Newer versions of Umbraco use modelsbuilder to create strongly-typed models of your document types.
Depending on the configuration of your modelsbuilder (in web.config) you might have a dll that contains all your models somewhere and a folder containing the generated .cs files that get build into your webproject.dll
Do a search on oneofyourdoctypenames.generated.cs and remove the include of the folder containing that file.
More than one type wants to be a model for content type File.
Hello,
So i'm pretty new to Umbraco. I made a part of my site yesterday and all worked well. This morning I open the project and get a lot of errors. After resolving these and running my project I get this error when running the program and I don't know what it means or how i can fix it.
More than one type wants to be a model for content type File
How I made the project:
Any help would be realy appreciated.
Hey Pieter, welcome to Umbraco!
Got up openend Visual Studio and included all the folders in the project
This is probably the issue. Newer versions of Umbraco use modelsbuilder to create strongly-typed models of your document types.
Depending on the configuration of your modelsbuilder (in web.config) you might have a dll that contains all your models somewhere and a folder containing the generated .cs files that get build into your webproject.dll
Do a search on oneofyourdoctypenames.generated.cs and remove the include of the folder containing that file.
Hey Sven, Thank you for the answer. However this did not solve the issue. I ended up starting over. Thanks anyway!
I am seeing this error now and cannot access back end. Is there a way to get on to fix this? I am new to Umbraco
is working on a reply...