namespace testasp{ public class HelloWorldHandler : iManage.WorkSite.Web.UI.AutenticatedHttpHandler { public override void ProcessRequest() { Context.Response.Write("html"); Context.Response.Write("body"); Context.Response.Write("h1 Hello from Synchronous custom handler. "); Context.Response.Write("/body"); Context.Response.Write("/html"); } }}
C:\Program Files\Interwoven\WorkSite\Web\bin
httpHandlers....add verb="*" path="scripts/Test.asp" type="testasp.HelloWorldHandler" validate="true"//httpHandlers
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { IManSession oSession; IManDMS oDMS = new IManage.ManDMSClass(); oSession = oDMS.Sessions.Add("MyDMSServer"); IntPtr UToken = ((HttpWorkerRequest)((IServiceProvider)Context).GetService(typeof(HttpWorkerRequest))).GetUserToken(); int UT = UToken.ToInt32(); try { oSession.TrustedLogin2(UT); } catch (Exception ex) { } if (oSession.Connected) { //the access to the page is ok } else { //access not ok, redirect to some other page Response.Redirect("http://www.google.com"); } } else { } }
Could not load file or assembly 'Interop.IManage, Version=8.2.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
thanks for your answerunfortunately, it does the same..IE hangs trying to load the page, no error message and no error page...
I have HP ProBook x360 laptop and i wonder how can i download its graphics driver update utility sooftware. Can anyone help?