.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Post New Web Links

RS2008 Export to PDF failed with System.NullReferenceException

Posted By:      Posted Date: September 08, 2010    Points: 0   Category :Sql Server
 
Hi, I have a rdl file from RS2005. I can generate the report, export it to PDF without any problem. But with the same rdl file in RS2008 and same data, when I export it to PDF. I got the following error in the ReportServerService log file. reportrendering!ReportServer_0-6!135c!08/13/2009-10:08:14:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException: An error occurred during rendering of the report., ;  Info: Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException: An error occurred during rendering of the report. ---> Microsoft.ReportingServices.OnDemandReportRendering.ReportRenderingException: An error occurred during rendering of the report. ---> System.NullReferenceException: Object reference not set to an instance of an object.    at Microsoft.ReportingServices.Rendering.HPBProcessing.Paragraph.get_SpaceBefore()    at Microsoft.ReportingServices.Rendering.RichText.LineBreaker.FlowParagraph(Paragraph paragraph, Directions direction, IntPtr hdc, Single dpiX, FontCache fontCache, FlowContext flowContext, Boolean keepLines, SizeF flowContextSize, Int32& contentOffset)    at Microsoft.ReportingServices.Rendering.RichText.LineBreaker.Flow(TextBox textBox, IntPtr hdc, Single dpiX, FontCache fontCache, FlowContext flowContext, Boolean keepLines, Single& height)    at Microsoft.ReportingServices.Re


View Complete Post


More Related Resource Links

FormsAuthentication.SignOut() results in System.NullReferenceException

  

