Tag Archives | Error

Report Logs User Out when Viewing Next Page

Issue

There is a travel request report that runs successfully, but on clicking to view the second page, it logs the user out of XMPro.

In Report Designer, the second page displays fine.

The report itself is being displayed in a Reference Label – the activity prior to this provides the user with a browse page to select that they want to print.

The version is v6.0.3 and the browser is IE10.

The managed code on the activity that displays the report is:

public void P_50TravelReqReport_OnLoad(
{
string t_id = activity.GetControlValue("P_3030ID");
activity.SetControlValue("P_5010RptView", string.Format("<iframe src='./Reports/reportviewer.aspx?p1={0}&reportName={1}' width='98%' height='1150' frameborder='no'></iframe>", t_id, "rpt_Travel_Req")); 
}

Resolution

There may be an entry in the web.config file that causes the user to be redirected to the login screen when an error occurs on the Report Viewer. Under the <devExpress> section there maybe be the following:

<errors callbackErrorRedirectUrl="~/Account/Logout.aspx" />

Removing the value so that it looks like this:

<errors callbackErrorRedirectUrl="" />

You could help you diagnose the problem as you should now receive an error message rather than be logged out.

Just take care when modifying web.config as any incorrect syntax in the file will bring the site down.

Error Removing an Existing Site

Issue

When I try to use the XMWorkspace installer to remove my existing site as I select the site I wish to remove I get the error “Root element is missing”, the details are below:

See the end of this message for details on invoking

just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************

System.Xml.XmlException: Root element is missing.

at System.Xml.XmlTextReaderImpl.Throw(Exception e)

at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)

at System.Xml.XmlTextReaderImpl.ParseDocumentContent()

at System.Xml.XmlTextReaderImpl.Read()

at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)

at System.Xml.XmlDocument.Load(XmlReader reader)

at System.Xml.XmlDocument.LoadXml(String xml)

at .­.(String )

at .­.(Object , EventArgs )

at XMPro.Controls.WizardPage.OnPageActivate(EventArgs e)

at XMPro.Controls.WizardControl.(WizardPage , WizardCommand )

at XMPro.Controls.WizardControl.(WizardCommand )

at XMPro.Controls.WizardControl.<OnLoad>b__1(Object sender, EventArgs eventArgs)

at System.Windows.Forms.Control.OnClick(EventArgs e)

at System.Windows.Forms.Button.OnClick(EventArgs e)

at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)

at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.ButtonBase.WndProc(Message& m)

at System.Windows.Forms.Button.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)

************** Loaded Assemblies **************

mscorlib

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.5448 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

----------------------------------------

XMWorkspace.Wizard

Assembly Version: 6.0.0.0

Win32 Version: 6.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/XMPro%20Pty%20Ltd/XMWorkspace/XMWorkspace.Wizard.exe

----------------------------------------

System.Windows.Forms

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.5446 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

----------------------------------------

System

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.5453 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

----------------------------------------

System.Drawing

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.5458 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

----------------------------------------

System.DirectoryServices

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.DirectoryServices/2.0.0.0__b03f5f7f11d50a3a/System.DirectoryServices.dll

----------------------------------------

System.Xml

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

----------------------------------------

System.Data

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll

----------------------------------------

Microsoft.SqlServer.Smo

Assembly Version: 10.0.0.0

Win32 Version: 10.50.2500.0 ((KJ_PCU_Main).110617-0038 )

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.SqlServer.Smo/10.0.0.0__89845dcd8080cc91/Microsoft.SqlServer.Smo.dll

----------------------------------------

Microsoft.SqlServer.Management.Sdk.Sfc

Assembly Version: 10.0.0.0

Win32 Version: 10.50.2500.0 ((KJ_PCU_Main).110617-0038 )

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.SqlServer.Management.Sdk.Sfc/10.0.0.0__89845dcd8080cc91/Microsoft.SqlServer.Management.Sdk.Sfc.dll

----------------------------------------

Microsoft.SqlServer.ConnectionInfo

Assembly Version: 10.0.0.0

Win32 Version: 10.50.2500.0 ((KJ_PCU_Main).110617-0038 )

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.SqlServer.ConnectionInfo/10.0.0.0__89845dcd8080cc91/Microsoft.SqlServer.ConnectionInfo.dll

----------------------------------------

Microsoft.SqlServer.SqlClrProvider

Assembly Version: 10.0.0.0

Win32 Version: 10.50.1750.9 ((dac_inplace_upgrade).101209-1051 )

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.SqlServer.SqlClrProvider/10.0.0.0__89845dcd8080cc91/Microsoft.SqlServer.SqlClrProvider.dll

----------------------------------------

Microsoft.SqlServer.SqlEnum

Assembly Version: 10.0.0.0

Win32 Version: 10.50.2500.0 ((KJ_PCU_Main).110617-0038 )

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.SqlServer.SqlEnum/10.0.0.0__89845dcd8080cc91/Microsoft.SqlServer.SqlEnum.dll

----------------------------------------

Accessibility

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

----------------------------------------

System.Configuration

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

----------------------------------------

System.Transactions

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)

CodeBase: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll

----------------------------------------

System.EnterpriseServices

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

CodeBase: file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll

----------------------------------------

************** JIT Debugging **************

To enable just-in-time (JIT) debugging, the .config file for this

application or computer (machine.config) must have the

jitDebugging value set in the system.windows.forms section.

The application must also be compiled with debugging

enabled.

For example:

<configuration>

<system.windows.forms jitDebugging="true" />

</configuration>

When JIT debugging is enabled, any unhandled exception 
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Resolution

This has been logged as item 613 for replication and following that resolution.

