Click here to Skip to main content
15,885,546 members
Articles / Web Development / ASP.NET
Article

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

Rate me:
Please Sign up or sign in to vote.
1.26/5 (10 votes)
28 May 2007 36.9K   12   2
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


Written By
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 Pin
nirav9915-Feb-05 20:03
nirav9915-Feb-05 20:03 
GeneralWOW Pin
Vadim Tabakman25-Apr-04 18:22
Vadim Tabakman25-Apr-04 18:22 

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

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