Object does not match target type.
I am getting the following error any time I change any code in a custom .ascx and refresh the page in sitefinity. I have to go into the admin side, open up the page and then it magically works. I could do something as simple as just add a response.write and it crashes. I've just migrated from 3.7 where this wasn't a problem. Help other posts about this haven't helped.
By the way, telerik, slightly disappointed in 4.0. 3.7 seemed way more developer friendly and got out of our way. :(
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
|
Hi Scott,
Do you use web application or website? Generally you should build the solution after making changes to the files when you work with web application.
Greetings,
Ivan Dimitrov
the Telerik team
I was pointing to the site as a Web site, so I would expect it to refresh fine. Is there a setting that I am missing in the 4.0 admin or setup? 3.7 worked fine in the method I was using now and expected 4.0 to be the same.
Hi Scott,
By default we ship Sitefinity as a web application, which means that each change to a class or control inside the application requires to build it. If this is a web site such a change are not required.
Can you replicate this issue with new website? I am not able to replicate the issue locally.
Best wishes,
Ivan Dimitrov
the Telerik team
I'm not sure what you mean, "If it's a Web site". You're telling me that it's not, that it's a Web app. So, it is the case that I need to rebuild everytime. That's fine, I guess. I mean, I think Web sites are easier to build in and I'm disappointed in the change. I think that's a step backwards, but I can see where people disagree. Whatever, at least I understand what's going on.