Click here to Skip to main content
Licence 
First Posted 23 Apr 2004
Views 30,436
Bookmarked 12 times

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

By | 28 May 2007 | Article
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

About the Author

Praveen Venu

Web Developer

India India

Member

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

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
Generalabout calendar in asp.net Pinmembernirav9920:03 15 Feb '05  
GeneralWOW PinmemberJubjub18:22 25 Apr '04  

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.

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