Crystal Reports :: Error "Unable To Cast Object Of Type 'CrystalDecisions.Web.CrystalReportViewer'

Jan 6, 2011

I have installed the final version of Crystal Reports for Visual Studio 2010. I created a new ASP.Net project, saved it, closed it, and then came back to it later. I was prompted to convert the project because of an out of date version of Crystal Reports. But I just created the project...how can the version already be out of date? Also, once the conversion is complete the CrystalReportViewers error stating "Unable to cast object of type 'CrystalDecisions.Web.CrystalReportViewer' to type 'CrystalDecisions.Web.CrystalReportViewerBase'. I am using .NET Framework 3.5 (I cannot use 4.0 for other reasons). Is this the cause?

View 2 Replies


Similar Messages:

Crystal Reports :: Type 'CrystalDecisions.Web.CrystalReportViewer' Is Not Defined.

Jul 14, 2010

I get this error while compiling in vs studio 2008 but in vs 2005 i dont get this error please help view code below

:Designer code:Option Strict On
Option Explicit On
Partial Public Class stockvaluation [code]....

View 1 Replies

Crystal Reports :: 'CrystalReportViewer' Is Ambiguous In The Namespace 'CrystalDecisions.Web'

Feb 17, 2011

I installed Microsoft Visual Studio 2010 and I got a setup of crystal report from my friend titled with "CRforVS_13_0" , everything till now smooth and the world that rose !

let us the error scenario

1 - Create new Website
2 - add new table on the Default.aspx web page
3 - Build solution everything look great
4 --- Drag drop of the control CrystalReportViewer and build to find the below errors

Error 2 'CrystalReportViewer' is ambiguous in the namespace 'CrystalDecisions.Web'. C:UsersuserDocumentsVisual Studio 2010WebSitesWebSite6Default.aspx 28

Error 3 'CrystalReportViewer' is ambiguous in the namespace 'CrystalDecisions.Web'. C:UsersuserDocumentsVisual Studio 2010WebSitesWebSite6Default.aspx 28

Error 4 'CrystalReportViewer' is ambiguous in the namespace 'CrystalDecisions.Web'. C:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Fileswebsite64931b126339b72a7App_Web_tyipm02u.2.vb

Error 5 'CrystalReportViewer' is ambiguous in the namespace 'CrystalDecisions.Web'. C:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Fileswebsite64931b126339b72a7App_Web_tyipm02u.2.vb

Error 6 'CrystalReportViewer' is ambiguous in the namespace 'CrystalDecisions.Web'. C:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Fileswebsite64931b126339b72a7App_Web_tyipm02u.2.vb

Error 1 C:UsersuserDocumentsVisual Studio 2010WebSitesWebSite6Default.aspx(28): error BC30560: 'CrystalReportViewer' is ambiguous in the namespace 'CrystalDecisions.Web'.

Error 7 Unable to load referenced library 'C:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Fileswebsite64931b126\_shadow339b72a725213691630133667App_Web_site.master.cdcab7d2.0yuyrufa.dll': The system cannot find the path specified.

Error 8 Unable to load referenced library 'C:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Fileswebsite64931b126\_shadow339b72a725213691630133667App_Web_site.master.cdcab7d2.0yuyrufa.dll': The system cannot find the path specified. C:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary
ASP.NET Fileswebsite64931b126\_shadow339b72a725213691630133667App_Web_site.master.cdcab7d2.0yuyrufa.dll

View 2 Replies

Crystal Reports :: Compiler Error Message CS0433 - Type 'CrystalDecisions.Web.Cry

Aug 1, 2010

I upgraded my web application from visual studio 2003 to 2008. When I want to create a report in visual studio 2008 and receiving this error at runtime. I am able to compile but when runnning thats when I am getting this error. How can I solve this problem?

Server Error in '/IRPSDEV' Application.

Compilation Error

Description:
An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0433: The type 'CrystalDecisions.Web.CrystalReportViewer' exists in both

