System.MissingMethodException on ReportDocument.SetParameterValue
Hello,
I am having trouble identifying the cause and resolution for the MissingMethodException problem I am facing. This only appears on certain machines, so I would guess it is not the code. We have tried to uninstall our custom app that uses the CrystalReportViewer and the Crystal Reports as well as the merge module that installs the Crystal libraries that we need. The following is the configuration on these systems:
.NET Framework 1.1, including 1.1 HotFix (KB928366)
.NET 2.0 Service Pack 1
.NET 3.0 Sercice Pack 1
The following is the output from the Crystal Reports Installation Diagnostic Utility:
Crystal Reports Installation Diagnostic Utility
SYSTEM INFORMATION
User Name: **********************************
Computer Name: ****************************
Operating System: Microsoft Windows XP
Operating System Version: 5.1 Service Pack 3
System Directory: C:\WINDOWS\system32
Total Bytes on System Drive: 79,990,812,672
Bytes Free on System Drive: 6,051,823,616
HKLM\Software: Full Access
HKCU\Software: Full Access
VERSION INFORMATION
atl.dll Version: 3.5.2284.1
atl dll Path: C:\WINDOWS\system32\ATL.DLL
comcat.dll Version: 5.0.2600.1
comcat.dll Path: C:\WINDOWS\system32\comcat.dll
Internet Explorer Version: 7.0.5730.11
Windows Installer Version: 3.1.4001.5512
MDAC Version: 2.8
CRYSTAL INFORMATION
Note, that no Crystal information was retrieved by the installation diagnostic utility, suggesting that no other version of Crystal is installed to generate any conflict there. We have other machines that show the same information, but they work fine. By the way, the merge modules, our custom app, and the reports themselves are built using Crystal Reports 9. Due to some constraints, we need a solution that does not include upgrading to the latest version of Crystal, or even to a later one.
Thanks.
-Carlos.
=================================================
Exception information:
System.MissingMethodException: Method not found: 'Void CrystalDecisions.CrystalReports.Engine.ReportDocument.SetParameterValue(System.String, System.Object)'
Edited by: CarlosLi888 on Aug 31, 2009 7:00 PM
Edited by: CarlosLi888 on Aug 31, 2009 7:01 PM
What is the version of the assembly crystaldecisions.crystalreports.engine.dll referenced in your application?
What version of .NET are you using?
What are the CR merge modules included in your setup program?
What is the version of Crystal Reports you are using (Help | About).
Have you applied any updates for Crystal Reports?
At what point do you get the error? E.g., how what would I have to try and do to reproduce the error here?
Ludek
Similar Messages
-
System.MissingMethodException after adding an optional parameter
I am getting error of System.MissingMethodException after I have an optional parameter in one component and the other component which call it was not build as it call it with old number of parameters.
Only component in which parameter is added was build an deployed as patch. The calling component is old as there is no change in it.
When the calling component run it gives error :
Exception Information
Exception Type: System.MissingMethodException Message: Method not found: 'LabelURLs IPSD.BnB.Transaction.Postage.GetLabelURLs(System.String)'. Data: System.Collections.ListDictionaryInternal TargetSite: Void GenerateScanForm(Int32, Int32) HelpLink: NULL Source:
BnBDispenseQueueProcess
As far as i know it should not raise an error as new parameter is optional. One more thing calling component(EXE) run as windows service.
we found an very wired workaround to make it run. By Removing the changed component once and run calling component which will say DLL not found. The place the same DLL again and calling component works fine:).
I think i am missing some internals of .net.
Let me know if more info needed.Hi,
Type with only optional parameter constructor and no parameter less, will throw this exception when trying to create through Activator.CreateInstance
This issue is addressed here,
http://connect.microsoft.com/VisualStudio/feedback/details/521722/system-activator-createinstance-throws-system-missingmethodexception-with-constructor-containing-an-optional-parameter
Is your component only have optional parameter constructor?
If this post answers your question, please click "Mark As Answer". If this post is helpful please click
"Mark as Helpful". -
Crystal Report with Windows Vista Home Premium
(Why I added Code and my paragraph becomes dis-order??)
Dear all,
This is my first post in this forum. So, if I put at wrong section, Mod please kindly move my thread.
Here is what I'm facing now.
I have an application which is coded in Visual Studio 2005 (VB.Net) using SQL Server Express 2005 edition. This project include report sections which I used Visual Studio built-in Crystal Report. (My development PC is running XP Pro edition)
I already tested it in Windows XP Professional Edition (this is a clean OS no programming or other tools installed in it) and it worked well and it display the report accordingly and correctly.
But when I tested it in Vista Home Premium, it got error and I can't run all reports. I juse ADO.Net connectivity to connect between Database and Crystal Report.
Below is a sample which is provided by Crystal Report under my C:\program files\Microsoft Visual Studio 8\Crystal Reports\Samples\en\Code \ VB_Win_Data_DataSets. The way I connect is follow this project standard. Even the sample project got this error in Vista Home, I think it may be Vista problem or Crystal report problem. It will not my connection problem.
Because my customer PC is running Vista Home Premium, now I'm in dead end. Kindly please tell me what should I do to solve this case.
Thanks.
Here is the error it pop up. (this is just a portion of the error. the others are "Loaded Assemblies" portion).
System.Runtime.InteropServices.COMException (0x8002000B): Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))
at CrystalDecisions.ReportAppServer.DataDefModel.FieldsClass.get_Item(Int32 Index)
at CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinitions.get_Item(Int32 index)
at CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinitions.get_Item(String fieldName)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetParameterValue(String name, Object val)
at VB_Win_Data_DataSets.Form1.ConfigureCrystalReports() in D:\TutorialSampleCodeProjects\VB_Win_Data_DataSets\VB_Win_Data_DataSets\Form1.vb:line 16
at VB_Win_Data_DataSets.Form1.Form1_Load(Object sender, EventArgs e) in D:\TutorialSampleCodeProjects\VB_Win_Data_DataSets\VB_Win_Data_DataSets\Form1.vb:line 23
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Edited by: scsfdev on Jun 28, 2009 8:33 AM
try to add error code. but my paragraph seems to disorder when I add
blog. don't know why.Hi Ludek,
Sorry, I was on vacation and didn't notice the email alert.
I didn't deployed yet. Because I want to make sure it runs OK on vista, I didn't create a setup or deploy project in .Net.
I just build and copy the entire bin folder and required data to Vista PC and test it.
then it hits this error. (All other parts of my program is working well like CRUD data to DB.)
(I did install this file "crredist2005_x86.msi" on Vista PC.)
Thanks for all your support.
I still didn't solve this case.
What I do now is I change the way I connect to Server for all Crystal Reports.
At first I use Dataset and map it to Server.
Now I directly connect to it without pass through dataset. (Use OLEDB SQL Server.)
But I still want to know how to solve this case.
If anyone know it. Please share your idea and experience here.
thanks. -
Missing parameter values when trying to export to pdf in C#
HI all,</BR>
</BR>
I'm having a problem passing a parameter from my c#.NET code through Crystal Reports 2008...</BR>
</BR>
Crystal Reports Developer version 12.1.0.892</BR>
using a WinXP machine</BR>
The parameter I've setted up in Crystal Reports Design is one to dynamically change the query that will run on the report:</BR>
"SELECT * FROM REPORTS.{?Protocolname}_FC_QUERY"</BR>
</BR>
</BR>
The code I use calling one of the reports I must provide:</BR>
</BR>
using System;</BR>
using System.Collections.Generic;</BR>
using CrystalDecisions.CrystalReports.Engine;</BR>
using CrystalDecisions.Shared;</BR>
using System.Data;</BR>
using System.Data.OracleClient;</BR>
using System.Collections;</BR>
namespace CrystalReportsRapportjes</BR>
{</BR>
class MainClass</BR>
{</BR>
public static void Main(string[] args)</BR>
{</BR>
Console.WriteLine("Start of program!");</BR>
string connString = "server=CT_PRD;user id=report;password=report";</BR>
OracleConnection conn = new OracleConnection(connString);</BR>
try</BR>
{</BR>
conn.Open();</BR>
Console.WriteLine("Connection opened.");</BR>
</BR>
Console.WriteLine("Connection Properties:");</BR>
Console.WriteLine("\tConnection String: {0}", conn.ConnectionString);</BR>
Console.WriteLine("\tServerVersion: {0}", conn.ServerVersion);</BR>
Console.WriteLine("\tState: {0}", conn.State);</BR>
QL_ExportReport("C:\\Data\\converted2crystal\\PLANNING_REPORT_params.rpt");</BR>
</BR>
} catch (OracleException e) {</BR>
Console.WriteLine("Error: " + e);</BR>
} finally {</BR>
conn.Close();</BR>
Console.WriteLine("Connection closed.");</BR>
}</BR>
Console.WriteLine("End of program!");</BR>
Console.ReadKey();</BR>
}</BR>
private static void QL_ExportReport(string reportName)</BR>
{</BR>
ReportDocument CR_reportDocument = new ReportDocument();</BR>
DataSet ds = new DataSet();</BR>
CR_reportDocument.Load(reportName);</BR>
CR_reportDocument.SetDatabaseLogon("Reports", "Reports");</BR>
for(int i=0;i<CR_reportDocument.DataDefinition.ParameterFields.Count; i++)</BR>
{</BR>
Console.WriteLine("Reading parameters");</BR>
Console.WriteLine(CR_reportDocument.DataDefinition.ParameterFields<i>.ParameterFieldName);</BR>
if(CR_reportDocument.DataDefinition.ParameterFields<i>.ParameterFieldName==
"Protocolname")</BR>
Console.WriteLine("Correct parameter found, now assigning value");</BR>
ParameterValues ThisPV = new ParameterValues();</BR>
ThisPV.AddValue("TMC999C999");</BR>
CR_reportDocument.DataDefinition.ParameterFields<i>.CurrentValues.Clear();</BR>
CR_reportDocument.DataDefinition.ParameterFields<i>.DefaultValues.Clear();</BR>
</BR>
CR_reportDocument.DataDefinition.ParameterFields<i>.ApplyCurrentValues(ThisPV) ;</BR>
//CR_reportDocument.SetParameterValue("Protocolname","TMC999C999");</BR>
//CR_reportDocument.DataDefinition.ParameterFields<i>.CurrentValues.AddValue(ThisPV);</BR>
}</BR>
CR_reportDocument.Refresh();</BR>
CR_reportDocument.ExportToDisk</BR>(ExportFormatType.PortableDocFormat,"C:\\Data\\converted2crystal\\EDC_PLANNING_RPT_params.pdf");</BR>
CR_reportDocument.Close();</BR>
}</BR>
}</BR>
}</BR>
</BR>
The exceptions he throws using this code is = CrystalDecisions.CrystalReports.Engine.ParameterFieldCurrentValueException: </BR>Missing parameter values. ---> System.Runtime.InteropServices.COMException: Missing parameter values.</BR>
at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException</BR>
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream</BR>
at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream</BR>
at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export</BR>
at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToDisk</BR>
at CrystalReportsRapportjes.MainClass.QL_ExportReport in </BR>c:\Data\sharpdevelopfolder\CrystalReportsRapportjes\CrystalReportsRapportjes\Program.cs:line 72</BR>
at CrystalReportsRapportjes.MainClass.Main in </BR>c:\Data\sharpdevelopfolder\CrystalReportsRapportjes\CrystalReportsRapportjes\Program.cs:line 33</BR>
</BR>
When I use the code</BR>
CR_reportDocument.DataDefinition.ParameterFields<i>.CurrentValues.AddValue(ThisPV);</BR>
instead of</BR>
CR_reportDocument.DataDefinition.ParameterFields<i>.ApplyCurrentValues(ThisPV) ;</BR>
</BR>
the error I get there is:</BR>
System.ArgumentException: Value does not fall within the expected range.</BR>
at CrystalDecisions.Shared.SharedUtils.ConvertToDecimal</BR>
at CrystalDecisions.Shared.ParameterDiscreteValue.set_Value</BR>
at CrystalDecisions.Shared.ParameterValues.AddValue</BR>
at CrystalReportsRapportjes.MainClass.QL_ExportReport in </BR>c:\Data\sharpdevelopfolder\CrystalReportsRapportjes\CrystalReportsRapportjes\Program.cs:line 69</BR>
at CrystalReportsRapportjes.MainClass.Main in </BR>c:\Data\sharpdevelopfolder\CrystalReportsRapportjes\CrystalReportsRapportjes\Program.cs:line 33
</BR>
</BR>
</BR>
Can someone please tell me what's the right way passing a parameter to a report?</BR>
</BR>
Thanks in advance.</BR>You should use the
ReportDocument.SetParameterValue("ParameterName", "ParamValue");
>
Els Cochez wrote:
> When I use the code</BR>
> CR_reportDocument.DataDefinition.ParameterFields<i>.CurrentValues.AddValue(ThisPV);</BR>
> instead of</BR>
> CR_reportDocument.DataDefinition.ParameterFields<i>.ApplyCurrentValues(ThisPV) ;</BR>
> </BR>
> the error I get there is:</BR>
> System.ArgumentException: Value does not fall within the expected range.</BR>
> at CrystalDecisions.Shared.SharedUtils.ConvertToDecimal</BR>
> at CrystalDecisions.Shared.ParameterDiscreteValue.set_Value</BR>
> at CrystalDecisions.Shared.ParameterValues.AddValue</BR>
> at CrystalReportsRapportjes.MainClass.QL_ExportReport in </BR>c:\Data\sharpdevelopfolder\CrystalReportsRapportjes\CrystalReportsRapportjes\Program.cs:line 69</BR>
> at CrystalReportsRapportjes.MainClass.Main in </BR>c:\Data\sharpdevelopfolder\CrystalReportsRapportjes\CrystalReportsRapportjes\Program.cs:line 33</BR>
> </BR>
> </BR>
> Can someone please tell me what's the right way passing a parameter to a report?</BR>
> </BR>
Try parsing the parameter value to a decimal value before setting it as parameter value.
Hope this will help -
Post Author: mhamill
CA Forum: .NET
I have a report which is being published and viewed on the web via a CrystalReportViewer app to display the reports (.rpt files)All other reports are running fine.
When I run this new report in Crystal on my desktop- It works fine. When I publish to the web I get this error:
System.Runtime.InteropServices.COMException: Invalid index
[COMException (0x8002000b): Invalid index.] CrystalDecisions.ReportAppServer.DataDefModel.FieldsClass.get_Item(Int32 Index) +0 CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinitions.get_Item(Int32 index) +30 CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinitions.get_Item(String fieldName) +46 CrystalDecisions.CrystalReports.Engine.ReportDocument.SetParameterValue(String name, Object val) +144 webViewer.webViewer.Page_Load(Object sender, EventArgs e) in C:\Inetpub\wwwroot\reportTool\webViewer\webViewer.aspx.vb:68 System.Web.UI.Control.OnLoad(EventArgs e) +67 System.Web.UI.Control.LoadRecursive() +35 System.Web.UI.Page.ProcessRequestMain() +750
I have REMOVED the parameter field from the report and still get this error. When I view the SQL there is no WHERE clause in the statement.
Any Ideas? It is an elaborate report and I dont want to start over.Post Author: alembic
CA Forum: .NET
Hi, were you able to resolve this problem? I'm getting the same exception when I deploy my report. It works fine on my development machine. The only difference in my case is that SetParameterValue bombs when I try to set a value for a subreport parameter. -
Invalid Index Error when Report is run on Web
Post Author: mhamill
CA Forum: Crystal Reports
I have a report which is being published and viewed on the web via a CrystalReportViewer app to display the reports (.rpt files)All other reports are running fine.
When I run this new report in Crystal on my desktop- It works fine. When I publish to the web I get this error:
System.Runtime.InteropServices.COMException: Invalid index
[COMException (0x8002000b): Invalid index.] CrystalDecisions.ReportAppServer.DataDefModel.FieldsClass.get_Item(Int32 Index) +0 CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinitions.get_Item(Int32 index) +30 CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinitions.get_Item(String fieldName) +46 CrystalDecisions.CrystalReports.Engine.ReportDocument.SetParameterValue(String name, Object val) +144 webViewer.webViewer.Page_Load(Object sender, EventArgs e) in C:\Inetpub\wwwroot\reportTool\webViewer\webViewer.aspx.vb:68 System.Web.UI.Control.OnLoad(EventArgs e) +67 System.Web.UI.Control.LoadRecursive() +35 System.Web.UI.Page.ProcessRequestMain() +750
I have REMOVED the parameter field from the report and still get this error. When I view the SQL there is no WHERE clause in the statement.
Any Ideas? It is an elaborate report and I dont want to start over.Post Author: Ted Ueda
CA Forum: JAVA
The PSReportFactory service, CR Page Server, is only for viewing Crystal Report formats, and not instances in other formats.
For the other formats, ensure you list the SI_FILES property in the InfoStore query, then cast the resulting InfoObject to IContent. The IContent interface support methods to stream the file content from the File Repository Server.
Sincerely,
Ted Ueda -
Report Generator error.
I had a problem running this console application.
I tried to generate report base on template report and input parameters, then to save the results.
I am running this code and get an error:"Invalid object type."
Also I don't sure that the rest of the code is o.k.
Please let me know what I am doing wrong?
Thanks,
Amos
static void Main(string[] args)
string reportTemplate = string.Format(@"{0}INVOICE REPORT.rpt", AppDomain.CurrentDomain.BaseDirectory);
string reportResults = string.Format(@"test.rpt", AppDomain.CurrentDomain.BaseDirectory);
//add parameters here
ListDictionary parameters = new ListDictionary();
parameters.Add("V_BATCH_ID", "2031");
parameters.Add("V_INVOICE_ID", "0");
ReportCrystal report = new ReportCrystal(reportTemplate, reportResults, parameters);
public class ReportCrystal
public ReportCrystal(string reportTemplate, string reportResults, ListDictionary parameters)
ReportDocument reportDocument = new ReportDocument();
ParameterField parameter;
foreach (System.Collections.DictionaryEntry param in parameters)
parameter = new ParameterField();
parameter.Name = (string)param.Key;
parameter.DefaultValues.Add(param.Value);
reportDocument.ParameterFields.Add(parameter);
reportDocument.SetDatabaseLogon("userName", "Password", "serverName", "DB", false);
reportDocument.Load(reportTemplate);
reportDocument.ExportToDisk(ExportFormatType.CrystalReport, reportResults);
Edited by: amos assis on Dec 10, 2008 11:58 AM
I also try to do this:
reportDocument.SetParameterValue((string)param.Key, param.Value);
instead of:
parameter = new ParameterField();
parameter.Name = (string)param.Key;
parameter.DefaultValues.Add(param.Value);
reportDocument.ParameterFields.Add(parameter);
and got exeption ("Database logon failed") at:
reportDocument.ExportToDisk(ExportFormatType.CrystalReport, reportResults);
do I miss something?
AmosHi,
Vital information is missing -
CR Version?
VS Version?
Web or Windows app?
Database?
Database connection - ODBC, OLEDB ?
Also before exporting try to view the report and check the exact error.
Regards,
Amit -
Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX
I am using the following:
1. Crystal Report 10
2. .Net Framework 2.0 for developing page aspx page
3. Oracle Stored Procedure for fetching result set with one input parameter.
I am getting the following error
Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))
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: Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))
Source Error:
Line 30: crReportDocument.Load(reportPath)
Line 31:
Line 32: crReportDocument.SetParameterValue("LASTNAME", "Gagnon")
Line 33:
Line 34: 'Set the ConnectionInfo properties for logging on to the Database
Source File: C:\UnClient940_TEST1\nbkreports\Reportview.aspx.vb Line: 32
Stack Trace:
[COMException (0x8002000b): Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))]
CrystalDecisions.ReportAppServer.DataDefModel.FieldsClass.get_Item(Int32 Index) +0
CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinitions.get_Item(Int32 index) +44
CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinitions.get_Item(String fieldName) +60
CrystalDecisions.CrystalReports.Engine.ReportDocument.SetParameterValue(String name, Object val) +172
Reportview.LoadReport() in C:\UnClient940_TEST1\nbkreports\Reportview.aspx.vb:32
Reportview.Page_Load(Object sender, EventArgs e) in C:\UnClient940_TEST1\nbkreports\Reportview.aspx.vb:26
System.Web.UI.Control.OnLoad(EventArgs e) +80
System.Web.UI.Control.LoadRecursive() +49
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3745
Oracle Stored Procedure Code:
CREATE OR REPLACE PROCEDURE Test_Procedure (
Test_Cursor IN OUT Test_Package.Test_Type,
v_LASTNAME IN Test_Table.LASTNAME%TYPE)
AS
BEGIN
OPEN Test_Cursor FOR
SELECT *
FROM Test_Table
WHERE Test_Table.LASTNAME = v_LASTNAME;
END Test_Procedure;
ASPX.NET Page
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Imports CrystalDecisions.Web
Imports System.Collections
Imports System
Partial Class Reportview
Inherits System.Web.UI.Page
Dim crtableLogoninfos As New TableLogOnInfos()
Dim crtableLogoninfo As New TableLogOnInfo()
Dim crConnectionInfo As New ConnectionInfo()
Dim CrTables As Tables
Dim CrTable As Table
Dim TableCounter
Dim reportPath As String '= Server.MapPath("Report1.rpt")
'Define Variables to read Session variables (Parameter Values)
Dim s_repID As String, s_repName As String, s_repPath As String, reportPath1 As String
Public Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Session("repid") = Request.QueryString.Item(0)
s_repID = Session("v_RepID")
s_repName = Session("v_RepName")
s_repPath = Session("v_RepPath")
reportPath1 = s_repPath & s_repName
reportPath = Server.MapPath(reportPath1)
LoadReport()
End Sub
Private Sub LoadReport()
Dim crReportDocument As New ReportDocument()
crReportDocument.Load(reportPath)
crReportDocument.SetParameterValue("LASTNAME", "Gagnon")
'Set the ConnectionInfo properties for logging on to the Database
With crConnectionInfo
.ServerName = System.Configuration.ConfigurationManager.AppSettings("ServerName")
'If you are connecting to Oracle there is no DatabaseName. Use an empty string
.DatabaseName = System.Configuration.ConfigurationManager.AppSettings("DatabaseName")
.UserID = System.Configuration.ConfigurationManager.AppSettings("UserID")
.Password = System.Configuration.ConfigurationManager.AppSettings("Password")
End With
CrTables = crReportDocument.Database.Tables
'Loop through each table in the report and apply the LogonInfo information
For Each CrTable In CrTables
crtableLogoninfo = CrTable.LogOnInfo
crtableLogoninfo.ConnectionInfo = crConnectionInfo
CrTable.ApplyLogOnInfo(crtableLogoninfo)
Next
'Set the viewer to the report object to be previewed.
myCrystalReportViewer.ReportSource = crReportDocument
End Sub
End Class
Any help would be highly appreciated.
Regards
NabeelSame problem here.
Assemblies I'm using are 10.2.3600.0 version.
Of course, there should really have been a managed exception here rather than a HEX result COM Exception I think ...
But anyway - I get this error after defining a Parameter Field in the report "Users", and I am simply trying to pass a string array of parameters into the report.
ParameterFieldDefinition paramField = crDoc.DataDefinition.ParameterFields[0];
ParameterValues paramVals = paramField.CurrentValues;
ParameterFields userParameters = new ParameterFields();
ParameterField userParameter = new ParameterField();
//These don't work here
//userParameter.Name = "Users";
//userParameter.Name = "@Users";
userParameter.Name = "?Users";
foreach (string user in Configuration.UsernamesArray)
ParameterDiscreteValue userDiscreteReusableValue = new ParameterDiscreteValue();
userDiscreteReusableValue.Value = user;
paramVals.Add(userDiscreteReusableValue);
userParameter.CurrentValues.Add(userDiscreteReusableValue);
paramField.ApplyCurrentValues(paramVals);
// Add param object to params collection
userParameters.Add(userParameter);
// Assign the params collection to the report viewer
crystalReportViewer.ParameterFieldInfo = userParameters;
crystalReportViewer.ReportSource = crDoc; -
How to troubleshoot Crystal Errors
Hi,
I am hoping someone can help me. We print Crystal Reports through a third part application. We have Crystal 2008 developers edition installed. Things will be fine and after about the 10th job we receive the following error:
Exception:CrystalDecisions.Shared.CrystalReportsException
Message:Load report failed.
Source:CrystalDecisions.CrystalReports.Engine
Target:Void EnsureDocumentIsOpened()
Stack trace: at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
at Accellos.Integration.IntegrationServer.InitReport(String reportId, String reportFileName, PlatformDataProviderConnectionInfo conInfo, IEnumerable`1 tables, IEnumerable`1 parameters)
Inner Exception:System.Runtime.InteropServices.COMException
Message:Unknown error 0x80040200
Source:sacommlayer.dll
Target:Void Open(System.Object ByRef, Int32)
Stack trace: at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
Edited by: KarenBrookes on Jul 4, 2010 5:31 AMHi Ludek,
I want to thank you very much for your replies.
Please note I have been working with the developer on this and we have not been able to determine the cause.
It also is worth noting that this is not reproducable on their TEST BOX with the same code.
On their Production Box it works, then stops, we re-submit and it works again. I dont know if you are able to review what I have pasted here but here is a snippet of the code. We have been troubleshooting this for 3 weeks now so any thing you can advice would help. Also, does SAP have a Pay per Use support? If they do, are the support reps at a level that they could help us to debug what is going wrong?
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Data;
using System.Globalization;
using System.IO;
using Accellos.Integration.CrystalReports;
using Accellos.Integration.Utils;
using Accellos.Platform.Data.DataProviders;
using Accellos.Platform.ExternalReports.Data;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;
namespace Accellos.Integration
public class IntegrationServer
#region private InitReport
private static void InitReport(ReportDocument reportDocument, PlatformDataProviderConnectionInfo conInfo,
IEnumerable<DataTable> tables, IEnumerable<KeyValuePair<string, object>> parameters)
#region Set connection
if (conInfo != null)
foreach (Table table in reportDocument.Database.Tables)
TableLogOnInfo logOnInfo = table.LogOnInfo;
logOnInfo.ConnectionInfo.ServerName = conInfo.ServerName;
logOnInfo.ConnectionInfo.DatabaseName = conInfo.DatabaseName;
logOnInfo.ConnectionInfo.IntegratedSecurity = conInfo.IntegratedSecurity;
logOnInfo.ConnectionInfo.UserID = conInfo.UserId;
logOnInfo.ConnectionInfo.Password = conInfo.UserPassword;
table.ApplyLogOnInfo(logOnInfo);
#endregion
#region Set data tables
DataSet dataSet = new DataSet("cr") {Locale = CultureInfo.InvariantCulture};
foreach (DataTable table in tables)
dataSet.Tables.Add(table);
if (dataSet.Tables.Count > 0)
reportDocument.SetDataSource(dataSet);
reportDocument.Refresh();
#endregion
#region Set data parameters
Dictionary<string, object> prms = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
foreach (KeyValuePair<string, object> pair in parameters)
prms.Add(pair.Key, pair.Value);
foreach (ParameterField field in reportDocument.ParameterFields)
if (reportDocument.DataDefinition.ParameterFields[field.Name].IsLinked())
continue;
if (prms.ContainsKey(field.Name))
reportDocument.SetParameterValue(field.Name, prms[field.Name]);
#endregion
#endregion
#region PrintReport
public void PrintReport(string reportId, string reportFileName, PlatformDataProviderConnectionInfo conInfo,
Collection<DataTable> tables, Dictionary<string, object> parameters,
ExternalReportPrintInfo printInfo)
#region Check parameters
if (reportId == null)
throw new ArgumentNullException("reportId");
reportId = reportId.Trim();
if (reportId.Length == 0)
throw new ArgumentException("Can not be null or empty.", "reportId");
if (reportFileName == null)
throw new ArgumentNullException("reportFileName");
reportFileName = reportFileName.Trim();
if (reportFileName.Length == 0)
throw new ArgumentException("Can not be null or empty.", "reportFileName");
if (!File.Exists(reportFileName))
throw new FileNotFoundException("File [" + reportFileName + "] does not exist for report [" + reportId +
"]. Crystal engine can not be initialized.");
#endregion
using (ReportDocument reportDocument = new ReportDocument())
#region Load document
try
reportDocument.Load(reportFileName);
catch (Exception e)
CustomFileLog log = new CustomFileLog(IntegrationService.IntegrationServiceErrorsLog);
log.Write("Can not load crystal report file.");
log.Write(e);
throw new Exception("Report [" + reportId + "]. Crystal Report Engine: " + e.Message
+ Environment.NewLine + "Please, check Crystal Report Version or Report template file.");
#endregion
InitReport(reportDocument, conInfo, tables, parameters);
reportDocument.PrintOptions.PrinterName = printInfo.PrinterName;
for (int i = 0; i < printInfo.NCopies; i++)
reportDocument.PrintToPrinter(1, printInfo.Collated, printInfo.StartPage, printInfo.EndPage);
#endregion -
Set Parameters in sub reports - can't know which parameter is in sub report
Hi,
I am trying to set parameters in reports that some time build from sub reports, the only input that I got is the parameters name(key) and there values.
What I need is a way to retrieve the parameters from report and set them by the parameter name(key) with it's value.(when I am handle the case of parameter in sub report)
and hope it's work!!
any idea how to do this?
My code is below, and I am using CR/VS2008.
Thanks,
Amos
public class reportGenerator
public reportGenerator(string reportTemplate, string reportResults, ListDictionary parameters)
//Instantiate variables
ReportDocument reportDocument = new ReportDocument();
reportDocument.Load(reportTemplate);
// Database Access
ConnectionInfo connectionInfo = new ConnectionInfo();
connectionInfo.ServerName = "ServerName";
connectionInfo.DatabaseName = "DBName";
connectionInfo.UserID = "UserId";
connectionInfo.Password = "UserPassword";
connectionInfo.IntegratedSecurity = false;
SetDBLogonForReport(connectionInfo, reportDocument);
reportDocument.SetDatabaseLogon("UserId", "UserPassword", "ServerName", "DBName", false);
double Num = 0;
bool isNum = false;
ParameterDiscreteValue paramValue;
foreach (System.Collections.DictionaryEntry param in parameters)
isNum = double.TryParse((string)param.Value, out Num);
if (isNum)
paramValue = new ParameterDiscreteValue();
paramValue.Value = Convert.ToDecimal(param.Value);
reportDocument.SetParameterValue((string)param.Key, paramValue.Value);
else
reportDocument.SetParameterValue((string)param.Key, param.Value);
reportDocument.SaveAs(reportResults, true);
private void SetDBLogonForReport(ConnectionInfo connectionInfo, ReportDocument reportDocument)
Tables tables = reportDocument.Database.Tables;
foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
TableLogOnInfo tableLogonInfo = table.LogOnInfo;
tableLogonInfo.ConnectionInfo = connectionInfo;
table.ApplyLogOnInfo(tableLogonInfo);You should review the SDK guide online because it answers all your questions.
The [SetParameterValue |http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/CrystalReports_dotNET_SDK/crsdk_net_doc/doc/crsdk_net_doc/html/crlrfCrystalDecisionsCrystalReportsEngineReportDocumentSetParameterValueTopic2.htm]method is overloaded 3 times. One of the overloads takes the name of the parameter, its value, and the name of the subreport it is in.
public virtual void SetParameterValue( string name, object value, string subreport);
[Reading and Setting Discrete Parameters|http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/CrystalReports_dotNET_SDK/crsdk_net_doc/doc/crsdk_net_doc/html/crtsktutorialsrdparametersdiscreteintro.htm] -
Error in Crystal Reports 9 and Ras 9
Hi,
Hepl please.
Server Error in '/GestaoWeb/GestaoWebSeguro' Application.
Method not found: Void CrystalDecisions.ReportAppServer.Controllers.ISCRSubreportController.SetDataSource(System.String, System.Object, System.String, System.String).
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.MissingMethodException: Method not found: Void CrystalDecisions.ReportAppServer.Controllers.ISCRSubreportController.SetDataSource(System.String, System.Object, System.String, System.String).
Source Error:
Line 49: }
Line 50:
Line 51: this.CarregarRelatorio(this.orgaoFiltro, this.chaveFiltro);
Line 52: }
Line 53: }
Source File: c:\inetpub\wwwroot\gestaoweb\gestaowebseguro\relatoriodescricaofuncao.aspx.cs Line: 51
Stack Trace:
[MissingMethodException: Method not found: Void CrystalDecisions.ReportAppServer.Controllers.ISCRSubreportController.SetDataSource(System.String, System.Object, System.String, System.String).]
GestaoWebSeguro.RelatorioDescricaoFuncao.CarregarRelatorio(Double orgaoFiltro, String chaveFiltro) +0
GestaoWebSeguro.RelatorioDescricaoFuncao.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\gestaoweb\gestaowebseguro\relatoriodescricaofuncao.aspx.cs:51
System.Web.UI.Control.OnLoad(EventArgs e)
GestaoWebSeguro.BasePageGestaoWeb.OnLoad(EventArgs e) in c:\inetpub\wwwroot\gestaoweb\gestaowebseguro\basepagegestaoweb.cs:68
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()Please ignore my earlier post -- answered my own question.
NULL parameter values do not get replaced by default values in SQL -- that is normal behavior in both SQL 2000 and SQL 2005. Just goes to show, that no many how many years programming experience you have, you can still get tripped up sometimes : ( -
Hi Experts,
I am facing an issue while accessing SharePoint 2013 news feed REST api URL <SiteCollectionURL>/_api/social.feed/my/news from browser giving error "The server encountered an
error processing the request. See server logs for more details."
This is happening after posting the image to news feed without entering any text or description with that. If i post an image with some text or description, then i can able to get the feeds. Or else if i delete the image post then also i can able to get
the feeds.
I can able to see below logs in log files.
Exception occured in scope Microsoft.Office.Server.Social.SPSocialRestFeed._SerializeToOData. Exception=System.MissingMethodException: No parameterless constructor defined for this object. at System.RuntimeTypeHandle.CreateInstance(RuntimeType
type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache,
StackCrawlMark& stackMark) at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type) at Microsoft.SharePoint.C...
...lient.ValueTypeConverter.<GetODataProperties>d__2.MoveNext() at Microsoft.Data.OData.Atom.ODataAtomPropertyAndValueSerializer.WriteProperties(IEdmStructuredType owningType, IEnumerable`1 cachedProperties, Boolean isWritingCollection,
Action beforePropertiesAction, Action afterPropertiesAction, DuplicatePropertyNamesChecker duplicatePropertyNamesChecker, EpmValueCache epmValueCache, EpmSourcePathSegment epmSourcePathSegment, ProjectedPropertiesAnnotation projectedProperties)
at Microsoft.Data.OData.Atom.ODataAtomPropertyAndValueSerializer.WriteComplexValue(ODataComplexValue complexValue, IEdmTypeReference metadataTypeReference, Boolean isOpenPropertyType, Boolean isWritingCollection, Action beforeValueAction, Action afterValueAction,
DuplicatePropertyNamesChecker duplicatePropertyNa...
...mesChecker, CollectionWithoutExpectedTypeValidator collectionValidator, EpmValueCache epmValueCache, EpmSourcePathSegment epmSourcePathSegment, ProjectedPropertiesAnnotation projectedProperties) at Microsoft.Data.OData.Atom.ODataAtomPropertyAndValueSerializer.WriteProperty(ODataProperty
property, IEdmStructuredType owningType, Boolean isTopLevel, Boolean isWritingCollection, Action beforePropertyAction, EpmValueCache epmValueCache, EpmSourcePathSegment epmParentSourcePathSegment, DuplicatePropertyNamesChecker duplicatePropertyNamesChecker,
ProjectedPropertiesAnnotation projectedProperties) at Microsoft.Data.OData.Atom.ODataAtomPropertyAndValueSerializer.WriteProperties(IEdmStructuredType owningType, IEnumerable`1 cachedProperties, Boolean isWritingCollection, Action beforePropertie...
...sAction, Action afterPropertiesAction, DuplicatePropertyNamesChecker duplicatePropertyNamesChecker, EpmValueCache epmValueCache, EpmSourcePathSegment epmSourcePathSegment, ProjectedPropertiesAnnotation projectedProperties) at Microsoft.Data.OData.Atom.ODataAtomPropertyAndValueSerializer.WriteComplexValue(ODataComplexValue
complexValue, IEdmTypeReference metadataTypeReference, Boolean isOpenPropertyType, Boolean isWritingCollection, Action beforeValueAction, Action afterValueAction, DuplicatePropertyNamesChecker duplicatePropertyNamesChecker, CollectionWithoutExpectedTypeValidator
collectionValidator, EpmValueCache epmValueCache, EpmSourcePathSegment epmSourcePathSegment, ProjectedPropertiesAnnotation projectedProperties) at Microsoft.Data.OData.Atom.ODataAtomPropertyAndValueSeriali...
...zer.WriteCollectionValue(ODataCollectionValue collectionValue, IEdmTypeReference propertyTypeReference, Boolean isOpenPropertyType, Boolean isWritingCollection) at Microsoft.Data.OData.Atom.ODataAtomPropertyAndValueSerializer.WriteProperty(ODataProperty
property, IEdmStructuredType owningType, Boolean isTopLevel, Boolean isWritingCollection, Action beforePropertyAction, EpmValueCache epmValueCache, EpmSourcePathSegment epmParentSourcePathSegment, DuplicatePropertyNamesChecker duplicatePropertyNamesChecker,
ProjectedPropertiesAnnotation projectedProperties) at Microsoft.Data.OData.Atom.ODataAtomPropertyAndValueSerializer.WriteProperties(IEdmStructuredType owningType, IEnumerable`1 cachedProperties, Boolean isWritingCollection, Action beforePropertiesAction,
Action afterPropertiesAct...
Can anyone please help me out.
Thanks!
dineshO365,
Is this still an issue?
Thanks!
Ed Price, Azure & Power BI Customer Program Manager (Blog,
Small Basic,
Wiki Ninjas,
Wiki)
Answer an interesting question?
Create a wiki article about it! -
Hi There,
I am having massive issues with my Exchange Server.
I have 2 Nodes, one has CAS and Mailbox Roles, the other just Mailbox.
I "upgraded" the CAS server to CU7 without any errors / issues.
Once I had restarted, nothing worked any more.. I couldn't access ECP, OWA, Powershell, Autodiscover or get outlook to connect.
I managed to get Powershell working, but changing the physical directory to "C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\PowerShell" from "C:\Program Files\Microsoft\Exchange Server\V15\FrontEnd\HttpProxy\PowerShell"
But for the life of me I cannot get ECP or OWA working (haven't even tried anything else)!
I am getting a load of Events with ID 1003.
The only error I am getting is:
Server Error in '/ecp' Application.
Method not found: 'Boolean Microsoft.Exchange.Net.Wopi.WopiRequestPathHandler.IsWopiRequest(System.Web.HttpRequest)'.
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.MissingMethodException: Method not found: 'Boolean Microsoft.Exchange.Net.Wopi.WopiRequestPathHandler.IsWopiRequest(System.Web.HttpRequest)'.
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:
[MissingMethodException: Method not found: 'Boolean Microsoft.Exchange.Net.Wopi.WopiRequestPathHandler.IsWopiRequest(System.Web.HttpRequest)'.]
Microsoft.Exchange.HttpProxy.ProxyModule.AllowAnonymousRequest(HttpRequest httpRequest) +0
Microsoft.Exchange.HttpProxy.ProxyModule.OnAuthenticateInternal(HttpApplication httpApplication) +51
Microsoft.Exchange.HttpProxy.<>c__DisplayClass5.<OnAuthenticateRequest>b__4() +447
Microsoft.Exchange.Common.IL.ILUtil.DoTryFilterCatch(TryDelegate tryDelegate, FilterDelegate filterDelegate, CatchDelegate catchDelegate) +40
Microsoft.Exchange.HttpProxy.Diagnostics.SendWatsonReportOnUnhandledException(MethodDelegate methodDelegate) +408
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165
Which is almost meaningless... but maybe someone out there has some idea?
Unfortunately this is very urgent for me a these are production servers and currently there is no email for my company.
So Please please please can someone help.
I have tried many many many things from various sites, and so far nothing has worked.
Thanks,
-TimHi Tim,
We can do the following steps to have a try:
1. Check Application settings in IIS Application under Exchange Back End web site for BinSearchFolders value.
a. Open IIS Manager. Expand Sites > Exchange Back End.
b. Click ecp. Open Application Settings in /ecp Home.
c. Please check whether the value for “BinSearchFolders” is changed to an invalid value.
2. Verify Authentication settings for OWA and ECP.
a. In IIS manager > Default Web Site, make sure Anonymous Authentication is Enabled in Authentication.
b. Confirm that "Require SSL" is checked on the root of the default website.
c. Make sure the Basic and Forms authentications are enabled in Default Web Site and Ntlm, WindowsIntegrated authentication methods are enabled in Exchange Back End for both OWA and ECP.
Regards,
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
Winnie Liang
TechNet Community Support -
Error in Configuration Wizard after installing SharePoint 2013 Service Pack 1
Windows Server 2012 with latest updates and SharePoint 2013 with latest updates:
I installed SharePoint 2013 Service Pack 1 and when I run the configuration Wizard i get this error:
Error in Configuration Wizard
Resource id to be retrieved is PostSetupConfigurationFailedEventLog for language English (United States)
Resource retrieved id PostSetupConfigurationFailedEventLog is Configuration of SharePoint Products failed. Configuration must be performed in order for this product to operate properly. To diagnose the problem, review the extended error information
located at {0}, fix the problem, and run this configuration wizard again.
Leaving function StringResourceManager.GetResourceString
Configuration of SharePoint Products failed. Configuration must be performed in order for this product to operate properly. To diagnose the problem, review the extended error information located at C:\Program Files\Common Files\Microsoft Shared\Web
Server Extensions\15\LOGS\PSCDiagnostics_3_8_2014_23_55_49_686_1872915373.log, fix the problem, and run this configuration wizard again.
In event view I see this two errors:
1) First error
System
Provider
[ Name]
SharePoint 2010 Products Configuration Wizard
EventID
104
[ Qualifiers]
0
Level
2
Task
0
Keywords
0x80000000000000
TimeCreated
[ SystemTime]
2014-03-08T21:41:59.000000000Z
EventRecordID
135580
Channel
Application
Computer
ABC-SRV-WEB01.abc.local
Security
EventData
Failed to initiate the upgrade sequence. An exception of type System.MissingMethodException was thrown. Additional exception information: Method not found: 'Void Microsoft.SharePoint.WorkflowServices.IWorkflowService.Upgrade(System.Object,
System.String, Microsoft.SharePoint.Upgrade.SPLog)'. System.MissingMethodException: Method not found: 'Void Microsoft.SharePoint.WorkflowServices.IWorkflowService.Upgrade(System.Object, System.String, Microsoft.SharePoint.Upgrade.SPLog)'. at System.RuntimeTypeHandle.GetTypeByName(String
name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type) at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError,
Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName) at System.Type.GetType(String typeName) at Microsoft.SharePoint.Utilities.SPTypeSerializer.DeserializeType(String typeName,
Guid classId, Boolean bResolveMissingTypes) at Microsoft.SharePoint.Administration.SPConfigurationDatabase.ResolveObjectAndClassVersions(SPLog log) at Microsoft.SharePoint.Upgrade.SPManager.BootStrap(Guid sessionId, SPUpgradeOperationFlags flags) at Microsoft.SharePoint.PostSetupConfiguration.UpgradeBootstrapTask.Run()
at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()
2) Second error
System
Provider
[ Name]
SharePoint 2010 Products Configuration Wizard
EventID
100
[ Qualifiers]
0
Level
2
Task
0
Keywords
0x80000000000000
TimeCreated
[ SystemTime]
2014-03-08T21:41:59.000000000Z
EventRecordID
135581
Channel
Application
Computer
ABC-SRV-WEB01.abc.local
Security
EventData
Configuration of SharePoint Products failed. Configuration must be performed in order for this product to operate properly. To diagnose the problem, review the extended error information located at C:\Program Files\Common Files\Microsoft Shared\Web Server
Extensions\15\LOGS\PSCDiagnostics_3_8_2014_23_41_9_710_572545016.log, fix the problem, and run this configuration wizard again.
Please advise on next steps.
How can I successfully install SP1?
Thanks,
Alexcould you please share the upgrade log file, so that we understand the error?
did you reboot your server after the installation of SP1?
also try to clear the Config cache on the servers and then try again?
you can run this command on the server its failing
Get-SPProduct -local
PSConfig.exe -cmd upgrade -inplace b2b -force -cmd applicationcontent -install -cmd installfeatures
Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog -
Updating a report source/viewer with new filename
I posted earlier about this problem but now can be more specific so thought a re-post was in order. I am trying to setup an asp.net website using .NET 2.0 and Crystal Reports 2008. Rather than having a seperate page for each possible report with a viewer on it I decided to setup a page and pass it session variables telling it what file name to set the report source to and the variables to pass to it. This worked fine in crystal reports basic (the one with visual studio).
So I have on the page CrystalViewer (CrystalReportViewer) with display page true seperate pages true and crystalRepSource (CrystalReportSource) with cache enabled and viewstate enabled as far as I know cache is required for the paging to work.
In my form code behind file i have something like:
protected void Page_Load(object sender, EventArgs e) {
CrystalRepSource.Report.FileName = SessionHandler.RunReport;
switch (report)
if (PreviousPage != null || paramHasChanged)
case @"~\CollegeReports\CR_Course_Review.rpt":
//setup report in viewer with correct db logon
SetupLogonInfo(CrystalRepSource);
//add parameters
CrystalRepSource.ReportDocument.SetParameterValue("@year", year);
CrystalRepSource.ReportDocument.SetParameterValue("@school", school);
CrystalRepSource.ReportDocument.SetParameterValue("@division", division);
CrystalRepSource.ReportDocument.SetParameterValue("@progArea", progArea);
CrystalRepSource.ReportDocument.SetParameterValue("@type", SessionHandler.record_type);
CrystalRepSource.ReportDocument.SetParameterValue("@filterText", "School = \'" + school +
"\' Division = \'" + division
+ "\' Programme Area = \'" + progArea
+ "\' Record Type = \'" + SessionHandler.record_type_text + "\'");
break;
case @"~\CollegeReports\CR_WBL_Attendance_Sheets.rpt":
//setup report in viewer with correct db logon
SetupLogonInfo(CrystalRepSource);
//add parameters
CrystalRepSource.ReportDocument.SetParameterValue("@year", year);
CrystalRepSource.ReportDocument.SetParameterValue("@school", school);
CrystalRepSource.ReportDocument.SetParameterValue("@division", division);
CrystalRepSource.ReportDocument.SetParameterValue("@progArea", progArea);
CrystalRepSource.ReportDocument.SetParameterValue("@attendanceEndDate", LastDayOfMonth(SessionHandler.WBL_EndDate).ToString());
break;
The case statement actually has about 20 reports in it it is basically used to send the appropriate parameter set to the report and setup the database logon info, the if statement around the case checks if the load is a postback (to allow paging of the report) if it is it won't run the code or if a parameter has changed if one has it will rerun the code. As I said this worked in CR basic.
Unfortunately what now seems to happen is the first time I run a report it works fine, if I then leave the page and run a report requiring different parameters it will give me the parameter error. However if instead I run a report requiring the same parameters it will show the original report document as if it is coming from cache I think. The case becomes a bit more bizarre later as I have created the ability to change a parameter without leaving the report page this actually does a postback and changes the report to the proper one with the proper data.
So it seems to me the code to change report is working first time and for postback but not for re-entering the page. I am really stuck been working on this for hours any ideas.ok i have found the solution after a quite a while so anyone else getting this I was using the line:
CrystalRepSource.Report.FileName = SessionHandler.RunReport;
I changed it to:
CrystalRepSource.ReportDocument.Load(Server.MapPath(ReportName));
This clears any existing report and loads the correct one seems to have solved all my problems.
Maybe you are looking for
-
N-step approval process for PO in SRM 7
Here are a couple of questions I have regarding N-Step approval configuration for PO in SRM 7 Process Controlled Workflow: 1) It's our business requirement that the last-change person of the PO is defined as the first approver in the chain. I tested
-
Nokia Lumia 1520 not finding Bluetooth headsets
Hello I have a nokia Lumia 1520 and it won't connect to the two bluetooth headsets I have. They are not even showing up to connect to. I tried with a Microsoft Xbox 360 Wireless Headset (bluetooth version 3.0) and a Sony MBH10 (bluetooth version 1.2
-
I need to know when a bookmark, I bookmarked was created...
How can I tell when I bookmarked, a certain bookmark? I want to find out the specfic time I bookmarked a page can I do this? Thanks
-
[SOLVED] Keyboard layout problems
Hi community, I fresh installed arch linux and I rly like it. After playing a little around and installing the awesome wm I can't set the croatian keyboard layout. My xorg.config file: Section "ServerLayout" Identifier "Layout0" Screen 0 "Screen0" 0
-
Can't boot Solaris 10 during installation
I am stuck up with a petty problem while booting Solaris 10 1/06 from the installation CD no.1. The GRUB boot loader appears fine, but when I try to boot the Solaris kernel and module, a message appears Error 28: Selected item cannot fit into memory