Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi All,
I've got a problem with the install through the api, i saw in the Umbraco solution 2 ways to do this:
Like this:installer.Install(dirPath, Guid.NewGuid().ToString(), _repoGuid);
With this as an error (i do this on OnApplicationStarted):Request is not available in this context
of like this:
var pId = installer.CreateManifest(dirPath, Guid.NewGuid().ToString(), _repoGuid);installer.InstallFiles(pId, dirPath);installer.InstallBusinessLogic(pId, dirPath); installer.InstallCleanUp(pId, dirPath);
the install then works fine but not the datatype, maybe it's a bug? Or do i not use the good api call?
Nobody ever tried this?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Install package with API
Hi All,
I've got a problem with the install through the api, i saw in the Umbraco solution 2 ways to do this:
Like this:
installer.Install(dirPath, Guid.NewGuid().ToString(), _repoGuid);
With this as an error (i do this on OnApplicationStarted):
Request is not available in this context
of like this:
var pId = installer.CreateManifest(dirPath, Guid.NewGuid().ToString(), _repoGuid);
installer.InstallFiles(pId, dirPath);
installer.InstallBusinessLogic(pId, dirPath);
installer.InstallCleanUp(pId, dirPath);
the install then works fine but not the datatype, maybe it's a bug? Or do i not use the good api call?
Nobody ever tried this?
is working on a reply...