Hi. I am getting a "System.NullReferenceException" when I call 
FormsAuthentication.SignOut() from Session_End method in global.asax. 
Code is as follow:
void Session_End(object sender, EventArgs e) 
    {
        FormsAuthentication.SignOut();

System.NullReferenceException: At Createtask Activity

  

HI,

I created  Approval Workflow application(.net3.0), it has successfully deployed at sharepoint server, but when executing  workflow at createTask activity, the following errror has occured.

System.NullReferenceException: Object reference not set to an instance of an object.     at BasicApprovalWorkflow.Workflow2.createApprovalTask_MethodInvoking(Object sender, EventArgs e)

below is the code :

private

 

void createApprovalTask_MethodInvoking(object sender, EventArgs e)

{

 

System.Data.SqlClient.SqlException: Login failed for user . Reason: The account is disable

  

Hi All,

Thank you for advance.

I created a widows service for mail schedule with c#.net and sql server 2005 and it is working fine for past one year.

now sometimes i am getting the "System.Data.SqlClient.SqlException: Login failed for user '<UserName>'. Reason: The account is disabled." error.

then i restarted the windows service manually and working.

what is the problem in my sql server connection and how to fix that issue?


Error: 18456, Severity: 14, State: 16 Login failed for user 'NT AUTHORITY\SYSTEM'

  
Hi,   can someone help me with this error. Error: 18456, Severity: 14, State: 16 Login failed for user 'NT AUTHORITY\SYSTEM' [CLIENT:<local machine>] I've found several Threads but not with the NT AUTHORITY\SYSTEM.   Thanks for help.   Jens

Crystal Report Export - Database Logon Failed Error -

  
 Below is my code in VB.Net.  I am using PUSH method to populate the DataSet.  I use Crystal Report and VS 2003.   I am trying to export a crystal report to a PDF and I am getting a database log on error.   Why would it give me this error since the report is getting its data from the DataSet.  Please help!!!  ---------------------------------------------- Try Dim oStream As New MemoryStream Me.crpt_numIssues.ExportToStream(ExportFormatType.PortableDocFormat) Response.Clear() Response.Buffer = True Response.ContentType = "application/pdf" Response.BinaryWrite(oStream.ToArray()) Response.End() Catch ex As Exception Dim mgsText As String mgsText = "ERROR: An error occured. <br>" + ex.ToString Me.ShowErrorPanel(mgsText) End Try ------------------------------ The error is: CrystalDecisions.CrystalReports.Engine.LogOnException: Database logon failed. ---> System.Runtime.InteropServices.COMException (0x8004100F): Database logon failed. at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext) at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqCo

login failed for user nt authority/system

  
Please help on This error, I'm Using sql 2005 , windows authentication Event viewer,application: source :mssgl server,id 18456,servirty 14 state 16, logine failed for use "nt Athority/system,client: local machine , this error i'm gatting frequently Regards Asif

SSRS 2008 Export to PDF fails for large data with System.Exception: Parameter is not valid

  
Hi, We are working on Range Bar Chart using SSRS 2008. The report has huge data. It is properly displaying the data, but when we tried to export to pdf it is failing with the following exception. Exporting to excel works fine. Also if the report has small/medium data it is property exporting to PDF. It is failing only in case of huge data (we have custom page size of 28" X 14"). Of course the report has lot of expressions we used to customize the colors/text as per our requirements.   Server Error in '/Reports_SQLDEV2008' Application. Parameter is not valid. Description: 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. Exception Details: System.Exception: Parameter is not valid. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace:   [Exception: Parameter is not valid.]   [Exception: An error occurred during rendering of the report.]   [Exception: An error occurred during rendering of the report.]    Microsoft.Reporting.WebForms.ServerReport.ServerUrlRequest(Boolean isAbortable, String url, Stream ou

System.NullReferenceException: Object reference not set to an instance of an object

  
        BVWS.Vardering oWS = new BVWS.Vardering();        BVWS.strucBPVardering oSvar1 = new BVWS.strucBPVardering();        BVWS.StrucPaket oPaket = new BVWS.StrucPaket();                 if (Page.IsPostBack)        {             oSvar1 = oWS.BpVardering("", "", regnummer.Text, "2000", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", DropDownList1.SelectedValue);      tdCHK1.Visible = false;                  try            {                if (oSvar1.rubst01.Length > 0)                {                   

CrystalReportsException: Load report failed - The system cannot find the path specified

  
I recently added a Crystal Report to a web application within Visual Studio 2010.  I'm using the Push method with a DataSet, and have a CrystalReportViewer control added to an aspx page.  When trying to test the report locally I'm getting an exception when performing the data binding on the CrystalReportViewer control...-----------------------------------------------------------------------------------------------------------------------------------Server Error in '/TestDevelopment' Application. The system cannot find the path specified. Description: 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. Exception Details: System.Runtime.InteropServices.COMException: The system cannot find the path specified. Source Error: Line 7: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Line 8: BindReport() Line 9: CrystalReportViewer1.DataBind() Line 10: End Sub Line 11: Source File: C:\Documents and Settings\acwhifield\Desktop\VS_Projects\TestDevelopment\TestDevelopment\a\CR_Rpt_SubSelNotes.aspx.vb Line: 9 Stack Trace: [COMException (0x80004005): The system cannot find the path specified. ] CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(O

SQL Error with Login: Login failed for user 'NT AUTHORITY\SYSTEM'. [CLIENT: ]

  
<!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman";} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline; text-underline:single;} a:visited, span.MsoHyperlinkFollowed {mso-style-noshow:yes; mso-style-priority:99; color:purple; mso-themecolor:followedhyperlink; text-decoration:underline; text-underline:single;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; font-size:10.0pt; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt;} @page Section1 {size:612.0pt 792.0pt; margin:70.85pt 3.0cm 70.85pt 3.0cm; mso-header-m

Erase Phantom System Health Records failed (reason: 193)

  
Hello, On standalone server job step is failing with below message. ================================== Date  02/08/2010 12:07:48 Log  Job History (syspolicy_purge_history) Step ID  3 Server  DPRSQL1 Job Name  syspolicy_purge_history Step Name  Erase Phantom System Health Records. Duration  00:00:00 Sql Severity  0 Sql Message ID  0 Operator Emailed   Operator Net sent   Operator Paged   Retries Attempted  0 Message Executed as user: DPR\dprsql1. The process could not be created for step 3 of job 0xA4E39092C0176B4AB4A2A2FE0B743FB1 (reason: 193).  The step failed. ===================== -------------------------------------------------------------------------------------- SEELCT @@VERSION: ======================================= Microsoft SQL Server 2008 (SP1) - 10.0.2531.0 (X64) Mar 29 2009 10:11:52 Copyright (c) 1988-2008 Microsoft Corporation Enterprise Edition (64-bit) on Windows NT 6.0 <X64> (Build 6002: Service Pack 2) ======================================= No error in SQL Server Errorlog

System.MissingMemberException: Overload resolution failed because no accessible 'Parameters' accep

  
Hi ExpertsI have justed tried to configure the PHP on my web server following the article (http://www.iis-aid.com/articles/how_to_guides/installing_php_5_iis_5_simple_steps?page=0%2C0) and php now runs fine without any problem but it have affected by asp.net web applications.I am receiveing the following error on the server, so I undone all the changes for php and restarted the server but no luck. The application works on the development server without any problems.I would like to if there is anyway to reset and get this working and help what it may have caused.Error: System.MissingMemberException: Overload resolution failed because no accessible 'Parameters' accepts this number of arguments. Dim i As Integer Dim strParameters As String = "" For i = 0 To objcmd.Parameters.Count() - 1 strParameters += objcmd.Parameters(i).ToString() & " - " & objcmd.Parameters(i).Value & "<br>" NextThe exception throws on the code "objcmd.parameters(i).tostring()".Please advise?Kind RegardsBhavesh

Directory lookup for the file failed with the operating system error 5

  
Hi I have a Windows desktop application that uses a SQLServer Express database.  The database files are downloaded from my website, followed by the application download (written in VBE).  The first procedure is to attach the database to the SQLServer instance from within the application. I have two test machines one runs Windows XP x84, the other Windows 7 x64.  I never have issues on attaching the database files in my test envirnoment but twice now other people downloading have got the following error System.Data.Sqlclient.sqlexception (ox 80131904) Directory lookup for the file C:\Documtents and Settings\Administrator\Desktop\Tem1.mdf failed with the operating system error 5 (failed to retrieve text for this error. Reason 1815) changed database context to 'master'. I'm not sure what the problem is and therefore how to correct the issue.  I attach the database in code using the create statement e.g. cmd7.CommandText = "USE Master CREATE DATABASE Tem1 ON PRIMARY (FILENAME = '" & DBFullPath & "') LOG ON (FILENAME = '" & DbLogPath & "') FOR ATTACH" Any help or suggestions would be very much appreciated. Chris    

failed to create. Operating system error 5(failed to retrieve text for this error. Reason: 15105)

  
Hi, OS: Windows 2008 R Database: SQL Server 2008 We have SSIS package installed on the SQL Server 2008, one of the task in SSIS package backs up database to the "E:\M1G3Datastore" drive. This pacakage was working fine for the last 4 months, this morning the task that backs up the database fails, the error message is: BackupDiskFile::CreateMedia: Backup device 'E:\M1G3Datastore\M1Test.bak' failed to create. Operating system error 5(failed to retrieve text for this error. Reason: 15105). The following query work, this query backs up the database to C drive and it works: BACKUP   DATABASE [M1Test] TO DISK = N'C:\M1G3Datastore\M1Test.bak' WITH   NOFORMAT, INIT, NAME = N'M1Test-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10 GO THE FOLLOWING QUERY DOES NOT WORK, PLEASE NOTE THE DRIVE IS CHANGED TO "E" IN THIS INSTANCE     BACKUP DATABASE [M1Test] TO DISK = N'E:\M1G3Datastore\M1Test.bak' WITH   NOFORMAT, INIT, NAME = N'M1Test-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10 GO  Please help, and MANY thanks in advance   sword

System.NullReferenceException: Object reference not set to an instance of an object.

  
I am working on a Windows 7 professional machine, 64bit,  to learn SQL server 2008.   i'm working with the microsoft sql server 2008 step by step book and i'm stck on configuring email notificaions. i've already goe through the GUI to configure my email settings. however, sql server agent is disabled. when i try to start the service i get the following error: Unhandled exception has occurred in your application....... Object reference not set to an instance of an object. Here are the details of the error message: See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. Server stack trace:    at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ObjectExplorer.FindObjectExplorerFrame()    at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ObjectExplorer.GetObjectExplorer(Boolean activateWindow)    at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ObjectExplorer.ShowError(Exception e)    at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.Service.Start()    at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, In

HyperlinkField.DataNavigateUrlFields gets me System.NullReferenceException:

  

Hi All,

I am having an issue with something that seems to be very simple yet it is not. 

I have a HyperlinkField and I am trying to tell it what the Link is by doing this statement: 

CustomerNo.DataNavigateUrlFields = Paramater;


Paramater is defined as: string[] Paramater = new string[10]; and assigned Paramater[0] = "cus_link";


Everytime I get this error: 

ERROR: Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object. at System.Web.UI.WebControls.HyperLinkField.OnDataBindField(Object sender, EventArgs e) at System.Web.UI.Control.OnDataBinding(EventArgs e) at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBind() at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBind() at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBind() at System.Web.UI.WebControls.GridView.CreateRow(Int32 rowIndex, Int32 dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, Boolean dataBind, Object dataItem, DataControlField[] fields, T

Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend