upgrading vb.net to vb.net 2003 crystal report viewer problem.

I have a vb.net web. app that has several pages each with a different crystal report on it.  It works perfectly under vb.net.  I've since installed vb.net 2003.  After I open the solution in 2003 & it does its upgrade, all of the crystal report viewer controls are corrupted. 

If I try to run it as is I get the following error: "The base class includes the field 'myname' but its type (CrystalDecisions.Web.CrystalReportViewer) is not compatible with the type of control(CrystalDecisions.Web.CrystalReportViewer).
So I tried deleting the control and adding back on. & when I run it I get the following error:
"BC30560:'CrystalReportViewer' is ambiguous in the namespace 'CrystalDecisions.Web'
in C:\windows\microsoft.net\framework\v1.14322\......
it generated:
dim _ctrl as CrystalDecisions.Web.CrystalReportViewer
& in the .aspx it generated:
dim _ctrl = new CrystalDecisions.Web.CrystalReportViewer
I only have this problem in asp.net. My windows programs work ok in 2003. How do I fix or get around this problem without recoding all of my web pages?

1/28/2004 11:34:40 PM
asp.net.crystal-reports 7043 articles. 0 followers. Follow

8 Replies

Similar Articles

[PageSpeed] 30

Check the application deployment article crnet_deployment.doc  from CR web site.  If you already done so, then good luck.
1/29/2004 7:08:48 PM
Thanks, I should have gone there first.  It solved my problem.  When upgrading from 2002 to 2003 the assembly references in the web.config file don't get updated to the correct version.  Once I manually changed all references of 9.1.3300.0 to 9.1.5000.0 it worked fine.  Thanks.
1/29/2004 9:19:24 PM
I am glad it helped you.  Now I need your expertise on deployment.  I followed the article did a straight deployment.  However, the setup keep on copying the files to a sub folder of one of my web site instead of the virtual directory I setup. Eventhoug I changed the property on the manufacturer etc... as the paper said.  I have no idea why?  

To work around, I have to manually move the files to the virtual directory defined during the installation. It then allowed me to display the reports. However, the images on the tool bar all are missing. I found one article C2011144 said that I need to copy the CrystalReportFormViewer virtual directory to my reporting web site. However, when I did that, it complained that I already have the virtual directory. So, I am still in loss. I hope you can tell me whether you have the same problems or not, how you did it. What I missing?
1/29/2004 11:59:02 PM
I had the same problem the first time I tried to install an asp.net project.  You have to specifically tell the deployment/setup application to install the files & where to put them.

In your setup project open the File System Explorer. Right Click the "Web Application Folder" & select "Add" then "Project Output" from the menu. This will bring up the "Add Project Output Group" dialog box. You need to Select both the "Primary Output" & "Content Files" then hit OK. The "Primary Output" will include the .dll executable code created by your project. & the "Content Files" will include all of your aspx files & other files you need on the server.
You also need to set the "Virtual Directory" property of the "Web Application Folder". This needs to be the exact name of the virtual folder you want to install the project to. This can also be set in the File System Explorer.
For Crystal Reports there are also 3 Merge Modules you should add to your deployment.
Managed.msm, Database_Access_enu.msm & Regwiz.msm. Or if you are using 2003: Crystal_Managed2003.msm, Crystal_database_access2003.msm, & Crystal_regwiz2003.msm.
A book I've found useful is "Crystal Reports for Visual Studio.Net" by David McAmis.

1/30/2004 3:55:55 PM
I did everthing you mentioned, however, I still have the same errors.  I also read the book and can not find the answer.  May be you can help me by showing me how it should be in IIS if I have the site deployed correctly.

I outlined my IIS to show how it was installed by the setup and its corresponding physical directory. Please tell me how it different from your web site. (windows 2003)
Internet Information Servier
FTP site
Application Pool
Default Web Site
CrystalReportWebFormViewer (C:\program files\MS Visual Studio.Net 2003 \Crystal Reports\Viewers\) (Do you have this setup in here?)
IBuySpy (d:\IbuySpy)
eLoneStar (this is the manufacture name in the web setup property )
CrystalReport (.... but the setup copy the site to here d:\eLoneStar\CrystalReport)
CrystalReport (I defined my virtual direcotry here as D:\Crystal Report)
The 1st problem I have is that I can not get the CrystalReport web site setup as a main web site as I defined. This is ok for now, because I can always move it to the right place as I hoped.
The 2nd problem is how to copy the CrystalReportWebFormViewer default web site to my CrystalReport's web site?
according to article C2011144. "If the virtual directory for the Crystal Reports Web Forms Viewer exists in 'Default Web Site' and the web application's web site is not 'Dafult Web Site', Copy the virtual directory to the web application's web site." How do you do that? or Do you need to do that?
I hope this can let you understand my specific questions. If you prefer, send me detailed information or illustration to my email tmccuan2@yahoo.com