'c:WINDOWSassemblyGAC_MSILCrystalDecisions.Web10.5.3700.0__692fbea5521e1304CrystalDecisions.Web.dll' and 'c:WINDOWSMicrosoft.NETFrameworkv2.0.50727Temporary
ASP.NET Filesirpsdev9e97e0a994a2ecdassemblydl3151eb571�0df56e1_6064c201CrystalDecisions.Web.DLL'

Source Error:

[Code]....

Line 161:
Line 162: [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 163: private global::CrystalDecisions.Web.CrystalReportViewer @__BuildControlCrystalReportViewer1() {
Line 164: global::CrystalDecisions.Web.CrystalReportViewer @__ctrl;
Line 165:

Source
File: c:WINDOWSMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET
Filesirpsdev9e97e0a994a2ecdApp_Web_customsapprovedcalimsreport.aspx.cdcab7d2.qc0hdu8q.0.cs
Line: 163
Show
Detailed Compiler Output:

View 2 Replies

MVC :: Unable To Cast Object Of Type 'System.String' To Type' / How To Fix This Error

Mar 24, 2010

i am using this code for send data to view

[Code]....

Controller e 'System.Collections.Generic.IEnumerable [Code]....

by this code i am render view

[Code]....

after run the application i got this error

Unable to cast object of type 'System.String' to type 'System.Collections.Generic.IEnumerable`1[BentaAccounting.Models.Repository.AllData]'.

View 5 Replies

Controls :: GridView Export PDF Error - Unable To Cast Object Of Type

May 7, 2015

I get this error when trying to export selected rows in gridview to pdf format

"Unable to cast object of type 'iTextSharp.text.html.simpleparser.CellWrapper' to type 'iTextSharp.text.Paragraph'."

This my code below:

using (StringWriter sw = new StringWriter()) {
using (HtmlTextWriter hw = new HtmlTextWriter(sw)) {
gdfacture.Columns[0].Visible = false;
foreach (GridViewRow row in gdfacture.Rows) {

[Code] ....

View 1 Replies

C# - Error / Unable To Cast Object Of Type 'd__a31[System.Web.UI.WebControls.DropDownList]'

Nov 26, 2010

I am trying to pass a collection of Dropdown controls as a parameter to a method which takes a collection of type Control as input. While executing I get the following error:

"Unable to cast object of type 'd__a31[System.Web.UI.WebControls.DropDownList]' to type 'System.Collections.Generic.IEnumerable1[System.Web.UI.Control]'."

My code:

[code]....

View 2 Replies

Crystal Reports - Could Not Load Type 'CrystalDecisions.Web.CrystalImageHandler' From Assembly

Aug 9, 2010

I have a Visual Studio project that uses three different Crystal Reports. I've upgraded to Crystal Reports 11.5.3300.0 from the version 10.2.3600.0 due to one of the reports requiring the upgraded version. I updated all of the assembly references in the web.config and installed the new assemblies using merge modules. When I run the project I receive the following error:

Could not load type 'CrystalDecisions.Web.CrystalImageHandler' from assembly 'CrystalDecisions.Web, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'

View 2 Replies

Intermittent Membership.GetUser() Error - Unable To Cast Object Of Type System.Guid?

Jan 24, 2011

This error is occuring randomly, and I can't seem to pinpoint what is causing it. For the most part, the code works fine. I'm confused why it works sometimes, but then suddently craps out on me, lol.It happens in the code when I call upon the asp.net membership provider. It only seems to happen when i use Membership.GetUser() to grab the logged in user's information.

View 9 Replies

C# - Unable To Cast Object Of Type 'Transaction_Time' To Type 'System.Data.DataSet'?

Dec 17, 2010

I have built a dataset named Transaction_Time.I called it on Page_Load

Transaction_Time tranTme = new Transaction_Time();

put it in the session.

Session["Transaction"] = tranTme;

Then I call that session and cast to dataset.

DataSet dstTranTime = (DataSet)Session["Transaction"];

I got the following error.Unable to cast object of type 'Transaction_Time' to type 'System.Data.DataSet'.

[InvalidCastException: Unable to cast object of type 'Transaction_Time' to type 'System.Data.DataSet'.]
Transaction_Time.Page_Load(Object sender, EventArgs e) in c:InetpubwwwrootWilliam29_11_2010Transaction_Time.aspx.cs:47
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

It is OK for some other pages. But for some page, it doesn't.

View 2 Replies

Crystal Reports :: Configuration Error Could Not Load File Or Assembly CrystalDecisions.Web

Feb 13, 2011

when i use CR v13 in my web site there is error message

Configuration Error Could not load file or assembly 'CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file
specified.

View 1 Replies

Configuration :: Unable To Cast Object Of Type 'System.Web.HttpApplication' To Type 'Microsoft.Practices.CompositeWeb.WebClientApplication'

Apr 15, 2010

I got this error and do not know how to solve it.

I've got a subweb as application. It's called ADMIN. It works fine when running locally but when deploying in the development web server, i got the error: Unable to cast object of type 'System.Web.HttpApplication' to type 'Microsoft.Practices.CompositeWeb.WebClientApplication'

I've got a App_global.asax.dll and App_global.asax.complied on the subweb folder Admin.

View 1 Replies

Crystal Reports :: Getting Error Unhandled Exception: CrystalDecisions.CrystalReports.Engine.InternalException?

Jun 28, 2010

When running my crystal report I got the follwoing erro r

Unhandled Exception: CrystalDecisions.CrystalReports.Engine.InternalException: E
rror in File C:DOCUME~1aliLOCALS~1Temp1 emp_8b7deeee-5769-4457-8c1f-f21fa8
c49cb5.rpt:
Failed to open a rowset. at ☻.☻N(String ♠-, EngineExceptionErrorID ♠0)
at ☻.☻I(Int16 ♠!, Int32 ♠")
at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestCo
ntext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export()
at CMP_BL_INC_W.Module1.Main()

Also I verified the database and no errors appeared, I use .NET 2003 and crystal report 9

View 3 Replies

Forms Data Controls :: Unable To Cast Object Of Type System

Mar 3, 2010

I need some help on the row updating for a gridview that i bind manually to a list, not using objectdatasource or sqldatasourcehere is my rowupdating. What i want to do for now is just get the values from the textboxes and I will store them to sting variables then I will call my update function and pass those as parameters. How do I get the data from the textboxes that the user just edited. I have the following but I am getting an error: "unable to cast object of type System.UI.LiteralControl to type System.UI.TextBox

View 5 Replies

Configuration :: Unable To Cast Object Of Type 'system.web.security.roleprincipal'?

Jun 30, 2010

I have implemented rights based security as I describe here: http://forums.asp.net/p/1380280/2916291.aspxThis has been working well for awhile now, but I am moving the site to IIS 7 and encountering problems. I am able to reach the login screen for my app - but upon login get this error: "Unable to cast object of type 'System.Web.Security.RolePrincipal' to type 'RightsLib.RightPrincipal'."As described in the linked post, I have a "RightsLib.dll" that contains the relevant classes like "RightsHttpModule.cs", "RightPrincipal.cs" etc...My app no longer seems to be able to work with RightsLib.dll. RightsLib.dll resides in the bin directory of my app, and I have a reference to it in my project.me what I'm doing wrong, or what has changed to affect this in IIS 7?The only relevant entry in Web.config I'm aware of.

[Code]....

View 1 Replies

Forms Data Controls :: Unable To Cast Object Of Type 'System.Web.UI.LiteralControl' To Type 'System.Web.UI.WebControls.TextBox'

Jan 5, 2010

Unable to cast object of type 'System.Web.UI.LiteralControl' to type 'System.Web.UI.WebControls.TextBox'.

[code]....

View 3 Replies

DataSource Controls :: Unable To Cast Object Of Type '<TakeIterator>d__3a`1[System.Char]' To Type 'System.Collections.IList'

Jan 2, 2010

I want to do paging the API Membership without using the datacontrols, but I get this error "Unable to cast object of type '<TakeIterator>d__3a`1[System.Char]' to type 'System.Collections.IList'." when I do this,

[code]....

View 1 Replies

Forms Data Controls :: Unable To Cast Object Of Type 'System.DBNull' To Type 'System.String'.

Oct 1, 2010

Basically, what I did is that: I have a table in SQL database and some of data fields allow null. I built Objectdatasource through dataset. When I built update page using dataset. It generate the following error before showing the update page correctly. It seems I have issue to retrieve the null value from the database through using objectdatasource through dataset. Any suggestions?An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code

View 6 Replies

Databases :: Retrieving From OdbcDataReader / Unable To Cast Object Of Type 'System.Byte[]' To Type 'System.String'

Feb 16, 2010

I have defined an ODBC Command and ODBCdatareader as follows

OdbcConnection myConnection = new OdbcConnection(connectionString);
OdbcCommand myCommand = new OdbcCommand();
myCommand.Connection = myConnection;
myCommand.CommandText = "select UOPGM from GREG.TUSROPTF";
OdbcDataReader myReader;
myConnection.Open();
myReader = myCommand.ExecuteReader();

When I try to retreive from the reader as follows:

while (myReader.Read())
{
string someString = myReader["UOPGM"];
lstNames.Items.Add(someString);
}

I get the following error

Error reading the database. Unable to cast object of type 'System.Byte[]' to type 'System.String'."

I have also tried string someString = (string)myReader["UOPGM"]; to no avail

View 4 Replies

DataSource Controls :: Unable To Cast Object Of Type 'System.DBNull' To Type 'System.String'

May 28, 2010

I am trying to write a table output from SQL database to a gridview/ Data List through an Object Data Source. I am a new starter and your help will be useful.

public List<Staff> GetStaff()
cmd.CommandType =
SqlConnection con =
new
SqlConnection(connectionstring);SqlCommand cmd =
new
[code]...

View 4 Replies

Web Forms :: Unable To Cast Object Of Type 'System.DateTime' To Type 'System.String'

Nov 10, 2010

[Code]....

Above is my code. The error I'm get is, Unable to cast object of type 'System.DateTime' to type 'System.String'.

The column "To" and column "Subject" are strings and column "Receive" is DateTime. I can't made any changes in the database, so I need to write some code to handle casting a string to datetime or if statement as a work around.

View 6 Replies

Unable To Cast Object Of Type 'System.EventArgs' To Type 'System.Web.UI.WebControls.FormVi

Nov 24, 2010

Protected Sub FormView1_ItemCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewCommandEventArgs) Handles FormView1.ItemCreated
Causes Unable to cast object of type 'System.EventArgs' to type 'System.Web.UI.WebControls.FormViewCommandEventArgs'.

The program (asp.net/vb) works fine with FormView1_ItemCommand and FormView1_ItemInserted events but strangely objects to FormView1_ItemCreated. Is it only a VC# event?

View 2 Replies

Web Forms :: Unable To Cast Object Of Type System String To Type System Byte

Feb 20, 2013

Unable to cast object of type 'System.String' to type 'System.Byte[]'....

on line #2

private void download(DataTable dt) { Byte[] bytes = (Byte[])dt.Rows[0]["FileData"];

Response.Buffer = true; Response.Charset = "";

View 1 Replies

DataSource Controls :: Unable To Cast Object Of Type 'System.Data.Linq.DataQuery?

Mar 31, 2010

I wanted to delete the record from data but I receive this error "Unable to cast object of type 'System.Data.Linq.DataQuery`1[training_eval.Course]' to type 'training_eval.Course'.

Dim eval_sure = From ev In db.Evaluates Where ev.course_id = indexcourse Select ev.course_id
Dim del_course = From c In db.Courses Where c.Course_id = indexcourse
db.Courses.DeleteOnSubmit(del_course)
db.SubmitChanges()

View 4 Replies

ADO.NET :: Unable To Cast Object Of Type System.Guid To Type System.String?

Sep 17, 2010

[Code]....
System.InvalidCastException was unhandled by user code
Message=Unable to cast object of type 'System.Guid' to type 'System.String'.
Source=System.Data.Linq
System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execut

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved