Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not IsPostBack Then Dim report As New MyReports.NetIncomeByOffice ReportViewer1.Report = report End IfEnd SubI am using a telerik reporting cs file which has designer and resx file...I want to use the same file or report fro my another project..so i copied them over to my new project and changed the default namespaces of the cs file to the current project namespace but still get an error says:
Error 1 Could not load file or assembly 'file:///C:/Windows/assembly/GAC_32/ESRI.ArcGIS.ADF.Connection/10.0.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.ADF.Connection.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format. Line 144, position 5. C:\Projects\EnbridgeFlanagan\SilverlightApplication1.Web\MissingPhotos .resx 144 5
Public Shared Function GetShipToInfo(ByVal Name As Object, ByVal Addr1 As Object, ByVal Addr2 As Object, ByVal City As Object, ByVal State As Object, ByVal PostalCode As Object, ByVal Country As Object, ByVal Carrier As Object, ByVal ShipDate As Object) As String Dim address As String = "" If Not IsDBNull(Name) AndAlso Name IsNot Nothing Then address &= Name.ToString.Trim & vbCr End If If Not IsDBNull(Addr1) AndAlso Addr1 IsNot Nothing Then address &= Addr1.ToString.Trim & vbCr End If If Not IsDBNull(Addr2) AndAlso Addr2 IsNot Nothing AndAlso Addr2.ToString.Trim.Length > 0 Then address &= Addr2.ToString.Trim & vbCr End If If Not IsDBNull(City) AndAlso City IsNot Nothing Then address &= City.ToString.Trim End If If Not IsDBNull(State) AndAlso State IsNot Nothing Then address &= ", " & State.ToString.Trim End If If Not IsDBNull(PostalCode) AndAlso PostalCode IsNot Nothing Then address &= " " & PostalCode.ToString.Trim & vbCr End If If Not IsDBNull(Country) AndAlso Country IsNot Nothing AndAlso Country.ToString.Trim.Length > 0 Then address &= Country.ToString.Trim & vbCr End If address &= vbCr & "Carrier: " If Not IsDBNull(Carrier) AndAlso Carrier IsNot Nothing Then address &= Carrier.ToString.Trim End If address &= vbCr address &= "Ship Dt: " If Not IsDBNull(ShipDate) AndAlso ShipDate IsNot Nothing Then address &= CDate(ShipDate).ToString("d") End If Return address End FunctionHopefully this may help some of the other Telerik Reporting developers out there. The key is...ALWAYS ALWAYS ALWAYS check the report as a PDF before deploying reports to your user community.
<add name="RacingApp.Properties.Settings.RacerAveragesSQL" connectionString="Data Source=C:\data\RacingAppData.sdf" providerName="Microsoft.SqlServerCe.Client.4.0" /> I have the SQL 4.0 CE and VS 2010 Tools installed. I have seen this Thread, which seems to be similar but have done everything mentioned with no resolution? Please help, this has been a thorn in my side for weeks now... thanks, SD.