1/30/2004 6:17:10 PM
I think your problem is more of an asp.net/IIS problem than it is Crystal Reports.  Some one with more asp.net experience may be able to tell you exactly how to do what you want.  I'll tell you how I've got mine set up.

Internet information Services
---Computer Name(your web server1?)
--------ftp site
--------Default web site
------------mApp(my application) - this is were all of my files installed
All of my files were installed under the default web site. Which is located at C:\Inetpub\wwwroot. The CrystalReportWebFormViewer2 went to the exact same location as yours did.
In my setup the manufacturer is Fiserv. But that does not generate anything under IIS. The virtual directory for the "Web Application Folder" is mApp.
If I understand what you are trying to do. You want your application to be its own web site separate from the default web site. like I have mine.
I think what you need to do is change the "TARGETDIR" property. If you go back to your "File System" explorer & look at the properties for the "Web Application Folder" there is one called "Property" & it is set at TARGETDIR. This defaults to the default web site. So used together with the "Virtual Directory" property, it will be installed at \TARGETDIR\Virtual Direcory. In my case it is C:\inetpub\wwwroot\mApp.
What you need to do is change the TARGETDIR property. Either thru the setup project or during the installation of your app. Unfortunatly I don't know exactly how to do either. When you run the setup doesn't it ask you what port number to use & the name of the virtual directory?
I may be off base here but, I'm thinking that you may have to set up another web site under IIS. Lets say you call it MyWebSite & you point it to your D:\MyWebSite. Then for the Web Application Folder you say Crystal Report for the virtual directory property. Then when you run the installation you enter MyWebSite instead of letting it use the default settings. Then all of your stuff would be under d:\MyWebSite\crystal report. & I would guess that either a new CrystalReportWebFormViewer would be created that either points to a new set of files on your D: drive Or back to the ones on your C: drive.
It also occured to me that instead of copying the CrystalReportWebFormViewer files to your directory that you could use the IIS wizard & setup another virtual directory & point it to where the original files are. At least then you won't get that error about them already being there.
Anyway I hope that at least gives you someplace to start.
1/30/2004 8:41:53 PM
Believe it or not, the illustration of your IIS settings helped me a lot.  I may have basic IIS problems on our windows 2003 server.  I like to confirm 2 more questiona.  Are you deploying your crystal reports site on the intranet or internet? Do you have server extention installed on IIS?  

From day one I tried to deploy any .NET projects, I have to create a New Web Site from the WEB SITE category otherwise, it will not be able to be viewed on the internet. If I created under the "default web site", then I can only see the site inside our own network or intranet but not internet.
I acctually did the same steps as described in your last 2 paragrsphs and expected the same result as you did. Yet, that is not the case. I end up have to manually move the files over the web site myself. I can not move the WebFormviewer2 becasue it is already created. Even I deleted it, it still says "IIS may not start the site, Another Site may already been using the port..."
I'd appreciate if you can answer the 2 questions I had. If so, I may need to do something on our IIS server.
Meanwhile, I found out the Targetdir property. However, it is grayed out. I just built another setup project and did an install. It still created under the same e-LoneStar web site eventhough I changed everthing over to the CrystalReports web site. I have to find out how to change the Targetdir property.
Thanks a lot,
2/2/2004 4:44:54 PM
It is an inhouse intranet web site.  & server extensions have not been installed.  

If you have successfully installed other web applications that did not use crystal reports, then I'm at a loss to explain why the crystal reports does not work.
Sorry I didn't have better advice.
2/2/2004 6:12:11 PM

Similar Artilces:

crystal reports .net -> crystal reports .net 2003
recently converted a project from .net to .net 2003. The 2 crystal reports I had in the project do not load when executing the application. The project itself within 2003 will allow me to multiplat the crystal reports, however when it comes to execution time I get the error: Invalid Data Source. If this isn't the right forum please point me to the right one as this is really the only website I know of with a large reader base. >to multiplat the crystal reports To what the crystal reports? Do you have the same database connections established and verified in your 2003 s...

