This is a migrated thread and some comments may be shown as answers.

Deployment issues with Telerik Reports (q2 2009)

5 Answers 191 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Julius Patawaran
Top achievements
Rank 1
Julius Patawaran asked on 28 Jul 2009, 04:28 AM
Hi,

We have a web application that recently used the above captioned.  However, during deployment (we've followed the the guidelines stated in http://www.telerik.com/help/reporting/installation-deploying-on-server.html), we encountered an error.

On the browser, it outputs the following:
Server Error in '/ChatterboxTest2' Application.
--------------------------------------------------------------------------------

Security Exception
Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace:


[SecurityException: The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security.]
   System.Diagnostics.EventLog.FindSourceRegistration(String source, String machineName, Boolean readOnly) +665
   System.Diagnostics.EventLog.SourceExists(String source, String machineName) +104
   System.Diagnostics.EventLog.VerifyAndCreateSource(String sourceName, String currentMachineName) +75
   System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData) +205
   System.Diagnostics.EventLog.WriteEntry(String message) +12
   System.Diagnostics.EventLogTraceListener.Write(String message) +17
   System.Diagnostics.EventLogTraceListener.WriteLine(String message) +7
   System.Diagnostics.TraceInternal.WriteLine(String message) +184
   System.Diagnostics.Trace.WriteLine(String message) +4
   Telerik.Reporting.Processing.Timer..ctor(String name) +48
   Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo, CreateStream createStreamCallback, String& documentName) +74
   Telerik.ReportViewer.WebForms.ServerReport.Render(HttpResponse response, String format, Int32 pageIndex) +343
   Telerik.ReportViewer.WebForms.ReportPageOperation.PerformOperation(NameValueCollection urlQuery, HttpContext context) +119
   Telerik.ReportViewer.WebForms.HttpHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context) +121
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


And on the Event log:

Event Type:    Information
Event Source:    ASP.NET 2.0.50727.0
Event Category:    Web Event
Event ID:    1314
Date:        7/28/2009
Time:        4:11:33 PM
User:        N/A
Computer:    XPVPC
Description:
Event code: 4010
Event message: An unhandled security exception has occurred.
Event time: 7/28/2009 4:11:33 PM
Event time (UTC): 7/28/2009 4:11:33 AM
Event ID: 25f3904955754ff2b6ac42f9c85523a7
Event sequence: 35
Event occurrence: 2
Event detail code: 0
 
Application information:
    Application domain: /LM/W3SVC/1/ROOT/ChatterboxTest2-7-128932276281734416
    Trust level: Full
    Application Virtual Path: /ChatterboxTest2
    Application Path: C:\inetpub\wwwroot\ChatterboxTest2\
    Machine name: XPVPC
 
Process information:
    Process ID: 480
    Process name: aspnet_wp.exe
    Account name: XPVPC\ASPNET
 
Request information:
    Request URL: http://localhost/ChatterboxTest2/Telerik.ReportViewer.axd?culture=en-US&uiculture=en-US&instanceid=da3949441be24c4097c22bbef4b8b4c8&optype=Report&PageIndex=0
    Request path: /ChatterboxTest2/Telerik.ReportViewer.axd
    User host address: 127.0.0.1
    User:  
    Is authenticated: False
    Authentication Type:  
    Thread account name: XPVPC\ASPNET
 
Custom event details:

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


Kindly advice how to fix this.  Cheers.

Regards,
Julius



 

5 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 28 Jul 2009, 08:03 AM
Hi Julius,

The error indicates that you're trying to run your project under Medium Trust, while Telerik Reporting currently requires Full Trust level as indicated by our System Requirements.
Our devs are currently looking into the matter and hopefully we would be able to come up with a working solution (or statement on the matter) soon.

Greetings,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Julius Patawaran
Top achievements
Rank 1
answered on 29 Jul 2009, 05:05 AM
Hi,

Since this web application will be hosted on an internal server, we can probably configure it to run under a full trust context (at least for the short to medium term).  What've done is updated the web.config to include that  but unfortunately the problem persists.  An excerpt from our config file is as follows:

<system.web>
        <!--
            Set compilation debug="true" to insert debugging
            symbols into the compiled page. Because this
            affects performance, set this value to true only
            during development.
        -->
        <trust level="Full"/>
        <compilation debug="true">
            <assemblies>
                ...

                
        <add assembly="Telerik.Reporting" />
        <add assembly="Telerik.ReportViewer.WebForms" />               
     </assemblies>
....

<handlers>
....
            <add name="Telerik.ReportViewer.axd_*" path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms" preCondition="integratedMode,runtimeVersionv2.0" />
        </handlers>


We're currenly running this on IIS7 under Windows Server 2008. 

Please advice how we could rectify this.  Cheers.
0
Steve
Telerik team
answered on 29 Jul 2009, 10:42 AM
Hi Julius,

By default the trust level for applications is Full, so there is no need to set anything in your web.config file. If it is not working, then the trust level is probably limited on machine level (machine.config) or per user basis by a  security policy. You can check MS and IIS forums for more info on issues with trust levels.

Greetings,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Julius Patawaran
Top achievements
Rank 1
answered on 29 Jul 2009, 10:19 PM
Hi,


Just confirmed it, it's not the trust level that's causing the error.  Just checked the machine level and application level web config file and it's set to "Full" trust.  Here's the excerpt from the machine level web.config...

<location allowOverride="true">
        <system.web>
            <securityPolicy>
                <trustLevel name="Full" policyFile="internal"/>
                <trustLevel name="High" policyFile="web_hightrust.config"/>
                <trustLevel name="Medium" policyFile="web_mediumtrust.config"/>
                <trustLevel name="Low" policyFile="web_lowtrust.config"/>
                <trustLevel name="Minimal" policyFile="web_minimaltrust.config"/>
            </securityPolicy>
            <trust level="Full" originUrl=""/>
        </system.web>
    </location>

Furthermore, just verified from Windows 2008 IIS Server control panel that the Web Application is running under Full trust. 

So going back to my original question, what is causing that security exception???  Mind you that the same web application hosted under XP (IIS 5.1) doesn't have that problem. Cheers.




0
Steve
Telerik team
answered on 04 Aug 2009, 07:39 AM
Hi Julius,

Thank you for the clarification. It would seem that we were mistaken and the issue is not trust level - rather it looks like your app is trying to write to the windows security log for some reason and it does not allow you to. Have you configured such settings for the trace listeners?
We would appreciate if you provide us with a link to your web.config file (remove sensitive info such as passwords etc.) so we can review it. Even a better option would be to provide a sample app that exhibits the problem on your end so we can run it locally. Also what application pool mode do you use - Classic or Integrated?

Best wishes,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
Julius Patawaran
Top achievements
Rank 1
Answers by
Steve
Telerik team
Julius Patawaran
Top achievements
Rank 1
Share this question
or