Thursday, February 09, 2012  | 
Welcome to Module Masters support forums - the primary support mechanism for our products. Feel free to post your questions, and we will aim to respond in a timely manner.  We also encourage our users to post any feedback you may have.  You may also email us directly at service@modulemasters.com
Subject: There is an error in XML document (1, 222). & System.Configuration.ConfigurationErrorsException
Prev Next
You are not authorized to post a reply.

Author Messages
muniappanUser is Offline

Posts:53

06/21/2007 17:21  

Hi everybodies,

I am getting the following errors when i am using report module in the page. Plese let me know how to solve this issue?.

1) Error: rs 2005 is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: There is an error in XML document (1, 222). ---> System.InvalidOperationException: There is an error in XML document (1, 222). ---> System.Security.SecurityException: Request failed. at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderServerReportSoapProxy.Read5_ServerInfoHeader(Boolean isNullable, Boolean checkType) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderServerReportSoapProxy.Read23_Item() at Microsoft.Xml.Serialization.GeneratedAssembly.ArrayOfObjectSerializer3.Deserialize(XmlSerializationReader reader) at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) The action that failed was: Demand The type of the first permission that failed was: System.Security.PermissionSet The Zone of the assembly that failed was: MyComputer --- End of inner exception stack trace --- at Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.GetSecureMethods() at Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.IsSecureMethod(String methodname) at Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.LoadReport(String Report, String HistoryID) at Microsoft.Reporting.WebForms.ServerReport.GetExecutionInfo() at Microsoft.Reporting.WebForms.ServerReport.GetParameters() at BeckerSolutions.Modules.RS2005.ViewRS2005.SetParms2005() at BeckerSolutions.Modules.RS2005.ViewRS2005.SetupReport2005() at BeckerSolutions.Modules.RS2005.ViewRS2005.SetupReport() at BeckerSolutions.Modules.RS2005.ViewRS2005.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

2) Unhandled error loading module.
DotNetNuke.Services.Exceptions.ModuleLoadException: Unhandled Error Adding Module to ContentPane ---> System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. ---> System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand() at System.IO.Path.GetFullPath(String path) at System.Web.Util.FileUtil.IsSuspiciousPhysicalPath(String physicalPath, Boolean& pathTooLong) at System.Web.Util.FileUtil.IsSuspiciousPhysicalPath(String physicalPath) at System.Web.Configuration.MetabaseServerConfig.MapPathCaching(String siteID, VirtualPath path) at System.Web.Configuration.MetabaseServerConfig.System.Web.Configuration.IConfigMapPath.MapPath(String siteID, VirtualPath vpath) at System.Web.Configuration.MetabaseServerConfig.System.Web.Configuration.IConfigMapPath.GetPathConfigFilename(String siteID, VirtualPath path, String& directory, String& baseName) at System.Web.Configuration.WebConfigurationHost.GetStreamName(String configPath) at System.Configuration.Internal.DelegatingConfigHost.GetStreamName(String configPath) at System.Configuration.BaseConfigurationRecord.InitConfigFromFile() The action that failed was: Demand The type of the first permission that failed was: System.Security.Permissions.FileIOPermission The Zone of the assembly that failed was: MyComputer --- End of inner exception stack trace --- at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal) at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors) at System.Configuration.Configuration..ctor(String locationSubPath, Type typeConfigHost, Object[] hostInitConfigurationParams) at System.Configuration.Internal.InternalConfigConfigurationFactory.System.Configuration.Internal.IInternalConfigConfigurationFactory.Create(Type typeConfigHost, Object[] hostInitConfigurationParams) at System.Web.Configuration.WebConfigurationHost.OpenConfiguration(WebLevel webLevel, ConfigurationFileMap fileMap, VirtualPath path, String site, String locationSubPath, String server, String userName, String password, IntPtr tokenHandle) at System.Web.Configuration.WebConfigurationManager.OpenWebConfigurationImpl(WebLevel webLevel, ConfigurationFileMap fileMap, String path, String site, String locationSubPath, String server, String userName, String password, IntPtr userToken) at System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(String path) at Microsoft.Reporting.WebForms.ReportViewer.ConfigContainsHandler() at Microsoft.Reporting.WebForms.ReportViewer.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) in C:\WebPortal\DotNetNuke\Library\Components\Skins\Skin.vb:line 589 --- End of inner exception stack trace ---

hostUser is Offline

Posts:497

06/21/2007 18:25  
what is your trust level set at in the web.config?
muniappanUser is Offline

Posts:53

06/22/2007 09:29  
Trust level is medium. I have the following entries in my web.config file.



Is the above correct?
hostUser is Offline

Posts:497

06/22/2007 09:30  
Try setting it to Full. Are you getting this error all the time or just some of the time?
muniappanUser is Offline

Posts:53

06/22/2007 09:31  
Sorry my web.cofig entries are not displayed in the previous reply.
Trust level is medium. I have the following entries in my web.config file.
""
Is the above correct?
hostUser is Offline

Posts:497

06/22/2007 09:32  
What happens when you set it to full?
muniappanUser is Offline

Posts:53

06/22/2007 09:32  
all the time.
muniappanUser is Offline

Posts:53

06/22/2007 09:34  
Thank you.
Now it is working after i chaged to Full trust.
hostUser is Offline

Posts:497

06/22/2007 09:35  
Interesting, in the machine.config, there must have been a very restrictive setting or something in a policy file. Glad that fixes it.
You are not authorized to post a reply.
Forums > Module Masters Forum > SQL Reporting Services > There is an error in XML document (1, 222). & System.Configuration.ConfigurationErrorsException



ActiveForums 3.7
Copyright 2011 by Module Masters Privacy StatementTerms Of Use