Error on particular server and not on another one.
Hi all,
I encountered a problem, where I have deployed the same website on two different servers: one of out client's server and the other is a smarterasp.net server.
On the smarterasp.net server, the site is running ok; No Errors
But on our client's server, the site is rendering an error related when invoking such extensions methods like .Count(). In fact, macro partials are not being rendered where there the sitemap, breadcrumbs, navigation etc. An error is being thrown.
Cannot invoke a non-delegate type
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot invoke a non-delegate type
Source Error:
I have checked the the correct .NET versions is installed as wel..
It can be many different things I suppose - Perhaps some files are missing from the deploy, which triggers the error? Perhaps permissions have not been setup correctly? Perhaps you just need to rebuild the examine index... What specs does the client server have versus the smarterasp.net server?
Permissions, I don't think so because the error could be much friendly to tell that something related to denial. Files are the same as on the smarterasp.net, for sure, so, I don't think so.
Why could rebuilding the examine index affect this error? And how can do that pls?
For rebuilding the examine index, go to the Developer section when you are in there look at the dashboard on the right side, in the top there are a tab called Examine Management.
I'm not sure if it can fix the issue - But sometimes it's the most unexpected stuff that fixes weird issues...at least that's my experience. If I knew your environment better and could access it it would be easier to be more specific in suggesting what could be wrong. The only thing I know is that there is something on your clients server that is not working the same as on your smarterasp host.
So it can be because of missing files in the deploy for some reason or it could be a weird examine issues if you have deployed some local indexes, which perhaps can mess things up. It's always a good idea to double check these things when it all acts up.
Oh yeah and what Dennis describes above is how where you'll find the reindexing options.
I would suggest you to contact your hosting provider and ask them to install it for you. From the error message, it seems the problem comes from your code. If they can successfully install umbraco for you, it means that you need to check your code again.
Error on particular server and not on another one.
Hi all,
I encountered a problem, where I have deployed the same website on two different servers: one of out client's server and the other is a smarterasp.net server.
On the smarterasp.net server, the site is running ok; No Errors
But on our client's server, the site is rendering an error related when invoking such extensions methods like .Count(). In fact, macro partials are not being rendered where there the sitemap, breadcrumbs, navigation etc. An error is being thrown.
Cannot invoke a non-delegate type
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot invoke a non-delegate type
Source Error:
I have checked the the correct .NET versions is installed as wel..
Do you have any idea what might be the problem?
Thank you in advnace.
Kind Regards
Hi Simon
It can be many different things I suppose - Perhaps some files are missing from the deploy, which triggers the error? Perhaps permissions have not been setup correctly? Perhaps you just need to rebuild the examine index... What specs does the client server have versus the smarterasp.net server?
/Jan
Hi Jan,
Permissions, I don't think so because the error could be much friendly to tell that something related to denial. Files are the same as on the smarterasp.net, for sure, so, I don't think so.
Why could rebuilding the examine index affect this error? And how can do that pls?
Thank you.
Hi Simon
For rebuilding the examine index, go to the Developer section when you are in there look at the dashboard on the right side, in the top there are a tab called Examine Management.
Hope this helps,
/Dennis
Hi Simon
I'm not sure if it can fix the issue - But sometimes it's the most unexpected stuff that fixes weird issues...at least that's my experience. If I knew your environment better and could access it it would be easier to be more specific in suggesting what could be wrong. The only thing I know is that there is something on your clients server that is not working the same as on your smarterasp host.
So it can be because of missing files in the deploy for some reason or it could be a weird examine issues if you have deployed some local indexes, which perhaps can mess things up. It's always a good idea to double check these things when it all acts up.
Oh yeah and what Dennis describes above is how where you'll find the reindexing options.
/Jan
Hi Dennis,
Do I need to rebuild each index?
Jan, this is the link:- new.mdemajo.com
Kind Regards
Thank you
Hi Simon
Yes try rebuilding everything.
/Jan
Hi Simon
I was thinking about server access to see how it was setup - But that's probably not something you can give me anyway :)
But there must be a setting missing somewhere or some code that is not deployed correctly if the server setup is identical.
/Jan
No success for the indexes :(
I will try to republish it again.
Jan, do you have an idea to this please, to deploy with VS? - https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/63201-Trying-to-delete-the-umbracoInstall-Folder
So I can exclude to upload via FTP.
Thank you.
Hi Simon,
I would suggest you to contact your hosting provider and ask them to install it for you. From the error message, it seems the problem comes from your code. If they can successfully install umbraco for you, it means that you need to check your code again.
See also http://issues.umbraco.org/issue/U4-6438
is working on a reply...