If you are wanting to create a macro that uses a UserControl a temporary solution to this issue is to create a Scripting file and then change the macro that is created to use your user control.
On a seperate note I am now getting the same issue when I try to create an XSLT file.
Thanks for the reports, the bug has been fixed, make sure to update the bin folder from the 4.11.3 nightlies at http://nightly.umbraco.org/umbraco%204.11.3/ - New release will be coming soon.
@Marc, yes the bin folder + the change to UmbracoSettings.config should be enough.
I suspect a custom datatype that started to malfunction, but I don't know which one. Do any of your doctypes work? If yes, what's the difference in datatypes on that one version the ones that are failing.
Feel free to email me a zip of the site + database + admin password (reset it before you take the database backup if you feel uncomfortable sharing the pass) to sebastiaan at umbraco dot com so I can have a look.
I've actually updated my binaries and can not edit the only macro that I had created prior. After creating a new one (it creates it in the tree), it throws the same error:
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.
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:
[NullReferenceException: Object reference not set to an instance of an object.]
Umbraco.Web.UI.Umbraco.Developer.Macros.EditMacro.PopulateFieldsOnLoad(Macro macro, String macroAssemblyValue, String macroTypeValue) +51
umbraco.cms.presentation.developer.editMacro.Page_Load(Object sender, EventArgs e) +404
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
System.Web.UI.Control.OnLoad(EventArgs e) +92
umbraco.BasePages.BasePage.OnLoad(EventArgs e) +14
Umbraco.Web.UI.Umbraco.Developer.Macros.EditMacro.OnLoad(EventArgs e) +12
System.Web.UI.Control.LoadRecursive() +54
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929
@lucuma shouldn't be possible any more. Please make 100% sure that all of the files in the bin folder have been overwritten. If that is the case then feel free to email me a download link to your site & database with admin password like I recommended to Marc.
Apologies to both Marc and lucuma, just checked the patch file and you should also update some files in the Umbraco folder, so ALL of the files in the Patch zip file (http://umbraco.codeplex.com/downloads/get/600454) need to be copied over. I think this is where at least lucuma's problem comes from, not sure about Marc.
I've copied the patch file (I hadn't made any changes to the umbracoconfig) and now get this error when trying to edit a macro:
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.
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:
[NullReferenceException: Object reference not set to an instance of an object.]
Umbraco.Web.UI.Umbraco.Developer.Macros.EditMacro.PopulatePartialViewFiles() +370
Umbraco.Web.UI.Umbraco.Developer.Macros.EditMacro.OnLoad(EventArgs e) +20
System.Web.UI.Control.LoadRecursive() +54
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772
lucuma: did you copy Umbraco\developer\Macros\editMacro.aspx from the patch file to the same folder in your site?
If you did, then make sure to (instead of upgrading through the patch file) upgrade by copying everything from the full release zip file (/bin, /umbraco, /umbraco_client), upgrade guide here: http://our.umbraco.org/documentation/Installation/Upgrading/
I've copied the unblocked entire zip file over my project. I can edit macros and this is the error I get when creating macros:
Server Error in '/' Application.
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.
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:
[NullReferenceException: Object reference not set to an instance of an object.]
Umbraco.Web.UI.Umbraco.Developer.Macros.EditMacro.PopulateFieldsOnLoad(Macro macro, String macroAssemblyValue, String macroTypeValue) +51
umbraco.cms.presentation.developer.editMacro.Page_Load(Object sender, EventArgs e) +403
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
System.Web.UI.Control.OnLoad(EventArgs e) +92
umbraco.BasePages.BasePage.OnLoad(EventArgs e) +14
Umbraco.Web.UI.Umbraco.Developer.Macros.EditMacro.OnLoad(EventArgs e) +12
System.Web.UI.Control.LoadRecursive() +54
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929
Good, then at least it's showing the correct line number this time. Would you mind sending me your site/database (share it through dropbox or something like that) so I can have a look. As I said, this shouldn't happen any more, but I just can't think of what the problem could be now, I can't reproduce it at all.
Latest Umbraco Version 4.11.2.2 Cannot Create Macros
Just installed the latest build of umbraco. If you right click and create a new macro on the macro folder in the developer section an error occurs:
Wow, I met this bug. I can assure you that it is a bug.
I tested this and can confirm: right click on 'Macros' in the Developer section of the backoffice, create a new macro: this YSOD appears:
greetings,
Anthony
If you are wanting to create a macro that uses a UserControl a temporary solution to this issue is to create a Scripting file and then change the macro that is created to use your user control.
On a seperate note I am now getting the same issue when I try to create an XSLT file.
Cheers,
Marc
Please vote for this:
http://issues.umbraco.org/issue/U4-1442
Thanks for the reports, the bug has been fixed, make sure to update the bin folder from the 4.11.3 nightlies at http://nightly.umbraco.org/umbraco%204.11.3/ - New release will be coming soon.
Magic, thanks Sebastiaan
Hi Seb,
Just coped the dlls to my build and I am getting a new error when I try and create a Macro directly from the Macro folder
@Marc :-( I think I had a weird merge issue.. I suck at releasing this week. Try 4.11.3.1, it's REALLY fixed now. :)
Hi Seb,
I have just copied the dlls from 4.11.3.1 to my bin folder. I can now create the Macros however I can no longer create DocumentTypes. My error is:
Can anyone else confirm that the new DLL's in 4.11.3.1 break the ability to create DocumentTypes?
Hi lucuma,
I just created a document type in my 4.11.3.1 install.
I do have issues with the related links data type however.
greetings,
Anthony
Hi Sebastian,
If I try and access existing DocumentTypes I get the same error. If I am updating 4.11.2.2 is it only the dll folder I need to replace?
Cheers,
Marc
@Marc, yes the bin folder + the change to UmbracoSettings.config should be enough.
I suspect a custom datatype that started to malfunction, but I don't know which one. Do any of your doctypes work? If yes, what's the difference in datatypes on that one version the ones that are failing.
Feel free to email me a zip of the site + database + admin password (reset it before you take the database backup if you feel uncomfortable sharing the pass) to sebastiaan at umbraco dot com so I can have a look.
FYI Nothing that we added in 4.11.3 could really have caused this.
Make sure to also Google first for the error, an IISReset seems to help for most people, or tryadding a space to the global.asax and saving it.
I've actually updated my binaries and can not edit the only macro that I had created prior. After creating a new one (it creates it in the tree), it throws the same error:
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.
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.17929
@lucuma shouldn't be possible any more. Please make 100% sure that all of the files in the bin folder have been overwritten. If that is the case then feel free to email me a download link to your site & database with admin password like I recommended to Marc.
Apologies to both Marc and lucuma, just checked the patch file and you should also update some files in the Umbraco folder, so ALL of the files in the Patch zip file (http://umbraco.codeplex.com/downloads/get/600454) need to be copied over. I think this is where at least lucuma's problem comes from, not sure about Marc.
(and, final note: don't overwrite the umbracoSettings.config file but merge it so you don't lose any changes you might have made manually)
Hi Sebastiaan,
Looks like its sorted now. Copied the patch files to my build and everything looks like its working.
Cheers,
Marc
I've copied the patch file (I hadn't made any changes to the umbracoconfig) and now get this error when trying to edit a macro:
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.
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:
lucuma: did you copy Umbraco\developer\Macros\editMacro.aspx from the patch file to the same folder in your site?
If you did, then make sure to (instead of upgrading through the patch file) upgrade by copying everything from the full release zip file (/bin, /umbraco, /umbraco_client), upgrade guide here: http://our.umbraco.org/documentation/Installation/Upgrading/
I copied the entire patch file structure over. I can now edit but I can not create macros.
Please try the complete zip file next just to make sure I didn't miss anything in the patch file: http://umbraco.codeplex.com/downloads/get/539730
I've copied the unblocked entire zip file over my project. I can edit macros and this is the error I get when creating macros:
Server Error in '/' Application.
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.
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.17929
Good, then at least it's showing the correct line number this time. Would you mind sending me your site/database (share it through dropbox or something like that) so I can have a look. As I said, this shouldn't happen any more, but I just can't think of what the problem could be now, I can't reproduce it at all.
Done. I'd prefer to not post it publically. Can I have your email so I can send you the link.
Of course! Email at sebastiaan at umbraco dot com, thanks!
Thanks, I've sent it to you if you want to remove your email from the forum.
Just to update turns out @lucuma was having some problems with Dropbox messing with his Umbraco, all good now!
Either that or I'm crazy, both of which are just as likely. Thanks Sebastiaan for helping me out so quickly.
is working on a reply...