HELP! Crystal Reports for VS2005 not working!
I am running our applications as managed assemblies from our intranet
site using a stub executable to load the assembly on the clients
machine. Using Visual Studio 2003 and Crystal Reports version 9 this
worked fine because I installed all the supporting dlls on the
clients
machine ahead of time.
However, using Crystal Reports for Visual Studio 2005 I get the
following error when attempting to print from an assembly loaded from
our intranet site:
Note this line in the error message:
http://intranet.taglab.org/SharedApps-TEST/Stub.exe?loc=NERKA2&app=CS...
Something is looking for a .config file in the executing path and
obviously not finding it. How can I change this behavior?
System.TypeInitializationException: The type initializer for
'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an
exception. ---> System.Configuration.ConfigurationErrorsException:
Configuration system failed to initialize --->
System.Configuration.ConfigurationErrorsException: Data at the root
level is invalid. Line 1, position 1. (http://intranet.taglab.org/
SharedApps-TEST/Stub.exe?loc=NERKA2&app=CS&tm=TRUE.config line 1) ---
>
System.Xml.XmlException: Data at the root level is invalid. Line 1,
position 1.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at System.Configuration.XmlUtil..ctor(Stream stream, String name,
Boolean readToFirstElement, ConfigurationSchemaErrors schemaErrors)
at
System.Configuration.BaseConfigurationRecord.InitConfigFromFile()
--- End of inner exception stack trace ---
at
System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean
ignoreLocal)
at
System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfiguratiĀ
onSchemaErrors
schemaErrors)
at
System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors()
at
System.Configuration.ClientConfigurationSystem.EnsureInit(String
configKey)
--- End of inner exception stack trace ---
at System.Configuration.ConfigurationManager.GetSection(String
sectionName)
at System.Configuration.ConfigurationSettings.GetConfig(String
sectionName)
at CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor()
--- End of inner exception stack trace ---
at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor()
at CommercialSample.frmCommercialSample.miPrint_Click(Object
sender, EventArgs e)
Date:Wed, 01 Aug 2007 16:28:17 -0000
Author:
|