Hi everyone.
I'm having a problem importing reports from my Altiris 7 test environment to the production server. Both servers has the same configurations and runs the same software versions.
The import process works fine, and when I run the report as administrator it works too. I've set a security rule so that users can read and run these imported reports, but when I try to run a report as user I get an "Unknown Error".
Checking the event log, I've seen that the error refers to a "page error". Here's the dump:
Log File Name: C:\Program Files\Altiris\Notification Server\Logs\a.log
Priority: 1
Date: 4/2/2010 4:54:45 PM
Tick Count: 2746062
Host Name: MIGE114
Process: w3wp (4648)
Thread ID: 32
Module: w3wp.exe
Source: Altiris.Reporting.UI.ReportPage.ShowUnhandledError
Description: Page Error.
( Exception Details: Altiris.Reporting.Common.Exceptions.ReportInitializationException: Failed when initializing the Report View Control. ---> Altiris.NS.Exceptions.AeXUnauthorizedAccessException: The current user does not have required permission 'read' to load item 'Computer NON Gestiti (MI) Query (385e8bd8-0a64-45c0-808e-f0ff53066478)'.
at Altiris.NS.ItemManagement.Item.RaiseItemLoadFlagsSecurityException(String message)
at Altiris.NS.ItemManagement.Item.CheckCanGetItem(IItem item, IEnumerable`1 accessPermissions, ItemLoadFlags itemLoadFlags)
at Altiris.NS.ItemManagement.Item.GetItemInternal(Guid itemGuid, IEnumerable`1 accessPermissions, ItemLoadFlags itemLoadFlags)
at Altiris.NS.ItemManagement.Item.GetItem[T](Guid itemGuid, IEnumerable`1 accessPermissions, ItemLoadFlags itemLoadFlags)
at Altiris.NS.ItemManagement.Item.GetItem(Guid itemGuid, ItemLoadFlags itemLoadFlags)
at Altiris.Reporting.DataSource.ReportDataSourceReference.EnsureDataSourceRefs()
at Altiris.DataSource.DataSourceReference.get_DataSource()
at Altiris.Reporting.Report.get_DataSource()
at Altiris.Reporting.UI.ReportViewControl.OnInit(EventArgs e)
--- End of inner exception stack trace ---
at Altiris.Reporting.UI.ReportViewControl.OnInit(EventArgs e)
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 Altiris.Reporting.Web.Report.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at Altiris.Reporting.UI.ReportPage.OnInit(EventArgs e)
at Altiris.Reporting.Web.Report.OnInit(EventArgs e) )
( Exception logged from:
at Altiris.Diagnostics.Logging.EventLog.ReportException(Int32 severity, String strMessage, String category, Exception exception)
at Altiris.Diagnostics.Logging.EventLog.ReportException(String strMessage, String category, Exception exception)
at Altiris.NS.Logging.EventLog.ReportException(String strMessage, Exception exception)
at Altiris.Reporting.UI.ReportPage.ShowUnhandledError(String message, Exception err)
at Altiris.Reporting.Web.Report.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
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.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.report_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
at System.Web.HttpApplication.ApplicationStepManager.ResumeSteps(Exception error)
at System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
at System.Web.HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
at System.Web.Hosting.ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
)
( Extra Details: Type=Altiris.Reporting.Common.Exceptions.ReportInitializationException Src=Altiris.Reporting.UI
Inner Extra Details: Type=Altiris.NS.Exceptions.AeXUnauthorizedAccessException Src=Altiris.NS )
Then I created a new report manually, specifying the same SQL query and security rule and saved it to the same directory as the previous one, and it worked.
Can anyone help me clearing it up?
Thanks in advance.
Danilo Zappa