I successfully used uImport couple weeks ago and all went smooth. u7.1.4 sql2008r2 umirror 1.0.0.2107
Today, when i delete the old project and create a new one (unique name), upon tpying name and click create, i get the following error: (not sure how to solve this)
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
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: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
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:
[ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.]
System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) +0
System.Reflection.RuntimeModule.GetTypes() +9
System.Reflection.Assembly.GetTypes() +143
Lecoati.uMirror.Bll.BllProject.GetMethods() in c:\Project\TFS\lct_umirror\Src\Lecoati.uMirror\Bll\BllProject.cs:246
Lecoati.uMirror.Ui.editProject.OnInit(EventArgs e) in c:\Project\TFS\lct_umirror\Src\Lecoati.uMirror\Ui\Dialogs\editProject.aspx.cs:104
System.Web.UI.Control.InitRecursive(Control namingContainer) +186
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2098
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34209
Unfortunately I havent find a solution, tried re-installing etc. For some reason it just didnt work and gave the error above.
Since then I have moved to 7.1.6 and have not given any further try - not sure what might be wrong.. But would definitely interested to find out and resolve it as uMirror functionality by design is great and I can see being used in many implementation.
If you have an update in the works I would definitely give it a try.
Did you ever find a solution to this problem? I get the exact same exception on a new installation of Umbraco 7.2.1.
I managed to get uMirror running by manually inserting a new row in the 'uMirrorProject'-table in the database, so that i can create document types and run uMirror. Still can't edit the project og create new projects in the UI though.
I actually exported a uMirror project (just an empty one) from another umbraco project, and imported it, just to get a project node. I then updated the Name, XmlFileName and UmbRootId columns in the database, and now i can use it.
So everything works, except creating and editing projects.
Hi Guys, I hadn't any chance to have a look on it until now :/, It seems to be a petapoco schema issue, I will try to fixed it this week. I will keep you up tp date !
We are getting the reported error in an Umbraco 6.1.6 installation. We are using uMirror 0.9.1.34310.
The source code is on Github. Looking at the source code and the stack trace I found that the error occurs when it is trying to load any uMirror Extensions in the GetMethods() method.
It appears that while processing the dll files in the bin directory and calling GetTypes() one of the dll files is causing this exception. Some searching on this issue found that others have had a similar problem with GetTypes():
In our case the dll causing the exception was a project dll that contained the uSiteBuilder DocumentType definitions. Fortunately uSiteBuilder is not used in the project and the dll could be deleted.
The method for discovering this was to delete all the non-standard dlls in the bin directory one by one. Once this particular dll was deleted uMirror loaded without error.
Following up on this issue with a clarification. Our problem was caused by the uSiteBuilder dll but it was not an issue with the dll itself.
The real issue was that when GetTypes() runs it inspects all of the dll files (looking for any uMirror extensions) in the bin directory and any dependencies. If a dependent dll is missing from the bin directory you will get the reported error.
In our case a dll that the uSiteBuilder dll references was not in the bin directory. As we were not using uSiteBuilder this did not affect the operation of the site but it did cause the reported error. This is why removing the uSiteBuilder dll resolved it for us.
If you are getting this error it can be very difficult to find the missing dependency. To track it down I created a generic handler that uses the same commands as uMirror but handles the exception and logs the missing dll to the screen.
If you are using umbraco 7 you can modify the uMirror source directly to handle the exception. We had this issue on umbraco 6 (for which the source is not available) so the handler was a quick way to find the missing dll.
Just gave this another try on a 7.1.8 install, dropped the umirror tables from the database from previous install, installed and uninstalled the package to remove the binaries and plugin, commented out the scheduled tasks in umbraco.config - i.e. prep for fresh install.
After installing from scratch the latest version, it installs with no errors.
When attempting to create a new project I get the following exception thrown;
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
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: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
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:
[ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.]
System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) +0
System.Reflection.RuntimeModule.GetTypes() +4
System.Reflection.Assembly.GetTypes() +70
Lecoati.uMirror.Bll.BllProject.GetMethods() in c:\Project\TFS\lct_umirror\Src\Lecoati.uMirror\Bll\BllProject.cs:246
Lecoati.uMirror.Ui.editProject.OnInit(EventArgs e) in c:\Project\TFS\lct_umirror\Src\Lecoati.uMirror\Ui\Dialogs\editProject.aspx.cs:104
System.Web.UI.Control.InitRecursive(Control namingContainer) +134
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +489
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34249
Is there something being missed? Would appreciate if you can shed some light on this.
It seems the error on project creation is still an issue, as I have tried it on different 7.1 and 7.2 umbraco both with mssql2008 on iis7.
I have even tried to create a project by creating a new row in the uMirrorProject table, it shows up in the tree but throws the same error when clicked on it. Using the latest package, Checked the source but the latest version's source is not available.
The error shown in the UI is as per original post.
The exception captured in the log as following:
2015-11-06 13:19:08,381 [189] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 172] An unhandled exception occurred
System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at Lecoati.uMirror.Bll.BllProject.GetMethods() in c:\Project\TFS\lct_umirror\Src\Lecoati.uMirror\Bll\BllProject.cs:line 246
at Lecoati.uMirror.Ui.editProject.OnInit(EventArgs e) in c:\Project\TFS\lct_umirror\Src\Lecoati.uMirror\Ui\Dialogs\editProject.aspx.cs:line 104
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.umbraco_plugins_umirror_dialogs_editproject_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\4045b065\3c7b871d\App_Web_editproject.aspx.f07c08a0.xiyfr9j2.0.cs:line 0
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2015-11-06 13:19:24,406 [189] INFO Lecoati.uMirror.ScheduledTaskHandler - [Thread 119] [synchronizer - task] task trigger 1:19 PM
It would be great to get this working, is there any hope to get the petapoco issue solved or the latest versions' source code to be updated?
We were getting the same error and the issue was that a dll dependency was missing from the bin directory. If you are using v7 you can get the uMirror source code and modify it to add better error handling where it loads the uMirror plugins.
Otherwise you can use the handler I mention in the post above to track down the missing dll.
Error after creating a project
Hi!
I successfully used uImport couple weeks ago and all went smooth. u7.1.4 sql2008r2 umirror 1.0.0.2107
Today, when i delete the old project and create a new one (unique name), upon tpying name and click create, i get the following error: (not sure how to solve this)
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
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: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
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:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34209
Hi Keilo, sorry for the delay, I was on holiday
It seems to be an error with a proxy method not found or something similar. Have you figured out something else since your posted the issue?
Hi Antoine
Hope you enjoyed the well deserved holiday.
Unfortunately I havent find a solution, tried re-installing etc. For some reason it just didnt work and gave the error above.
Since then I have moved to 7.1.6 and have not given any further try - not sure what might be wrong.. But would definitely interested to find out and resolve it as uMirror functionality by design is great and I can see being used in many implementation.
If you have an update in the works I would definitely give it a try.
cheers!
Did you ever find a solution to this problem? I get the exact same exception on a new installation of Umbraco 7.2.1.
I managed to get uMirror running by manually inserting a new row in the 'uMirrorProject'-table in the database, so that i can create document types and run uMirror. Still can't edit the project og create new projects in the UI though.
Hi Peter
Unfortunately no I havent find a solution...
Curious, what kind of entry did you put to umirroproject table?
cheers
Hi Keilo
I actually exported a uMirror project (just an empty one) from another umbraco project, and imported it, just to get a project node. I then updated the Name, XmlFileName and UmbRootId columns in the database, and now i can use it.
So everything works, except creating and editing projects.
Hi Guys, I hadn't any chance to have a look on it until now :/, It seems to be a petapoco schema issue, I will try to fixed it this week. I will keep you up tp date !
We are getting the reported error in an Umbraco 6.1.6 installation. We are using uMirror 0.9.1.34310.
The source code is on Github. Looking at the source code and the stack trace I found that the error occurs when it is trying to load any uMirror Extensions in the GetMethods() method.
It appears that while processing the dll files in the bin directory and calling GetTypes() one of the dll files is causing this exception. Some searching on this issue found that others have had a similar problem with GetTypes():
http://stackoverflow.com/questions/3813750/unable-to-load-one-or-more-of-the-requested-types-retrieve-the-loaderexceptions
https://social.msdn.microsoft.com/Forums/vstudio/en-US/0f4e8218-9aa5-4720-87f0-df4568890e65/assemblygettypes-does-not-work?forum=clr
http://stackoverflow.com/questions/5639380/any-way-to-safely-call-assembly-gettypes
Note that the uMirror source code on Github is the newest (v7) version (1.0.0.2107) and the source for 0.9.1.34310 is not available.
Dallas
In our case the dll causing the exception was a project dll that contained the uSiteBuilder DocumentType definitions. Fortunately uSiteBuilder is not used in the project and the dll could be deleted.
The method for discovering this was to delete all the non-standard dlls in the bin directory one by one. Once this particular dll was deleted uMirror loaded without error.
Dallas
Following up on this issue with a clarification. Our problem was caused by the uSiteBuilder dll but it was not an issue with the dll itself.
The real issue was that when GetTypes() runs it inspects all of the dll files (looking for any uMirror extensions) in the bin directory and any dependencies. If a dependent dll is missing from the bin directory you will get the reported error.
In our case a dll that the uSiteBuilder dll references was not in the bin directory. As we were not using uSiteBuilder this did not affect the operation of the site but it did cause the reported error. This is why removing the uSiteBuilder dll resolved it for us.
If you are getting this error it can be very difficult to find the missing dependency. To track it down I created a generic handler that uses the same commands as uMirror but handles the exception and logs the missing dll to the screen.
If you are using umbraco 7 you can modify the uMirror source directly to handle the exception. We had this issue on umbraco 6 (for which the source is not available) so the handler was a quick way to find the missing dll.
https://github.com/dallastaylor/AssemblyTest
It is a generic handler so add the files to your site and call the handler url from a browser to find the missing dll.
Dallas
Just gave this another try on a 7.1.8 install, dropped the umirror tables from the database from previous install, installed and uninstalled the package to remove the binaries and plugin, commented out the scheduled tasks in umbraco.config - i.e. prep for fresh install.
After installing from scratch the latest version, it installs with no errors. When attempting to create a new project I get the following exception thrown;
Is there something being missed? Would appreciate if you can shed some light on this.
Hi again
It seems the error on project creation is still an issue, as I have tried it on different 7.1 and 7.2 umbraco both with mssql2008 on iis7.
I have even tried to create a project by creating a new row in the uMirrorProject table, it shows up in the tree but throws the same error when clicked on it. Using the latest package, Checked the source but the latest version's source is not available.
The error shown in the UI is as per original post. The exception captured in the log as following:
It would be great to get this working, is there any hope to get the petapoco issue solved or the latest versions' source code to be updated?
cheers
Keilo
We were getting the same error and the issue was that a dll dependency was missing from the bin directory. If you are using v7 you can get the uMirror source code and modify it to add better error handling where it loads the uMirror plugins.
Otherwise you can use the handler I mention in the post above to track down the missing dll.
Dallas
is working on a reply...