Unable to Upgrade Database Schema
Hello Everybody,
I am having some issues with a module that I am writing and basing off of the SDK Product module. I have basically copied everything from the products module and changed what I needed to change to get the requirements that I need for my module. Mostly I changed back end create looks and added several fields.
When I try running the application I am getting an error in the manager file (GetManager(string providerName)) and the Message is:
Unable to upgrade database schema metadataSource provided by 'Promos.Data.Implementation.OpenAccessProvider': Failed to create relational class of
class 'Promos.Model.PromoItem'.
"Failed to create relational class of class 'Promos.Model.PromoItem'."
"Input string was not in a correct format."
Hello Rushman,
Is it possible that you have omitted to provide fluent mapping for the PromoItem
class. It will be easier to investigate if you attach your project and so we can take a closer look.
Kind regards,
Nikolay Datchev
the Telerik team
Hey Nikolay,
Thank you for your response. After many issues with creating a module, I decided to try creating a module in a different way. I am following Josh Morales' series on creating a basic page based module and have a semi working module. I have another forum post that asks a question about my current issue.
I have been beating my head against the wall with this module configuration and I am trying everything that I can to get it working.
Thank you,
Tim
Hi Rushman,
It seems Ivan Dimitrov from support has given you a hint on this forum post - did it work for you.
Regards,
Nikolay Datchev
the Telerik team
Hey Nikolay,
Thank you for your reply. What forum post are you talking about? And I would love to know how I can attach my solution to a post (as was requested in your first post). All I can attach to a forum post is an image (or images) that totals less than 2 MB.
As for Ivan's post, I have not tried that yet (other work got in my way) but in the mean time I have actually gone a different way and I am using a standard ASP.Net ListView to do my listing/editing/deleting and inserting. And that is working fine. I will try Ivan's suggestion on the next module that I need to create (probably next week) and reply to his post with the results.
Thank you for responding.
Tim
Hello,
Since the website you have is quite large you can set an FTP that we can use to download the project or provide an external link from where we can download it. Then you can send the details using our support system. Just to let you know that the support system allows attachments up to 20 MB.
Best wishes,
Ivan Dimitrov
the Telerik team
Was this ever resolved? I am recieving this error as well.
Also, I am sick to death of always having to email my solution to you guys to figure issues out, how about some more useful error messages?
Hi Lewis,
In cases when you use a custom implementations like this one in the initial post(Failed to create relational class of class 'Promos.Model.PromoItem'.
)
It would be hard to tell you what is wrong with your code and why you get error related to the data provider responsible to persist data for a custom objects without having the project locally.
Kind regards,
Ivan Dimitrov
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>
EDIT: Duplicate post, see below....
I am having an identical issue in my code. Interestingly enough I am also implementing a custom module for promos with a "PromoItem". I had everything working perfectly, until I tried to add another content type/item (PromoBundleItem) to the same module (and project in visual studio). I created duplicate classes and files for this new content item (PromoBundle) except for the "Data\PromosDataProvider" class/file, "Data\Implementation\OpenAccessDataProvider" and FluentMetadataSource as I received some cryptic error from Sitefinity about me declaring something like "ContentLinks" metadata twice. I also only have one Config file (Configuration\PromoConfig.cs)... I also modified by PromoModule.cs file to include the adding of new pages etc. for my new PromoBundle Content Item.
I don't see anywhere where I didn't implement the fluent stuff like Ivan suggested for another user so I am at a loss. I can paste some code, if desired but not sure if it is overkill to paste everything or just code chunks of importance. Let me know what code would be desireable to see and I will post it. Thanks for any help!!!
Errors that are actually descriptive would be nice - as would accurate documentation. We are looking at a free\opensouce product that is very similar to Sitefinity - so far it is faster, easier to manage, and even though there is no official support, the community is faster at responding with useful information even faster than Sitefinity paid support. May just start porting this over since i have had ZERO luck with the support that was actually paid for.