Support Forum
Welcome Guest Search | Active Topics | Members | Log In | Register

NullReferenceExeption Options
ny
Posted: Wednesday, April 14, 2010 11:40:43 AM
Rank: Newbie
Groups: Member

Joined: 4/14/2010
Posts: 1
Is there a simple fix for this error?

From Fiddler response:

[NullReferenceException: Object reference not set to an instance of an object.]
SmartWebControls.SmartPrint.Web.SmartPrintHandler.ProcessRequest(HttpContext context) +596
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +598
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +170


This is all I'm doing, it worked once or twice and now gives me the above error:

PrintSettings ps = new PrintSettings();
ps.ElementsToPrint = new List<UIElement> { (UIElement) this };

SmartPrintManager printMgr = new SmartPrintManager();
printMgr.AutoGeneratePrintDocumentViewer = true;


printMgr.Print(ps);

Thanks.
admin
Posted: Sunday, April 18, 2010 12:15:34 AM
Rank: Administration
Groups: Administration

Joined: 2/25/2008
Posts: 26
Can you post the complete Fiddler information and the domain you're calling this from? The trial only works on localhost but you should get a message if you try it on another domain rather than an exception. Without the full Fiddler trace it's hard to say though.

SmartWebControls Team
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.6 (NET v2.0) - 11/14/2007
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.