As I Try to explain in the description, I'm making a schedule job to run a page once every night, but the page must not appear in umbraco backend. I thought to just create a page with a macro where the macro just called a controller and does its job, but where is best practice to create this page. I thought in the umbraco folder where ping.aspx is but if I'll Updating umbraco I am afraid of losing the file.
I would make a folder in the filesystem besides the folders that comes with Umbraco, then you will not be afraid to lose the file if you upgrads Umbraco.
In the web.config you need to add the path to your custom .aspx file in the Umbraco specific key "umbracoReservedUrls"
Glad that I could help you. Don´t lnow if it´s possible to run an macro from an aspx outside Umbraco. You could try to create a new post, then I am almost sure that some of the .NET guys, can answers this.
Make page outsite of umbraco
As I Try to explain in the description, I'm making a schedule job to run a page once every night, but the page must not appear in umbraco backend. I thought to just create a page with a macro where the macro just called a controller and does its job, but where is best practice to create this page. I thought in the umbraco folder where ping.aspx is but if I'll Updating umbraco I am afraid of losing the file.
Maybe someone have been around this before.
Hi Dan,
I would make a folder in the filesystem besides the folders that comes with Umbraco, then you will not be afraid to lose the file if you upgrads Umbraco.
In the web.config you need to add the path to your custom .aspx file in the Umbraco specific key "umbracoReservedUrls"
So you need to add the path to your file in this list as well like
Hope this helps,
Dennis
Thanks for the help Dennis ! :)
I have made an folder called test and in this a file called testFile.aspx and I have added the path to the umbracoReservedUrls as following
But when I call the url localhost:portID/test/testFile.aspx I get the 404 error page not found :/
Hi Dan,
From your example you should be able to access the file on the following URL
localhost:portID/test/testFile.aspx
Hope this helps,
Dennis
Sorry I edit my last answer I already tried localhost:portID/test/testFile.aspx But cant access the file :/.
okay my mistake I looked at he url agian and saw i misted the aspx :D thanks for the help Dennis !
Do you know how I run an macro from here then :D ? and is it even possible.
Hi Dan,
Glad that I could help you. Don´t lnow if it´s possible to run an macro from an aspx outside Umbraco. You could try to create a new post, then I am almost sure that some of the .NET guys, can answers this.
/Dennis
is working on a reply...