IT Community - Software Programming, Web Development and Technical Support

Object reference not set to an instance of an object for crystal reports in .net

This is a discussion on Object reference not set to an instance of an object for crystal reports in .net within the Database Support forums, part of the Web Development category; Object reference not set to an instance of an object for crystal reports in .net Why does this error message ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > Database Support

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 08-03-2007, 02:39 AM
KiruthikaSambandam KiruthikaSambandam is offline
D-Web Analyst
 
Join Date: Aug 2007
Posts: 332
KiruthikaSambandam is on a distinguished road
Default Object reference not set to an instance of an object for crystal reports in .net

Object reference not set to an instance of an object for crystal reports in .net
Why does this error message appear and how do you resolve it?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-03-2007, 03:26 AM
H2o H2o is offline
D-Web Analyst
 
Join Date: Jul 2007
Posts: 246
H2o is on a distinguished road
Default Re: Object reference not set to an instance of an object for crystal reports in .net

This error message appears because there is no virtual directory for the Crystal Reports Web Forms Viewer for the web application's web site.
To resolve this error message, complete one of these steps:
• If the virtual directory for the Crystal Reports Web Forms Viewer exists under the Default Web Site, copy the virtual directory to the web application's web site.
- For Crystal Reports for Visual Studio .NET 2002 (9.1.3300.0) the virtual directory is CrystalReportWebFormViewer.
- For Crystal Reports for Visual Studio .NET 2003 (9.1.5000.0) the virtual directory is CrystalReportWebFormViewer2.
- For Crystal Reports 9 Developer or Advanced editions (9.2.3300.0) the virtual directory is crystalreportViewers.
- OR -
• If the virtual directory for the Crystal Reports Web Forms Viewer does not exist, create the directory using the following steps:
1. On the 'Start' menu, click 'Run', type "inetmgr", and then click 'OK' to load the IIS Manager.
2. Right-click the web site node associated with your web application.
3. Click 'New' and then click 'Virtual Directory'.
4. Click the 'Next' button.
5. Type the appropriate alias from the following list and then click the 'Next' button.
- For Crystal Reports for Visual Studio .NET 2002
(9.1.3300.0) type "CrystalReportWebFormViewer".
- For Crystal Reports for Visual Studio .NET 2003
(9.1.5000.0) type "CrystalReportWebFormViewer2".
- For Crystal Reports 9 Developer or Advanced
editions (9.2.3300.0) type "crystalreportViewers".
6. Browse to the viewer folder and click the 'Next' button:
- For Crystal Reports for Visual Studio .NET 2002
(9.1.3300.0) and Visual Studio .NET 2003 (9.1.5000.0) browse to 'C:\Program Files\Microsoft Visual Studio .NET\Crystal Reports\Viewers'
- For Crystal Reports 9 Developer or Advanced
editions (9.2.3300.0) browse to 'C:\Program
Files\Common Files\Crystal
Decisions\2.0\crystalreportviewers'
7. On the 'Access Permission' dialog box, click the 'Next' button to go to the last screen.
8. Click the 'Finish' button to exit the wizard.
Additional Information
--------------------------
If this error message still appears after creating the virtual directory, perform a Visual Studio .NET repair install to resolve this error.
If the Default Web Site does not exist in IIS, then create the following registry subkeys:
- For Crystal Reports for Visual Studio .NET 2002
Subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic e
s\W3SVC\Parameters\Virtual Roots
Value: /CrystalReportWebFormViewer
Type string: c:\program files\Microsoft Visual Studio .Net\Crystal Reports\Viewers\,,201
- For Crystal Reports for Visual Studio .NET 2003
Subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic e
s\W3SVC\Parameters\Virtual Roots
Value: /CrystalReportWebFormViewer2
Type string: C:\Program Files\Microsoft Visual Studio .Net\Crystal Reports\Viewers\,,201
- For Crystal Reports 9 Developer or Advanced editions
Subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic e
s\W3SVC\Parameters\Virtual Roots
Value: /crystalreportviewers
Type string: C:\Program Files\Common Files\Crystal Decisions\2.0\crystalreportviewers,,201
__________________
H2O

Without us, no one can survive..
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Reports for VS .NET Frequently Asked Questions Mramesh C# Programming 5 03-05-2008 11:15 PM
crystal reports dips ASP and ASP.NET Programming 0 10-07-2007 06:00 AM
what is virtual object in QTP sundarraja Testing Tools 1 08-22-2007 06:31 AM
Some DOM Object Jeyaseelansarc HTML, CSS and Javascript Coding Techniques 1 05-08-2007 05:47 AM
Convert Object to Arraylist and Arraylist to Object raja C# Programming 0 05-08-2007 03:26 AM


All times are GMT -7. The time now is 06:26 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0