I have XML like this:
<?xml version="1.0" encoding="UTF-8"?>
<viewentries timestamp="20100923T130205,90Z" toplevelentries="8903">
<viewentry position="1" unid="A4958CC88435D1A8422577A7004422E8" noteid="4DF15A" siblings="8903">
<entrydata columnnumber="0" name="$59">
<text>63722</text>
</entrydata>
<entrydata columnnumber="1" name="$70">
<text></text>
</entrydata>
<entrydata columnnumber="2" name="pt_Subject">
<text>work order subject</text>
</entrydata>
<entrydata columnnumber="3" name="$56">
<datetime dst="true">20100923T145811,67+02</datetime>
</entrydata>
<entrydata columnnumber="4" name="$62">
<datetime>20100923T142413,84+02</datetime>
</entrydata>
<entrydata columnnumber="5" name="$60">
<text>some company</text>
</entrydata>
<entrydata columnnumber="6" name="$73">
<text>Resolver</text>
</entrydata>
</viewentry>
</viewentries>
As this XML resides on a web server, I need to read it from there. Thus, I use XmlDataSource control like this:
<table>
<tr>
<td>#WO</td>
<td>Description</td>
<td>Company</td>
</tr>
<asp:Repeater ID="repWorkOrders" DataSourceID="xmldsWorkOrders" runat="server">
<ItemTemplate>
<tr>
<td><%#XPath( "entrydata[1]/text" )%></td>
<td><%#XPath( "entrydata[3]/text" )%></td>
<td><%#XPath( "entrydata[6]/text" )%></td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>
<asp:XmlDataSource ID="xmldsWorkOrders" XPath="viewentries/viewentry" DataFile="http://www.someurl.com/xmlfile.xml" runat="server">
</asp:XmlDataSource>
The problem is that if I set DataFile to URL, I get following error
'>' is an unexpected token. The expected token is '"' or '''. Line 1,
position 63. 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.Xml.XmlException: '>' is an
unexpected token. The expected token
is '"' or '''. Line 1, position 63.
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:
[XmlException: '>' is an unexpected
token. The expected token is '"' or
'''. Line 1, position 63.]
System.Xml.XmlTextReaderImpl.Throw(Exception
e) +76
System.Xml.DtdParserProxy.System.Xml.IDtdParserAdapter.Throw(Exception
e) +9
System.Xml.DtdParser.Throw(Int32
curPos, String res, String[] args)
+125 System.Xml.DtdParser.ThrowUnexpectedToken(Int32
pos, String expectedToken1, String
expectedToken2) +109
System.Xml.DtdParser.ParseExternalId(Token
idTokenType, Token declType, String&
publicId, String& systemId) +598
System.Xml.DtdParser.ParseInDocumentDtd(Boolean
saveInternalSubset) +4016890
System.Xml.DtdParser.Parse(Boolean
saveInternalSubset) +54
System.Xml.DtdParserProxy.Parse(Boolean
saveInternalSubset) +31
System.Xml.XmlTextReaderImpl.ParseDoctypeDecl()
+254 System.Xml.XmlTextReaderImpl.ParseDocumentContent()
+451 System.Xml.XmlTextReaderImpl.Read()
+151 System.Xml.XmlLoader.Load(XmlDocument
doc, XmlReader reader, Boolean
preserveWhitespace) +112
System.Xml.XmlDocument.Load(XmlReader
reader) +108
System.Web.UI.WebControls.XmlDataSource.PopulateXmlDocument(XmlDocument
document, CacheDependency&
dataCacheDependency, CacheDependency&
transformCacheDependency) +306
System.Web.UI.WebControls.XmlDataSource.GetXmlDocument()
+153 System.Web.UI.WebControls.XmlDataSourceView.ExecuteSelect(DataSourceSelectArguments
arguments) +27
System.Web.UI.WebControls.Repeater.GetData()
+35 System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean
useDataSource) +220
System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs
e) +51
System.Web.UI.WebControls.Repeater.DataBind()
+75 System.Web.UI.WebControls.Repeater.EnsureDataBound()
+55 System.Web.UI.WebControls.Repeater.OnPreRender(EventArgs
e) +15
System.Web.UI.Control.PreRenderRecursiveInternal()
+80 System.Web.UI.Control.PreRenderRecursiveInternal()
+171 System.Web.UI.Control.PreRenderRecursiveInternal()
+171 System.Web.UI.Control.PreRenderRecursiveInternal()
+171 System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean
includeStagesAfterAsyncPoint) +842
However, if I save the same xml to a file to my computer, it works without a glitch. Please, help.
Silly me. The xml is password protected. I just didn't notice it as I logged in early in the morning. Hence, the data source obtains login form instead of xml file.
Check xmlfile.xml Line 1, position 63. Looks like you have missing closing quote in a parameter value
Related
This is a puzzle!
When I convert CRM 2011 quotes to orders I can save the order record and use it as normal. However when I attempt to create a new Order when I click the Save button I get a dialog with 'A error occurred' and the record fails to save. The CRM trace is below but I can fathom what the problem is - I've never even created a entity called 'new_customtestingentity'
Things I've tried:-
a) Renaming the statuscode fields to their original names (I had changed them previously)
b) Disabling the onsave javascript event in the form
c) Re-enabling the default ribbon menu (I had hidden some unused bussons previously)
Trace:
Crm Exception: Message: The entity with a name = 'new_customtestingentity' was not found in the MetadataCache., ErrorCode: -2147217150
[2013-06-17 10:09:36.345] Process: w3wp |Organization:d8e7913e-0f93-45b7-ad9d-6a48d10b0de3 |Thread: 33 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 5cb5f3d1-1f7d-437f-828e-94676987a567 | ErrorInformation.LogError ilOffset = 0x17
>MSCRM Error Report:
Error: Exception of type 'System.Web.HttpUnhandledException' was thrown.
Error Message: 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.
Error Details: Exception of type 'System.Web.HttpUnhandledException' was thrown.
Source File: Not available
Line Number: Not available
Stack Trace Info: [ArgumentException: Invalid state for this entity: salesorder: 0
Parameter name: state]
at Microsoft.Crm.Application.Platform.EntityProxy.ConvertStateToNumber(String entityName, String state)
at Microsoft.Crm.Application.Platform.AttributeCollection.CreateOptionSetValueFromValue(String name, Object value, AttributeType attributeType, String entityLogicalName)
at Microsoft.Crm.Application.Platform.AttributeCollection.SetEntityProperty(Entity entity, String name, String childAttributeName, Object parentProperty, AttributeMetadata attributeMetadata, Object value, IOrganizationContext context)
at Microsoft.Crm.Application.Platform.AttributeCollection.Insert(String name, Object value, Boolean throwIfKeyExists)
at Microsoft.Crm.Application.Platform.EntityProxy.SetData(XmlNode entityElement)
at Microsoft.Crm.Application.Forms.EndUserForm.RetrieveParametersForEventDefault()
at Microsoft.Crm.Application.Forms.EndUserForm.Initialize(Entity entity)
at Microsoft.Crm.Application.Forms.CustomizableForm.Execute(Entity entity, FormDescriptor fd)
at Microsoft.Crm.Application.Components.PageHandlers.SalesorderRecordPageHandler.ConfigureFormHandler()
at Microsoft.Crm.Application.Components.PageHandlers.RecordPageHandler.ConfigureFormWrapper()
at Microsoft.Crm.Application.Components.Utility.GenericEventProcessor.RaiseEvent(String eventName)
at Microsoft.Crm.Application.Controls.PageManager.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
[HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown.]
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
[2013-06-17 10:09:36.345] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 33 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 5cb5f3d1-1f7d-437f-828e-94676987a567 | ExceptionConverter.ConvertToFault ilOffset = 0x57
UNEXPECTED: no fault?
[2013-06-17 10:09:36.345] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 33 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 5cb5f3d1-1f7d-437f-828e-94676987a567 | ExceptionConverter.ConvertMessageAndErrorCode ilOffset = 0x23B
System.Web.HttpUnhandledException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #5F67091F: System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.ArgumentException: Invalid state for this entity: salesorder: 0
Parameter name: state
at Microsoft.Crm.Application.Platform.EntityProxy.ConvertStateToNumber(String entityName, String state)
at Microsoft.Crm.Application.Platform.AttributeCollection.CreateOptionSetValueFromValue(String name, Object value, AttributeType attributeType, String entityLogicalName)
at Microsoft.Crm.Application.Platform.AttributeCollection.SetEntityProperty(Entity entity, String name, String childAttributeName, Object parentProperty, AttributeMetadata attributeMetadata, Object value, IOrganizationContext context)
at Microsoft.Crm.Application.Platform.AttributeCollection.Insert(String name, Object value, Boolean throwIfKeyExists)
at Microsoft.Crm.Application.Platform.EntityProxy.SetData(XmlNode entityElement)
at Microsoft.Crm.Application.Forms.EndUserForm.RetrieveParametersForEventDefault()
at Microsoft.Crm.Application.Forms.EndUserForm.Initialize(Entity entity)
at Microsoft.Crm.Application.Forms.CustomizableForm.Execute(Entity entity, FormDescriptor fd)
at Microsoft.Crm.Application.Components.PageHandlers.SalesorderRecordPageHandler.ConfigureFormHandler()
at Microsoft.Crm.Application.Components.PageHandlers.RecordPageHandler.ConfigureFormWrapper()
at Microsoft.Crm.Application.Components.Utility.GenericEventProcessor.RaiseEvent(String eventName)
at Microsoft.Crm.Application.Controls.PageManager.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
[2013-06-17 10:09:36.345] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 33 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 5cb5f3d1-1f7d-437f-828e-94676987a567 | ExceptionConverter.ConvertToFault ilOffset = 0x69
UNEXPECTED: no fault?
Solved!
When debugging some status options I had added the field status to the CRM main form. Somehow this caused everything to fall over on saving.
After removing the field (it still appears in the footer as per default) it saves without problem.
I have installed latest version of kenticoCMS (v.7) and created a new corporate site. Now I want to create a new page on root website but when I clicking on New page item this is generating error. I have tried the same with another web site but still the error is same for all.
Thanks in advance!
Server Error in '/KenticoCMS' Application.
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 209: get
Line 210: {
Line 211: return mStep ?? (mStep = DocumentManager.Step);
Line 212: }
Line 213: }
Source File: f:\Asp.net\KenticoCMS\CMSModules\Content\Controls\EditMenu.ascx.cs Line: 211
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
CMS.DocumentEngine.WorkflowManager.GetNodeWorkflowScopeInternal(TreeNode node) +342
CMS.DocumentEngine.WorkflowManager.GetNodeWorkflowInternal(TreeNode node) +135
CMS.DocumentEngine.WorkflowManager.GetPublishedWorkflowStepInternal(TreeNode node) +11
CMS.DocumentEngine.WorkflowManager.GetStepInfoInternal(TreeNode node) +65
CMS.DocumentEngine.TreeNode.get_WorkflowStep() +90
CMS.FormControls.CMSDocumentManager.get_Step() +36
CMSModules_Content_Controls_EditMenu.get_Step() in f:\Asp.net\KenticoCMS\CMSModules\Content\Controls\EditMenu.ascx.cs:211
CMSModules_Content_Controls_EditMenu.ReloadMenu() in f:\Asp.net\KenticoCMS\CMSModules\Content\Controls\EditMenu.ascx.cs:448
CMSModules_Content_Controls_EditMenu.OnPreRender(EventArgs e) in f:\Asp.net\KenticoCMS\CMSModules\Content\Controls\EditMenu.ascx.cs:336
System.Web.UI.Control.PreRenderRecursiveInternal() +103
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.547
would it be possible to copy and paste the whole error message with the stack trace?
Also, it seems that there is some corrupted file - I do not know which since the screen shot does not show the path of the file that the exception was thrown from.
So, to refresh the files I would recommend e.g. applying the latest hotfix
, it was working fine I have no clue about this error what should I do
Unable to find the requested .Net Framework Data Provider. It may not be installed.
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.ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed.
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:
[ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed.]
System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName) +301
System.Web.UI.WebControls.SqlDataSource.GetDbProviderFactorySecure() +48
System.Web.UI.WebControls.SqlDataSource.CreateConnection(String connectionString) +14
System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +208
System.Web.UI.WebControls.ListControl.OnDataBinding(EventArgs e) +186
System.Web.UI.WebControls.ListControl.PerformSelect() +51
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +105
System.Web.UI.WebControls.ListControl.OnPreRender(EventArgs e) +35
System.Web.UI.WebControls.ListBox.OnPreRender(EventArgs e) +16
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +256
System.Web.UI.Control.PreRenderRecursiveInternal() +256
System.Web.UI.Control.PreRenderRecursiveInternal() +256
System.Web.UI.Control.PreRenderRecursiveInternal() +256
System.Web.UI.Control.PreRenderRecursiveInternal() +256
System.Web.UI.Control.PreRenderRecursiveInternal() +256
System.Web.UI.Control.PreRenderRecursiveInternal() +256
System.Web.UI.Control.PreRenderRecursiveInternal() +256
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3888
I was seeing the same problem why trying to publish a website to a new server. Installing the Connector/Net 6.4.4 found here solved my problem: http://dev.mysql.com/downloads/connector/net/
Can help to get rid of this error in the Production website.This error is showing when i click on the Reports(Crystal Report)
Error Message:
The maximum report processing jobs limit configured by your system administrator has been reached
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:
[COMException (0x80041016): The maximum report processing jobs limit configured by your system administrator has been reached.]
CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +87
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +279
[Exception: Load report failed.]
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +341
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +869
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) +73
Default3.Page_Init(Object sender, EventArgs e) +142
System.Web.UI.Control.OnInit(EventArgs e) +2069644
System.Web.UI.Page.OnInit(EventArgs e) +9
System.Web.UI.Control.InitRecursive(Control namingContainer) +321
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +692
This typically happens when you have to many Report instances open. We had the same issue using C#/Crystal Reprots trying to generate multi threaded reporting. You have to ensure that you close and dispose of the report properly once done with them.
I have a data list with paging which works fine locally debugging but doesn't work on my deployment server provided by my hosting company.
Line 151: TotalRowCount = pagedData.DataSourceCount;
I'm using the same remote database for both local and on deployment server.
Error message:
Server Error in '/' Application.
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 149:
Line 150: // Remember the total number of records being paged through across postbacks
Line 151: TotalRowCount = pagedData.DataSourceCount;
Line 152: PrevPage.Visible = !pagedData.IsFirstPage;
Line 153: NextPage.Visible = !pagedData.IsLastPage;
Source File: \\pdc1\sites\t\test.domain.com\public_html\Auctions.aspx.cs Line: 151
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
Auctions.ItemDataSource_Selected(Object sender, ObjectDataSourceStatusEventArgs e) in \\pdc1\sites\t\test.domain.com\public_html\Auctions.aspx.cs:151
System.Web.UI.WebControls.ObjectDataSourceView.OnSelected(ObjectDataSourceStatusEventArgs e) +95
System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance) +432
System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1247
System.Web.UI.WebControls.BaseDataList.GetData() +38
System.Web.UI.WebControls.DataList.CreateControlHierarchy(Boolean useDataSource) +153
System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) +54
System.Web.UI.WebControls.BaseDataList.DataBind() +55
System.Web.UI.WebControls.BaseDataList.EnsureDataBound() +60
System.Web.UI.WebControls.BaseDataList.CreateChildControls() +69
System.Web.UI.Control.EnsureChildControls() +87
System.Web.UI.Control.PreRenderRecursiveInternal() +44
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
This implies the connection to your database from the server isn't working, as the pagedData object is null.
Check you can access your datasource, with the correct identity.