Converting Crystal Reports 9 report to Crystal Reports .NET report
I have a web page that is supposed to display a crystal report.  The report is fully written and functional in crystal 9 (non-.Net)  .  Is there a way to convert my .rpt so that I can just include it in the new web site? why you don't try to compile project with .net and include your report. then if crystal report is power tool will suggests you with conversation tool    My blog is here.Please remember to 'Mark as Answer' if this post answered your question! Wow it really was that easy!  I just added the old crystal report into my .NET proj...

Errors with all my reports after upgrade from Bundeled Crystal.NET (VS2003) to Crystal XI Developer for .NET
All my Crystal reports were developed using the bundled Crystal in VS 2003.  I just installed the Crystal XI for .NET Developer version that we purchased and now I get an error when running my reports.  (I am running them in debug mode on my development machine). I have tested it on several different reports.  I did not change the code, this worked fine in the previous version. First I reference my report (AccountList is the AccountList.rpt report that is in my project): Dim myReport As New AccountList Then I start rolling through the report's tables to update the log...

Upgrade VB.net 2002 to VB.net 2003
Hi, i want to upgrade VB.net 2002 to VB.net 2003.what is the procedure?Uninstall 2002 and Install 2003 or something else? VB.net 2003 includes Framework 1.1 or i will install it separately?thanx in advance ...

