I've run into an issue that I can't seem to resolve. It is probably something obvious but it's been driving me crazy. I'm running umbraco v 4.5.2 (Assembly version: 1.0.3891.20719)
I have the following code as a callback in a project:
Up until this point everything workd perfect, and the node is created, however when I go to check the actual node in the backend I can see the node is published but when I click it to see the details the results show me that no URL was created for the node
Is there something in my code that's preventing the actual publishing? There are no event or other actions attached to this particular node. Also this issue has happened to me in different instals.
These are the entries related to this particular node found in the umbraco log, there are not errors reported in this table.
try republishing entire site, you have the option by right clicking the "content" node and there "republish entire site" and let us know if the problem returns
Thanks for you prompt response! Republishing the entire site does bring the URL into the node. Does this mean that I should republish the entire site every time I create a new node? Or is there a way to just update the cache for the one node?
Yes, if a create a new node using this control the same issue occurs until I republish the entire site or click on the save and publish icon in the back office
I seem to be having some issues referencing umbraco.library from my project in VS 2010 (it doesn't seem to be recognized). I have umbraco.dll included as a reference as well as cms.dll, bussinesslogic.dll, controls.dll and interfaces.dll. Am I missing something? My project was created as a web application
Also I found this code on the forums,
assistance.Publish(new User(0));
XmlDocument xml = new XmlDocument();
assistance.XmlGenerate(xml);
I think it is supposed to have the same effect, is this the case?
I don't know for sure if the XmlGenerate method would do the same as UpdateDocumentCache() to be honest. But I find it very strange that you can't access the library class in the Umbraco namespace if you have referenced the correct dll's? You sould be good to with the umbraco.dll reference in your project!
When I'm making a new ASP.NET website for creating my UserControls I just add a reference to umbraco.dll, cms.dll and businesslogic.dll from a fresh Umbraco download corresponding to the .NET/Umbraco version of the site I'm building.
Maybe you should try to make a new ASP.NET website and reference it again? It sounds really strange to me.. :-)
I finally got it to work. Following Bo's advice seems to fix the issue. As to why the umbraco.library wasn't being recognized it seems I was using dll compiled for asp.net 4.0 and the project was set to run in 3.5. When I changes the dll to ones I knew that were working under 3.5 umbraco,library started showing up.
C# Publish not working properly
Hello Everyone,
I've run into an issue that I can't seem to resolve. It is probably something obvious but it's been driving me crazy. I'm running umbraco v 4.5.2 (Assembly version: 1.0.3891.20719)
I have the following code as a callback in a project:
Up until this point everything workd perfect, and the node is created, however when I go to check the actual node in the backend I can see the node is published but when I click it to see the details the results show me that no URL was created for the node
Is there something in my code that's preventing the actual publishing? There are no event or other actions attached to this particular node. Also this issue has happened to me in different instals.
These are the entries related to this particular node found in the umbraco log, there are not errors reported in this table.
I really appreciate any help.
Thanks in advance for your time and assistance.
Best Regards
Javier Sierra
try republishing entire site, you have the option by right clicking the "content" node and there "republish entire site" and let us know if the problem returns
Hi Eran,
Thanks for you prompt response! Republishing the entire site does bring the URL into the node. Does this mean that I should republish the entire site every time I create a new node? Or is there a way to just update the cache for the one node?
Thanks for your help.
Best Regards
does it still happen after you republish at the first time?
Yes, if a create a new node using this control the same issue occurs until I republish the entire site or click on the save and publish icon in the back office
Javier,
Try this when publishing new documents:
See if that works for you.
Hello Bo,
I seem to be having some issues referencing umbraco.library from my project in VS 2010 (it doesn't seem to be recognized). I have umbraco.dll included as a reference as well as cms.dll, bussinesslogic.dll, controls.dll and interfaces.dll. Am I missing something? My project was created as a web application
Also I found this code on the forums,
Hi Javier,
I don't know for sure if the XmlGenerate method would do the same as UpdateDocumentCache() to be honest. But I find it very strange that you can't access the library class in the Umbraco namespace if you have referenced the correct dll's? You sould be good to with the umbraco.dll reference in your project!
When I'm making a new ASP.NET website for creating my UserControls I just add a reference to umbraco.dll, cms.dll and businesslogic.dll from a fresh Umbraco download corresponding to the .NET/Umbraco version of the site I'm building.
Maybe you should try to make a new ASP.NET website and reference it again? It sounds really strange to me.. :-)
Hi,
I finally got it to work. Following Bo's advice seems to fix the issue. As to why the umbraco.library wasn't being recognized it seems I was using dll compiled for asp.net 4.0 and the project was set to run in 3.5. When I changes the dll to ones I knew that were working under 3.5 umbraco,library started showing up.
Thanks for everyone's help.
Best Regards
Beautiful! :) Remember to mark the topic as answered for future references.
All the best,
Bo
is working on a reply...