Error when Accessing XMPro Web Post Installation

Issue

There is a problem with post installation where XMPro would not load, in the event viewer the following error was found:

Event code: 3008
Event message: A configuration error has occurred.
Event time: 03/05/2012 11:30:52
Event time (UTC): 03/05/2012 10:30:52
Event ID: 25f104b4638a4be79539818edf351093
Event sequence: 1
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/ROOT/XMPro-2-129805146519594587
Trust level: Full
Application Virtual Path: /XMPro
Application Path: C:\inetpub\wwwroot\XMPro\
Machine name: UK-LS-DEVAPP-03
Process information:
Process ID: 5700
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: ConfigurationErrorsException
Exception message: Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase)
at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, Boolean checkAptcaBit)
at System.Web.Configuration.Common.ModulesEntry.SecureGetType(String typeName, String propertyName, ConfigurationElement configElement)
at System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement)
at System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList)
at System.Web.HttpApplication.GetModuleCollection(IntPtr appContext)
at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName)
at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
at System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
at System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase)

Request information:
Request URL: http://uk-ls-devapp-03/XMPro
Request path: /XMPro
User host address: ::1
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE

Thread information:
Thread ID: 6
Thread account name: NT AUTHORITY\NETWORK SERVICE

Is impersonating: False
Stack trace:    at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase)
at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, Boolean checkAptcaBit)
at System.Web.Configuration.Common.ModulesEntry.SecureGetType(String typeName, String propertyName, ConfigurationElement configElement)
at System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement)
at System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList)
at System.Web.HttpApplication.GetModuleCollection(IntPtr appContext)
at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)

Resolution

For more information on the problem and solution, click here.

How Do I Resolve Error: System.InvalidOperationException: Unable to Generate a Temporary Class (result=1)?

Issue

The site is currently working and can be logged in, but the process is not working and the code is not being executed.

An attempt to remote connect from XMDesigner on dev to prod but an error is received when trying to create the new site file.

Details:

  • Server Operating System: Windows Server 2008 R2
  • SQL version: SQL Server 2008 R2
  • .Net 4.0 installed and application pool is operating under this pool
  • Single tier installation (Web server and SQL server on the same box)

image_4

Resolution

This is due to lack of permission for NTAUTHORITY\NETWORK SERVICE account on the TEMP folder.

WORKAROUND

This is due to lack of permission for NTAUTHORITY\NETWORK SERVICE account on the TEMP folder.

To resolve this issue, assign NETWORK SERVICE the following permissions on C:\Windows\Temp;

List Folder / Read Data

Delete

How Do I Resolve the Unexpected Runtime JavaScript Errors?

Answer

This can be resolved using the following steps:

  1. Uninstall the Google Frame for IE 8 using the Administrative Tools-> Add Remove Programs.
  2. Restart IE and make sure that Google Frame does not appear in the Add Ins.
  3. Open the XMWorkspace and the issue will be resolved.

The reason for the unexpected JavaScript errors is that the Dev Express controls that are used within the XMWorkspace do not support the Google Frame plugin.

Refer to the following Dev Express Support article: http://www.devexpress.com/Support/Center/p/S33520.aspx

How Do I Resolve that the XMPro 5.1 Workspace Does Not Load the Activities when the Session is Configured to be Stored within State Server?

Answer

The XMPro 5.1 workspace does not load the Activities when the Session is configured to be stored within State Server.

This issue happens when the cookieless mode is set to true.

Changing the sessionState configuration within the Web.config to the following resolves the issue:

<sessionState
 mode="StateServer"
 stateConnectionString="tcpip=127.0.0.1:42424"
 cookieless="false"
 timeout="20" />

Refer to the following MSDN article for more information, click here.

The same is true for sessionState being configured within SQL Server or InProc.

It’s probably worth mentioning that this issue has been resolved in the latest 5.1 build.

How Do I Resolve the Message: Import Failed: An Error Occurred Importing the Selected Configuration Information from the Specified File?

Issue

I’ve exported a single process (without user information) from a 5.0 site.

When I attempt to import it into a 5.1 site I get the following:

image_7

Resolution

You cannot export from a v5.0 site and import into a v5.1 site.

The data structure of the tables is different, the styling options and the new managed code columns and values.

You will need to upgrade using the Site Manager the v5.0 database to export the processes.

How Do I Resolve the Error: Could not Load File or Assembly ‘Microsoft.Exchange.WebServices?

The following error is contained within the EventLog when starting the XMAutomate Service (v5.1.1):

XMAutomate.sysTimer_Elapsed: Could not load file or assembly ‘Microsoft.Exchange.WebServices, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The system cannot find the file specified.

This is because the file Microsoft.Exchange.WebServices.dll which is located at C:\Program Files (x86)\XMPro Pty Ltd\XMAutomate is not copied to the installed service folder.

Answer

Copy the DLL to the service folder created under the XMAutomate folder and restart the service.

Could not Load File or Assembly ‘XMPro.Client Integration’ or one of its Dependencies. An Attempt was Made to Load a Program with an Incorrect Format

Issue

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.BadImageFormatException: Could not load file or assembly ‘XMPro.ClientIntegration’ or one of its dependencies.

An attempt was made to load a program with an incorrect format.

Resolution

The error is being returned because you are trying to run something in an x64 instead of an x86 environment.

Anytime you see a “System.BadImageFormatException” it means you’re running within x64 instead of an x86 environment.

Check the application pool if on a Server 2008 R2 is setup to Enable 32bit mode.

This is the legacy version of the XMPro Documentation site. For the latest XMPro documentation, please visit documentation.xmpro.com

X