integration of Crystal Report with .NET ; crystal report viewer not displaying in Toolbox
Hi I m new to Visual Web Developer 2005 Express Edition. I want to integrate Crystal Report with .NET. In my Toolbox , Crystal Report Viewer is not displaying. How to make it possible? + How to call my report from asp.net 2.0. Need source code plz.*Share Knowledge Every TIME Crystal Reports for .NET does not come with VWD Express.  It only comes with VS 2005 Professional (I'm not sure about the Standard edition).If you have Crystal Reports 10 or XI, you can installed the .NET libraries for Crystal and then use them within VWD Express, noting that you have to build your reports ...

Can somebody help
I Seem to be going nuts ! I know it has to be simple but I am missing the link. I haven't used crystal reports with asp.net before. So pardom me if my problem sounds silly. My requirement is very simple actually. I am using asp.net 1.1 with vb.net in vs.net 2003 with the inbuilt crystal reports control. I have to connect to a sql server 2000 database to extract rows from a stored procedure which accepts a parameter and the report has to be in Mail label format. I referred various books and web sites and according to that , added a crystal reports file to the project and selected the store...

Problem with passing parameters from VB.Net to Crystal reports
I have been using Crystal reports XI with my ASP.NET website for quite some time now. I am trying to add a new crystal report to my ASP.NET website. I was able to design and create the website fine. But when I try to run the report, at run time I get 'System.Runtime.InteropServices.COMException: Invalid index' error. This happens when I try to set the paramater value for my stored procedure. I am pretty sure that I have spelled the parameter name correctly. I notice a couple of things here. The ParameterType for this new report says 'StoredProcedureParameter' where as for all...

VB .Net 2003 and Crystal Reports 8.5
When I had VS .Net 2002, it had Crystal Reports included in the program. When I clicked on Add new item, there was a crystal report icon to choose. Now that I have just VB .Net 2003 and the stand alone version of Crystal Reports 8.5, there is no button inside VB .Net to create a new Crystal Report. Can someone tell me if its possible to incorporate Crystal Reports 8.5 with my VB .Net 2003? If so, how do you do it? If not, can someone give me an example of how you would go about opening up a Crystal Report in a VB .Net 2003 Web page? Thanks Anyone have any ideas? Yes, it sh...

Crystal Reports in VB.NET
I am not new to vb.net or Crystal but I am new to incorporating the two.   What do I need to add reference to inorder to show an already created Crystal Report?  And what is the form control for viewing Crystal Reports?...

Sending SMS using vb.net or C#.net using vb.net or c#.net
Hi  My requirement is I hav one csv file with these fields id,mobilenum,messgae,status.intiallu staus is 0. once i read the all fileds and take that mobile number.using tat mobile number  i need to send sms .after sending sms i shuld change status as 1 How to send sms thru coding (please dont provide any links.if it is provide also please give working links becox i checked codeproject .i didnt get any nice link. and also provide the how to update the status field im csv file   Thank ssandhya   To send SMS, you need some third party SMS providers. if you consul...

Upgrading vb.net 2003 to vb.net 2008 the name '__o' is not declared
Hi I had an application in vb.net 2003. I chose to upgrade it to vb.net 2008. Now I have 153 errors telling me that the name '__o' is not declared. In one page where I get this error, It's on a <tr> statement. I searched in google and I saw that we could put <%=""%> at the beginning of the page, but I still have the error message. Any idea? Hi myriam_giroux,I think you need to be more specific information. When you are receiving errors during compilation in Visual Studio or Visual Web Developer, the Error list window will indicate the line in the sour...

Printing from VB .Net/Crystal Reports
I have a report that prints just fine to NT networked printers. However, it fails when it is sent to a ipp printer. The error messge is: An Exception 'Unhandled Win32 Exception' has occurred in Spoolsv.exe The VB code itself seems to execute without error. I get to the End Try of this code without triggering the Catch code. The unhandled exception comes after the call to the printer and before the End Try. Here is the code: Dim rptRevenueTracking As New ReportDocument Dim strLoadPath As String = "D:\Crystal.Net\Bar\Reports\HospitalCharges.rpt" Try ...

Cannot view crystal report in VB.Net
All,, Iam working on .net 2003 and crystal reports.  I created a report by name EventReport.rpt and i tried to attach that with vb.net and when i execute the .aspx program i cannot view the report.  Can anyone here help me out ??? My source code is given below Imports CrystalDecisions.CrystalReports.Engine Imports CrystalDecisions.Shared Imports CrystalDecisions.ReportSource   Dim report_url As String = "\Reports\EventReport.rpt"  Private Sub cmdOk_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdOk.Click Dim strCryst...

Call Independenly Designed Crystal Report Using cr viewer control in vb.net web apps
Hi, I have designed the crystal report independently in version 9.0 with one parameter field. i want to call that report from the web application and pass the parameter. so that the report can show me the right value from the data base of SQL server. How can i do that?? plz hlp me. Tauseef Just do Add >> Existing Object to add the report to your project. Then, you can use that report file just as if you had created it in Visual Studio. This works for all versions 8.5 or better. For examples of passing parameters, support.businessobject.com has a good example in...

Web resources about - upgrading vb.net to vb.net 2003 crystal report viewer problem. - asp.net.crystal-reports

Facebook Starts Upgrading Profiles To Timeline
A couple of readers told us that timeline previews have kicked in on their profiles without their having initiated the change themselves. A welcome ...

Facebook Upgrading “Insights” Metrics Dashboard for Page Managers Tonight
Facebook has just begun pushing an upgrade to its “Insights” metrics dashboard for Facebook Pages that gives administrators more visibility into ...

Flickr: Help: Free Accounts, Upgrading and Gifts
Flickr is almost certainly the best online photo management and sharing application in the world. Show off your favorite photos and videos to ...

Upgrading From Windows 1.0 to Windows 8 On Actual Hardware - YouTube
If you're watching this video, you've probably seen the other videos that prove it is possible to upgrade from Windows 1.0 all the way to Windows ...

Coalition's NBN will need ongoing, costly upgrading, experts warn
The Coalition's planned broadband infrastructure will "freeze" broadband speeds, and need ongoing and expensive upgrading to resemble the system ...

Beware of unintended and costly consequences when upgrading houses
Meeting the Building Code measures on energy efficiency is a potentially tricky business, even if you are upgrading or extending only one part ...

Nuclear states still upgrading stocks
Nuclear armed states continue to upgrade their stockpiles despite s trend towards global disarmament.

Apple users face issues upgrading to iOS 9
Apple customers were facing issues while upgrading to iOS 9, which was released this morning in Australia, technology blog 9to5Mac reported. ...

Promise check: $16m towards upgrading Hobart's Cadbury factory
Keep track of the Coalition's promise to spend $16 million on upgrading Hobart's Cadbury chocolate factory.

Upgrading IOIO to Bluetooth - YouTube
An instructional video showing how to upgrade IOIO's firmware in order to make it Bluetooth capable. Downloads are at: https://github.com/yt ...

Resources last updated: 1/5/2016 9:03:43 AM