1
Vote

Exception when target is a root site collection

description

I received a file path error when the target site was the root site of a root site collection (i.e. no managed path).
I fixed this by adding these two lines vic line 282 of the form code:
//existing line:
string fileURL = targetWeb.ServerRelativeUrl + "/Workflows/" + wflName + "/" + wflName + ".xoml.wfconfig.xml";
//add these 2 lines:
if (targetWeb.ServerRelativeUrl == "/")
fileURL = "/Workflows/" + wflName + "/" + wflName + ".xoml.wfconfig.xml";

Overall a very nice project, thanks!

No files are attached

comments