Monday, March 26, 2012
Error during printing
using custom report printing I am getting an error: An error occured diring
printing. Here is a log entry for that:
aspnet_wp!cache!f28!06/22/2007-15:40:54:: i INFO: Item not cacheable: -
PersistStreams /Accident Reports/AccidentReport
aspnet_wp!chunks!f28!06/22/2007-15:40:54:: i INFO: ###
GetReportChunk('RenderingInfo_IMAGE', 2), chunk was not found!
this=5c9a3ba2-add9-4dcf-b40d-162ec96e65ca
aspnet_wp!reportrendering!f28!06/22/2007-15:40:54:: e ERROR: Throwing
Microsoft.ReportingServices.ReportProcessing.WrapperReportRenderingException:
An unexpected error has occurred trying to parse the device information XML
structure. Details: The value of the parameter 'OutputFormat' is invalid., ;
Info:
Microsoft.ReportingServices.ReportProcessing.WrapperReportRenderingException:
An unexpected error has occurred trying to parse the device information XML
structure. Details: The value of the parameter 'OutputFormat' is
invalid. -->
Microsoft.ReportingServices.ReportRendering.ReportRenderingException: An
unexpected error has occurred trying to parse the device information XML
structure. Details: The value of the parameter 'OutputFormat' is invalid.
at
Microsoft.ReportingServices.Rendering.ImageRenderer.ContextSettings.ParseFormat(String
enumValue, FormatEncoding defaultValue)
at
Microsoft.ReportingServices.Rendering.ImageRenderer.ContextSettings.ParseDeviceInfo(NameValueCollection
deviceInfo)
at
Microsoft.ReportingServices.Rendering.ImageRenderer.ImageReport.RenderReport(Report
report, NameValueCollection deviceInfo, EvaluateHeaderFooterExpressions
evaluateHeaderFooterExpressions, CreateAndRegisterStream
createAndRegisterStreamCallback)
at
Microsoft.ReportingServices.Rendering.ImageRenderer.ImageRendererBase.Render(Report
report, NameValueCollection reportServerParameters, NameValueCollection
deviceInfo, NameValueCollection clientCapabilities,
EvaluateHeaderFooterExpressions evaluateHeaderFooterExpressions,
CreateAndRegisterStream createAndRegisterStream)
at
Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderSnapshot(CreateReportChunk
createChunkCallback, RenderingContext rc, GetResource getResourceCallback)
-- End of inner exception stack trace --
aspnet_wp!library!f28!06/22/2007-15:40:54::
Microsoft.ReportingServices.ReportProcessing.WrapperReportRenderingException:
An unexpected error has occurred trying to parse the device information XML
structure. Details: The value of the parameter 'OutputFormat' is
invalid. -->
Microsoft.ReportingServices.ReportRendering.ReportRenderingException: An
unexpected error has occurred trying to parse the device information XML
structure. Details: The value of the parameter 'OutputFormat' is invalid.
at
Microsoft.ReportingServices.Rendering.ImageRenderer.ContextSettings.ParseFormat(String
enumValue, FormatEncoding defaultValue)
at
Microsoft.ReportingServices.Rendering.ImageRenderer.ContextSettings.ParseDeviceInfo(NameValueCollection
deviceInfo)
at
Microsoft.ReportingServices.Rendering.ImageRenderer.ImageReport.RenderReport(Report
report, NameValueCollection deviceInfo, EvaluateHeaderFooterExpressions
evaluateHeaderFooterExpressions, CreateAndRegisterStream
createAndRegisterStreamCallback)
at
Microsoft.ReportingServices.Rendering.ImageRenderer.ImageRendererBase.Render(Report
report, NameValueCollection reportServerParameters, NameValueCollection
deviceInfo, NameValueCollection clientCapabilities,
EvaluateHeaderFooterExpressions evaluateHeaderFooterExpressions,
CreateAndRegisterStream createAndRegisterStream)
at
Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderSnapshot(CreateReportChunk
createChunkCallback, RenderingContext rc, GetResource getResourceCallback)
-- End of inner exception stack trace --
at
Microsoft.ReportingServices.Library.RenderAsyncExecutionBase.PerformAsyncWork()
at
Microsoft.ReportingServices.Library.AsyncExecution.AsyncStartMain(Object
state)
aspnet_wp!webserver!154c!06/22/2007-15:40:54:: e ERROR: Reporting Services
error
Microsoft.ReportingServices.ReportProcessing.WrapperReportRenderingException:
An unexpected error has occurred trying to parse the device information XML
structure. Details: The value of the parameter 'OutputFormat' is
invalid. -->
Microsoft.ReportingServices.ReportRendering.ReportRenderingException: An
unexpected error has occurred trying to parse the device information XML
structure. Details: The value of the parameter 'OutputFormat' is invalid.
at
Microsoft.ReportingServices.Rendering.ImageRenderer.ContextSettings.ParseFormat(String
enumValue, FormatEncoding defaultValue)
at
Microsoft.ReportingServices.Rendering.ImageRenderer.ContextSettings.ParseDeviceInfo(NameValueCollection
deviceInfo)
at
Microsoft.ReportingServices.Rendering.ImageRenderer.ImageReport.RenderReport(Report
report, NameValueCollection deviceInfo, EvaluateHeaderFooterExpressions
evaluateHeaderFooterExpressions, CreateAndRegisterStream
createAndRegisterStreamCallback)
at
Microsoft.ReportingServices.Rendering.ImageRenderer.ImageRendererBase.Render(Report
report, NameValueCollection reportServerParameters, NameValueCollection
deviceInfo, NameValueCollection clientCapabilities,
EvaluateHeaderFooterExpressions evaluateHeaderFooterExpressions,
CreateAndRegisterStream createAndRegisterStream)
at
Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderSnapshot(CreateReportChunk
createChunkCallback, RenderingContext rc, GetResource getResourceCallback)
-- End of inner exception stack trace --
at Microsoft.ReportingServices.Library.AsyncExecution.StartAsyncThread()
at
Microsoft.ReportingServices.Library.RenderAsyncExecutionBase.StartAsyncRender(RSService
rs, CatalogItemContext reportContext, ClientRequest session)
at
Microsoft.ReportingServices.Library.RenderNextAsyncExecution.RenderNext(RSService
rs, CatalogItemContext reportContext, ClientRequest session)
at
Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderReport(HttpResponseStreamFactory
streamFactory)
at
Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderReport()
at
Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderItem(ItemType
itemType)
at
Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderPageContent()
at
Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderPage()
Any idea what the problem is?I fixed it removing RS Print AcitveX. First print will install it. After
that it worked.
"Mark Goldin" <mgoldin@.ufandd.com> wrote in message
news:uGvqU5QtHHA.4916@.TK2MSFTNGP04.phx.gbl...
>I have a report that when I view it in IE works fine. But I try to print it
>using custom report printing I am getting an error: An error occured diring
>printing. Here is a log entry for that:
> aspnet_wp!cache!f28!06/22/2007-15:40:54:: i INFO: Item not cacheable: -
> PersistStreams /Accident Reports/AccidentReport
> aspnet_wp!chunks!f28!06/22/2007-15:40:54:: i INFO: ###
> GetReportChunk('RenderingInfo_IMAGE', 2), chunk was not found!
> this=5c9a3ba2-add9-4dcf-b40d-162ec96e65ca
> aspnet_wp!reportrendering!f28!06/22/2007-15:40:54:: e ERROR: Throwing
> Microsoft.ReportingServices.ReportProcessing.WrapperReportRenderingException:
> An unexpected error has occurred trying to parse the device information
> XML structure. Details: The value of the parameter 'OutputFormat' is
> invalid., ;
> Info:
> Microsoft.ReportingServices.ReportProcessing.WrapperReportRenderingException:
> An unexpected error has occurred trying to parse the device information
> XML structure. Details: The value of the parameter 'OutputFormat' is
> invalid. -->
> Microsoft.ReportingServices.ReportRendering.ReportRenderingException: An
> unexpected error has occurred trying to parse the device information XML
> structure. Details: The value of the parameter 'OutputFormat' is invalid.
> at
> Microsoft.ReportingServices.Rendering.ImageRenderer.ContextSettings.ParseFormat(String
> enumValue, FormatEncoding defaultValue)
> at
> Microsoft.ReportingServices.Rendering.ImageRenderer.ContextSettings.ParseDeviceInfo(NameValueCollection
> deviceInfo)
> at
> Microsoft.ReportingServices.Rendering.ImageRenderer.ImageReport.RenderReport(Report
> report, NameValueCollection deviceInfo, EvaluateHeaderFooterExpressions
> evaluateHeaderFooterExpressions, CreateAndRegisterStream
> createAndRegisterStreamCallback)
> at
> Microsoft.ReportingServices.Rendering.ImageRenderer.ImageRendererBase.Render(Report
> report, NameValueCollection reportServerParameters, NameValueCollection
> deviceInfo, NameValueCollection clientCapabilities,
> EvaluateHeaderFooterExpressions evaluateHeaderFooterExpressions,
> CreateAndRegisterStream createAndRegisterStream)
> at
> Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderSnapshot(CreateReportChunk
> createChunkCallback, RenderingContext rc, GetResource getResourceCallback)
> -- End of inner exception stack trace --
> aspnet_wp!library!f28!06/22/2007-15:40:54::
> Microsoft.ReportingServices.ReportProcessing.WrapperReportRenderingException:
> An unexpected error has occurred trying to parse the device information
> XML structure. Details: The value of the parameter 'OutputFormat' is
> invalid. -->
> Microsoft.ReportingServices.ReportRendering.ReportRenderingException: An
> unexpected error has occurred trying to parse the device information XML
> structure. Details: The value of the parameter 'OutputFormat' is invalid.
> at
> Microsoft.ReportingServices.Rendering.ImageRenderer.ContextSettings.ParseFormat(String
> enumValue, FormatEncoding defaultValue)
> at
> Microsoft.ReportingServices.Rendering.ImageRenderer.ContextSettings.ParseDeviceInfo(NameValueCollection
> deviceInfo)
> at
> Microsoft.ReportingServices.Rendering.ImageRenderer.ImageReport.RenderReport(Report
> report, NameValueCollection deviceInfo, EvaluateHeaderFooterExpressions
> evaluateHeaderFooterExpressions, CreateAndRegisterStream
> createAndRegisterStreamCallback)
> at
> Microsoft.ReportingServices.Rendering.ImageRenderer.ImageRendererBase.Render(Report
> report, NameValueCollection reportServerParameters, NameValueCollection
> deviceInfo, NameValueCollection clientCapabilities,
> EvaluateHeaderFooterExpressions evaluateHeaderFooterExpressions,
> CreateAndRegisterStream createAndRegisterStream)
> at
> Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderSnapshot(CreateReportChunk
> createChunkCallback, RenderingContext rc, GetResource getResourceCallback)
> -- End of inner exception stack trace --
> at
> Microsoft.ReportingServices.Library.RenderAsyncExecutionBase.PerformAsyncWork()
> at
> Microsoft.ReportingServices.Library.AsyncExecution.AsyncStartMain(Object
> state)
> aspnet_wp!webserver!154c!06/22/2007-15:40:54:: e ERROR: Reporting Services
> error
> Microsoft.ReportingServices.ReportProcessing.WrapperReportRenderingException:
> An unexpected error has occurred trying to parse the device information
> XML structure. Details: The value of the parameter 'OutputFormat' is
> invalid. -->
> Microsoft.ReportingServices.ReportRendering.ReportRenderingException: An
> unexpected error has occurred trying to parse the device information XML
> structure. Details: The value of the parameter 'OutputFormat' is invalid.
> at
> Microsoft.ReportingServices.Rendering.ImageRenderer.ContextSettings.ParseFormat(String
> enumValue, FormatEncoding defaultValue)
> at
> Microsoft.ReportingServices.Rendering.ImageRenderer.ContextSettings.ParseDeviceInfo(NameValueCollection
> deviceInfo)
> at
> Microsoft.ReportingServices.Rendering.ImageRenderer.ImageReport.RenderReport(Report
> report, NameValueCollection deviceInfo, EvaluateHeaderFooterExpressions
> evaluateHeaderFooterExpressions, CreateAndRegisterStream
> createAndRegisterStreamCallback)
> at
> Microsoft.ReportingServices.Rendering.ImageRenderer.ImageRendererBase.Render(Report
> report, NameValueCollection reportServerParameters, NameValueCollection
> deviceInfo, NameValueCollection clientCapabilities,
> EvaluateHeaderFooterExpressions evaluateHeaderFooterExpressions,
> CreateAndRegisterStream createAndRegisterStream)
> at
> Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderSnapshot(CreateReportChunk
> createChunkCallback, RenderingContext rc, GetResource getResourceCallback)
> -- End of inner exception stack trace --
> at Microsoft.ReportingServices.Library.AsyncExecution.StartAsyncThread()
> at
> Microsoft.ReportingServices.Library.RenderAsyncExecutionBase.StartAsyncRender(RSService
> rs, CatalogItemContext reportContext, ClientRequest session)
> at
> Microsoft.ReportingServices.Library.RenderNextAsyncExecution.RenderNext(RSService
> rs, CatalogItemContext reportContext, ClientRequest session)
> at
> Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderReport(HttpResponseStreamFactory
> streamFactory)
> at
> Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderReport()
> at
> Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderItem(ItemType
> itemType)
> at
> Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderPageContent()
> at
> Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderPage()
> Any idea what the problem is?
>sql
Error during FormsAuthentication.RedirectFromLoginPage
Greetings,
I created a custom security extenstion that worked great - except every call to
FormsAuthentication.RedirectFromLoginPage would result in a
"The return URL specified for request redirection is invalid." error type message.
I reverted back to windows security with no problem. Then used the Microsoft Forms Security example thinking maybee I had improperly implemented the interface.
When the forms security example provided by microsoft was configured I still get
"The return URL specified for request redirection is invalid." error type message.
Here is the actual query string when loging into the reportserver using the custom security extension:
http://<MACHINE_NAME>/ReportServer/logon.aspx?ReturnUrl=%2fReportServer%2fPages%2fReportViewer.aspx%3f%252fMathReports%252fClass%2bProgress%2bChart%26ClassID%3d1514%26rs%3aCommand%3dRender&%2fMathReports%2fClass+Progress+Chart&ClassID=1514&rs:Command=Render
I have replaced the ip with <machine_name>. I have been working on this problem for 2 days with no solution. Help would be nice.
Thanks,
Ross B.
I noticed if I manually changed the ReturnURL in the address bar from
http://<MACHINE_NAME>/ReportServer/logon.aspx?ReturnUrl=%2fReportServer%2fPages%2fReportViewer.aspx%3f%252fMathReports%252fClass%2bProgress%2bChart%26ClassID%3d1514%26rs%3aCommand%3dRender&%2fMathReports%2fClass+Progress+Chart&ClassID=1514&rs:Command=Render
to
http://<MACHINE_NAME>/ReportServer/logon.aspx?ReturnUrl=%2fReportServer%2fPages%2fReportViewer.aspx%3f%2fMathReports%2fClass+Progress+Chart&ClassID=1514&rs:Command=Render
It almost looks like the redirect is duplicated in the query string - anyone know why this is?
|||If I change functionality from
FormsAuthentication.RedirectFromLoginPage(TxtUser.Text, false);
To:
aUrl=Request.QueryString["ReturnUrl"];
FormsAuthentication.SetAuthCookie(TxtUser.Text,false);
Response.Redirect(aURL);
This works...however I am still puzzled as to what is causing the recommended way to fail in my setup.
Ross B.
|||
Hi,
I am facing a similar problem. However, I tried your solution but it did not work.
In my case the http://<Site Name>/_layouts/login.aspx?ReturnUrl=%2flists%2ffeedback%2fnewform.aspx%3fsource%3d%2fpages%2fconfirmation.aspx%3fsource%3dhttp%3a%2f%2f<Site Name&source=/pages/confirmation.aspx?source=http://<Site Name>
When I replace the return url from realtive to absolute link it starts working. Can you please suggest me where should i change to get this working?
Thanks in advance,
sqlError during FormsAuthentication.RedirectFromLoginPage
Greetings,
I created a custom security extenstion that worked great - except every call to
FormsAuthentication.RedirectFromLoginPage would result in a
"The return URL specified for request redirection is invalid." error type message.
I reverted back to windows security with no problem. Then used the Microsoft Forms Security example thinking maybee I had improperly implemented the interface.
When the forms security example provided by microsoft was configured I still get
"The return URL specified for request redirection is invalid." error type message.
Here is the actual query string when loging into the reportserver using the custom security extension:
http://<MACHINE_NAME>/ReportServer/logon.aspx?ReturnUrl=%2fReportServer%2fPages%2fReportViewer.aspx%3f%252fMathReports%252fClass%2bProgress%2bChart%26ClassID%3d1514%26rs%3aCommand%3dRender&%2fMathReports%2fClass+Progress+Chart&ClassID=1514&rs:Command=Render
I have replaced the ip with <machine_name>. I have been working on this problem for 2 days with no solution. Help would be nice.
Thanks,
Ross B.
I noticed if I manually changed the ReturnURL in the address bar from
http://<MACHINE_NAME>/ReportServer/logon.aspx?ReturnUrl=%2fReportServer%2fPages%2fReportViewer.aspx%3f%252fMathReports%252fClass%2bProgress%2bChart%26ClassID%3d1514%26rs%3aCommand%3dRender&%2fMathReports%2fClass+Progress+Chart&ClassID=1514&rs:Command=Render
to
http://<MACHINE_NAME>/ReportServer/logon.aspx?ReturnUrl=%2fReportServer%2fPages%2fReportViewer.aspx%3f%2fMathReports%2fClass+Progress+Chart&ClassID=1514&rs:Command=Render
It almost looks like the redirect is duplicated in the query string - anyone know why this is?
|||If I change functionality from
FormsAuthentication.RedirectFromLoginPage(TxtUser.Text, false);
To:
aUrl=Request.QueryString["ReturnUrl"];
FormsAuthentication.SetAuthCookie(TxtUser.Text,false);
Response.Redirect(aURL);
This works...however I am still puzzled as to what is causing the recommended way to fail in my setup.
Ross B.
|||
Hi,
I am facing a similar problem. However, I tried your solution but it did not work.
In my case the http://<Site Name>/_layouts/login.aspx?ReturnUrl=%2flists%2ffeedback%2fnewform.aspx%3fsource%3d%2fpages%2fconfirmation.aspx%3fsource%3dhttp%3a%2f%2f<Site Name&source=/pages/confirmation.aspx?source=http://<Site Name>
When I replace the return url from realtive to absolute link it starts working. Can you please suggest me where should i change to get this working?
Thanks in advance,
Sunday, February 26, 2012
error configuration
I want to use custom error configuration for a single dimension.
When I set the error configuration properties for a single dimension in Visual Studio, process this dimension and process the cube then the custom error configuration settings are ignored.
When I set custom error configuration settings for the cube in Visual Studio these settins are also ignored.
When I set the custom error configuration settings in the Process Cube Window (Change Settings - Dimension Key errors) then these settings are applied to all dimensions.
How can I use custom error configuration for a single dimension and why are my settings in Visual Studio ignored.
Thanks for any reply.
They should not be ignored. Probably you work in the project mode and do not deploy before opening the processing dialog.When you set it in VS you modify the error configuration only for the local data. If you are in project mode then you need to deploy your changes onto the server so that the changes would be known. Usually the deployment also means processing. If you just click that button to open the processing dialog in VS then it establishes a server connection and processes whatever has been previously deployed, which contains the old error configuration.
If you are in on-line mode then you need to save the object (dimension, cube) once you have changed the error configuration. Saving will propagate the meta data changes onto the server and once you open the processing dialog it will process with the new error configuration.
Saving in project mode will persist your changes on disk and not on the server. This is why in project mode you need deployment.|||
Thanks for your reply.
I have deployed my changes. I have the same behaviour when I am using SQL Server Management Studio on the server. Here I can view the current error configuration of the dimension:
Use default error configuration: disabled
Key error action: Convert To Unknown
Ignore errors
Key not found: Report And Continue
Duplicate key: Ignore Error
Null key converted to unknown: Ignore Error
Null key not allowed: IgnoreError
Error log path: C:\Program Files\Microsoft SQL Server\MSSQL.2\OLAP\Log\analyzer.log
When I rightclick on the cube and select Process to open the Process cube window and start processing with the default settings I still get a key not found error (for this dimension with an individual configuration error setting) and processing stops.
When I change the error configuration settings in SQL Server Management Studio for the cube this settings are ignored when I process via the Process Cube window with the default settings.
And when I change the error configuration settings for the process (in the Process Cube window) these settings are taken for all dimensions and the individual settings of the dimensions are ignored.
Do I have to start the process in another way?
Are there any preconditions like schema optimization in AS 2000?
|||
> I still get a key not found error (for this dimension with an individual configuration error setting) and processing stops.
Does the processing dialog box show that the processing failed? Stops could mean it succeeded with errors. Depends how much time it takes to process your cube.
Unless you have a repro, which you could send i will need to model the situation according to your description and get back to you with the results.
|||try to configure like this..
Click the Cube properties...
Goto Error configuration....and set it to custom...
and then expand it and set the 'Key Error Limit' as -1 save it and process the cubbe.
Hope this helps you.
|||I have made some repro simulation and asked people a question and here what has been found. When you specify Ignore Error ( -1 for KeyErrorLimit ) on a dimension it does not apply to the problems with fact data. It applies to the case when your dimension consists of attributes having sources to different tables - snowflake dimensions. The content in these tables might have referential integrity problems. Specifying -1 KeyErrorLimit will allow processing the dimension.When you specify -1 KeyErrorLimit for a cube it allows processing when the fact tables do not have corresponding primary key in any of the dimension tables.
It is not possible to declare ignoring referential integrity problems between fact table and only one dimension table. Once it is defined on a cube or partition then referential integrity problems with all the dimensions are ignored.
In my test case i created a simple database, which has 2 dimension tables and one fact table. The fact table contained records with some foreign key values absent in the dimension tables. I created 2 dimensions and one measure group. In order to process successfully i just had to specify -1 KeyErrorLimit in ErrorConfiguration of the cube. Everything processed fine.
Maybe you have 2 types of referential integrity problems at the same time and in order to resolve them you need to specify -1 KeyErrorLimit on the dimension and on the cube.|||
Hi Andrew,
thank you very much for your detailed explanation (and also thanks to rockworld for your hint).
So it was my misunderstanding how to use the custom error configuration on a dimension.
Sunday, February 19, 2012
Error calling CreateReportHistorySnapshot method.
Hello,
I am getting an error when calling the CreateReportHistorySnapshot method from a custom assembly. The error is:
Response is not well-formed XML.
The data source is an XML file which is updated by the custom assembly before the call into the CreateReportHistorySnapshot method.
Has anyone seen this problem before or have any suggestions?
The Data Source XML is well-formed by the way... :-0)
I have had this error before when i wasnt the db admin. it seems there are a few errors along these lines where error messages flag up issues which are actually unrelated.
Try Permission and i would assume this will fix your error.
Andy
|||Hi Andy,
Thanks for this!! Can you just clarify what would fix the error.
Many thanks.
|||The user that is running the createsnapshot method needs to be set as the DB Owner within SQL, this fixed the same problem i was having with this a couple of months ago.
It is often the case with many of these areas, subcriptions is another area where db admin comes into play.
If you hear of another fix please let me know as this is not ideal for me as a long term solution.
Wednesday, February 15, 2012
Error Accessing the Registry in Custom Code
I have created a custom code module that is attempting to read a registry key value using code similar to the following...
Dim regKey As Microsoft.Win32.RegistryKey
regKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("SOFTWARE\OurCompany\Group\ReportServers")
This consistently fails. I note in the event viewer a Failure Audit with the following...
Date: xx/xx/xxxx
Time: xx:xx:xx xx
Type: Failure Aud[it]
User: NT AUTHORITY\SYSTEM
Computer: RSComputerName
Source: Security
Category: Object Access
Event ID: 560
Description:
Object Open:
Object Server: Security
Object Type: Key
Object Name: \REGISTRY\USER\.DEFAULT
Handle ID: -
Operation ID: {0,66061313}
Process ID: 1164
Image File Name: C:\WINDOWS\system32\svchost.exe
Primary User Name: MyComputerName$
Primary Domain: MyDomain
Primary Logon ID: (0x0,0x3E7)
Client User Name: MyComputerName$
Client Domain: MyDomain
Client Logon ID: (0x0,0x3E7)
Accesses: MAX_ALLOWED
Privileges: -
Restricted Sid Count: 0
Access Mask: 0x2000000
I've tried granting a bunch of permissions to SYSTEM and Everyone to HKLM subkeys, to no avail. Any thoughts on what I can do to fix the problem?
Thanks in advance.
Keith Spitz
Wall Street On Demand, Inc.
This is because the VB code in report expressions is not trusted and accessing registry requires special code permissions. The standard way is to move the code that reads registry into a custom assembly, grant that assembly required code permissions (rssrvpolicy.config), assert those permissions inside the assembly and call that assembly from your report.
http://support.microsoft.com/default.aspx?scid=kb;en-us;842419
|||Thanks -- that was the info I needed.
However, having never created a custom assembly before, it took a little work to get the job done. I found a good tutorial at http://www.c-sharpcorner.com/Code/2005/June/CustomAssemblyinRS.asp.
Keith Spitz, Wall Street On Demand, Inc.