Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create community from template (c#)

Status
Not open for further replies.

Warrioras

Programmer
Feb 15, 2007
7
LT
public void CreateTC(string strTCName, string strTCIdentifier)
{
ProcessStartInfo startInfo = new ProcessStartInfo("IExplore.exe");
startInfo.WindowStyle = ProcessWindowStyle.Minimized;
startInfo.Arguments = " + ConfigurationSettings.AppSettings["LivelinkServerName"] + "//Livelink/livelink.exe?func=ll.login&Username=Admin&Password="+AdminPassword+"&NextURL=%2FLivelink%2Flivelink%2Eexe%3Ffunc%3Dll%26objType%3D" + (int) Const.llTypeComittee + "%26objAction%3Dcreate2%26parentId%3D2000%26Name%3D" + strTCIdentifier + " " + strTCName + "%26elinkname%3D" + strTCIdentifier.Replace(" ", "").Trim() + "%26status%3D0%26CommitteeTemplate_ID%3D" + int.Parse(ConfigurationSettings.AppSettings["LivelinkTemplate"]) + "%26CTT_ID%3D2000%26nextURL%3D%26state%3D1%26CLASS_ID%3D0";
Process aa = new Process();
aa.StartInfo = startInfo;
aa.Start();
Thread.Sleep(10000);
aa.Kill();
}

But i Explorer say:
Server did not Respond

The Livelink Server did not respond, or sent a document that contained no data. Please try again. If the problem persists, contact your Livelink administrator.

-------------------
Can anyone help me?
Thank you
 
can you get the URL it is trying to use and run that on its own in IE ?

You may be better using LAPI or LiveServices to do this rather than creating a browser session in your C#.

Greg Griffiths
Livelink Certified Developer & ECM Global Star Champion 2005
 
Thank you Greg for replay.
If I post this URL in IE - I get the same error..
So it is bad URL?

p.s. maybe can you give me link where I can find more info about how to do that (create community from template) with LiveServices or LAPI?

 
I suggest that if you want to pursue the approach you have taken so far that you do the function within Livelink and then copy the URL and amend the details so that you get a working URL.

More info on LAPI and LiveServices can be found on the following sites

(requires a user a/c from your OT account manager)
(requires a user a/c which you can apply for online)

Greg Griffiths
Livelink Certified Developer & ECM Global Star Champion 2005
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top