Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 24th, 2003, 03:55 PM
Registered User
 
Join Date: Oct 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP.NET Interop issue?

Hi,

We have an aspx page where the code behind calls a third-party COM object through an Interop dll. Usually the code executes with no problem, but every once in a while (average once a week), we get a System.NullReferenceException thrown at System.Runtime.InvokeDispMethod (stack trace below). If we try to reproduce this behavior, we are unable to -- the page works fine on the next try.

Does anyone have any idea as to why we might get an occasional NullReferenceException at this level, and one that's impossible to reproduce when exactly the same user input is given? This occurs on both .Net Framework 1.0 and 1.1 machines.

Thanks,
Leslie

1) Exception Information
*********************************************
Exception Type: System.NullReferenceException
Message: Object reference not set to an instance of an object.
TargetSite: System.Object InvokeDispMethod(System.String,
System.Reflection.BindingFlags, System.Object, System.Object[],
Boolean[], Int32, System.String[])
HelpLink: NULL
Source: mscorlib

StackTrace Information
*********************************************
   at System.RuntimeType.InvokeDispMethod(String name, BindingFlags
invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers,
Int32 culture, String[] namedParameters)
   at System.RuntimeType.InvokeMember(String name, BindingFlags
invokeAttr, Binder binder, Object target, Object[] args,
ParameterModifier[] modifiers, CultureInfo culture, String[]
namedParameters)
   at System.RuntimeType.ForwardCallToInvokeMember(Strin g memberName,
BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData&
msgData)
   at PETOCXLib.PETOCXClass.SetHeaderMultilineText(Strin g FontName,
Single FontSize, Single X, Single Y, Single Width, Single Height,
String Text, Int16 Alignment)
   at BTA.EPM.Utilities.PDFStampHelper.PDFStampHelper.St ampPDF()
   at PDFStamper.PageData.StampPDF()
   at PDFStamper.PDFStamp.Button1_Click(Object sender, EventArgs e)







Similar Threads
Thread Thread Starter Forum Replies Last Post
C# Interop problem with ASP.Net jitumandalia C# 2005 0 January 23rd, 2007 04:57 AM
C# Interop problem with ASP.Net jitumandalia ASP.NET 2.0 Professional 0 January 23rd, 2007 01:45 AM
C# Interop problem with ASP.Net jitumandalia .NET Framework 2.0 0 January 23rd, 2007 01:43 AM
C# Interop problem with ASP.Net jitumandalia Visual Studio 2005 0 January 23rd, 2007 01:41 AM
Issue with Office Interop karveajit .NET Framework 1.x 1 November 28th, 2005 06:56 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.