-
Notifications
You must be signed in to change notification settings - Fork 61
Invalid attempt to call MetaData when reader is closed. #163
Comments
@webtimisten I've been seeing the same issue. If you refresh does the error go away? |
Hi, Even we are facing the same issue "Exception message: Invalid attempt to call MetaData when reader is closed." We just upgraded from 7.4.3 to 7.6.5 and started getting this error. @daniel-chenery - Tried refreshing the page and error still exists. Current Umbraco Version - 7.6.5 Any help would be much appreciated. Below is the stacktrace: at System.Data.SqlClient.SqlDataReader.get_MetaData() |
@guruprasad83 How odd, every time I've seen this it's usually after an App Pool recycle, and goes away after a page refresh (once the records are cached). |
Thank @daniel-chenery for the quick response. |
@guruprasad83 Probably not (#157). I had the package installed via NuGet. I uninstalled it, and dropped the DLL from my custom build into the bin folder. Nothing broke, all the redirects remained :) |
Hi guys, I'm sorry this package isn't maintained anymore at the moment, but I could add you (@daniel-chenery) as contributor? |
Why isn't it maintained? There aren't other packages, that does job as your package. The "Redirect Url Management" in Umbraco doesn't support creating custom redirects - and is therefore useless imo, when you're relaunch a new website with a new site structure, . |
@kipusoep Yes, please do go ahead :) Would you mind dropping me an email so I can query some things with you? |
Because like mentioned in #135 "I'm unable to maintain the Url Tracker project." |
We understand the way you feel, but as I said, their integration is useless. Have you been in dialog with the Umbraco Team? Maybe you can come up with a solution, where your code is pulled into the Redirect Url Management? |
I don't think the code is good enough to migrate into a new solution ;-) |
@kipusoep I manage to understand the code! It's certainly good :) Like @webtimisten, there is no plugin out there as a real alternative to this. They're all missing features in some way. Thanks for the access, I'll merge my changes in soon... |
No problem!
Yes ofcourse, that would be great. What's your username on nuget? |
@kipusoep Literally just created an account 😂 "daniel-chenery" Do you have any official release tests? |
@kipusoep Then I would agree 😂 |
@daniel-chenery - Saw you merged the changes to the code. many thanks. |
I would like the updated package too :-) |
@guruprasad83 @webtimisten If all goes well, it will be on NuGet shortly today :) |
This should now all be on NuGet for you all :) @kipusoep Does anything need doing with the Our Umbraco listing? |
Nice job daniel. The Our Umbraco listing is out-of-date anyway and I think NuGet is the way to go nowadays, so I suggest leaving it like it is. |
I've just upgraded an old 7.3.4 to 7.6.5, and now I'm getting the error:
Invalid attempt to call MetaData when reader is closed.
If I set "Force redirect" to true it works.
This is the case on both old/existing redirects and new created after upgrade.
I've tried uninstall and installed the package again without any luck.
Exception Details:
System.InvalidOperationException: Invalid attempt to call MetaData when reader is closed.
Source Error:
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.
Stack Trace:
[InvalidOperationException: Invalid attempt to call MetaData when reader is closed.] System.Data.SqlClient.SqlDataReader.get_MetaData() +1685663 System.Data.SqlClient.SqlDataReader.CheckMetaDataIsReady() +20 System.Data.SqlClient.SqlDataReader.GetOrdinal(String name) +57 umbraco.DataLayer.RecordsReaderAdapter
1.GetOrdinal(String fieldName) +23 umbraco.DataLayer.RecordsReaderAdapter
1.GetBoolean(String fieldName) +26 InfoCaster.Umbraco.UrlTracker.Modules.UrlTrackerModule.LoadUrlTrackerMatchesFromDatabase(HttpRequest request, String urlWithoutQueryString, Boolean urlHasQueryString, String shortestUrl, Int32 rootNodeId, String& redirectUrl, Nullable`1& redirectHttpCode, Boolean& redirectPassThroughQueryString) in D:\kipusoep\Documents\GitHub\UrlTracker\Modules\UrlTrackerModule.cs:447 InfoCaster.Umbraco.UrlTracker.Modules.UrlTrackerModule.UrlTrackerDo(String callingEventName, Boolean ignoreHttpStatusCode) in D:\kipusoep\Documents\GitHub\UrlTracker\Modules\UrlTrackerModule.cs:206 InfoCaster.Umbraco.UrlTracker.Modules.UrlTrackerModule.context_EndRequest(Object sender, EventArgs e) in D:\kipusoep\Documents\GitHub\UrlTracker\Modules\UrlTrackerModule.cs:59 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +141 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69The text was updated successfully, but these errors were encountered: