Click here to Skip to main content
Click here to Skip to main content

Solving the problem of 'Object Instance not created' in asp.net while using Crystal Reports

, 28 May 2007
Rate this:
Please Sign up or sign in to vote.
Solving the problem of 'Object Instance not created' in asp.net while using Crystal Report

http://praveenvenu.co.nr

Introduction

It is easy to use crystal report in VB.NET or C#.Net. But when using Crystal Report in ASP.Net some problems can occur. One of the problems is the error Object Reference not set.......

Why this happens

This happens because you had not set virtual directory for the Crystal Report viewer, so the viewer can not be initialised.

Solution

The solution for this is simple just create a Virtual directory Named CrystalReportWebFormViewer which is pointing to <Visual Studio installled folder>\Crystal Reports\Viewers (Usually it is C:\Program Files\Microsoft Visual Studio .NET\Crystal Reports\Viewers). Now refresh, and your report will run properly.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Praveen Venu
Web Developer
India India
http://praveenvenu.co.nr 3.5 Yrs experiance in VB.Net,C#.Net and ASP.Net, Ajax and SQL Server
Working with Courtport LLC as a Project Leader now

Comments and Discussions

 
Generalabout calendar in asp.net Pinmembernirav9915-Feb-05 21:03 
GeneralWOW PinmemberJubjub25-Apr-04 19:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.141223.1 | Last Updated 29 May 2007
Article Copyright 2004 by Praveen Venu
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid