Telerik Forums
Reporting Forum
1 answer
277 views
Hi,

I'm trying to pass parameter through report default constructor and then bind report controls with values.
After that i get this error:

Server Error in '/' Application.

No parameterless constructor defined for this object.

This is the report code:

Public Sub New(ByVal id As String)

 

InitializeComponent()

 

Dim db As New DataClassesDataContext

 

 

Dim q_worksheet = (From _wo In db.Worksheets Where _wo.WorksheetID.ToString = id Select _wo).First

 

txtBoat.Value = q_worksheet.BoatID

 

End Sub


Is there any other way to use parameters with linq to sql?

Massimiliano Bassili
Top achievements
Rank 1
 answered on 04 Aug 2009
5 answers
268 views
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



 
Steve
Telerik team
 answered on 04 Aug 2009
1 answer
96 views
I'm trying to build a parent-child-grandchild report.  The parent-child subreport is working OK, I now am trying to add the grandchild subreport in the details section of the child report.  It looks like this is pulling the correct data, but it is not printing in the way I would expect.  It prints a page of the child records then a page of the grandchild records, page of child, page of grandchild.  I need to group the child-grandchild together.

Thanks,
-Sid.
Steve
Telerik team
 answered on 04 Aug 2009
6 answers
252 views
Hello
Well, I have a SubReport that "seems" to work.  However, it only displays data for one parent/master id, not all of the ones in the report. 

I set up my report like the Help file states, except I chose to use stored procedures instead of plain T-SQL query to get the data from our sql server.

The SubReport ONLY seems to display the default value that I set on the Detail Report's SQL Adapter's Parameters property, in design time.  The parameter is an integer (for an ID) and when I set it to any existing ID, the SubReport ONLY shows data for that ID...none of the other ones on the report.  The Master/Parent report passes the parameter and sets it to a value for one of the fields, but apparently this doesn't work or I am doing something wrong.

Any help would be appreciated.
Thanks
 will
Carla Lewis
Top achievements
Rank 2
 answered on 03 Aug 2009
1 answer
160 views
Hello,

I have a multivalue parameter dropdown and it always displays as 200px high when it's opened.  The issue is that when there are more than 9 items it doesn't display a scrollbar to scroll down to the other items. 

I have the latest version of Reporting.  I thought I saw another forum explaining this same error (before I realized I had it too) but now I can't find it.

Thanks!
Steve
Telerik team
 answered on 03 Aug 2009
23 answers
394 views
Are there any plans to support mid-trust environments in a near future? many of the host enviroments people use are shared hosting, and they don't support full trust environments.
Angelo
Top achievements
Rank 1
 answered on 03 Aug 2009
3 answers
139 views
I am having an issue that I cannot seem to figure out.

I have a report that has code in the needdatasource event that updates three textboxes in the report.  I have setup the report and in the preview it renders correctly.  however, once I add a reportviewer to the page and set the report parameters, the report renders the details section just fine and it is based upon the parameters I passed in.  But the textboxes being set in the needdatasource event are not updated.  If I hit the refresh button on the reportviewer, it is then updated.

Any ideas on where I should be updating the textboxes?
Terry Webster
Top achievements
Rank 2
 answered on 03 Aug 2009
0 answers
133 views
Is there anything for Telerik Reporting like SSRS?  I'm talking about browsing reports, setting permissions and saving parameters and such.  If not is there anything in the works for that?  If not then how about an open source project? :D
Darren
Top achievements
Rank 1
 asked on 03 Aug 2009
1 answer
206 views
I have gone over the videos on reporting but I am still having an issue getting data to show.

I have added a class to an existing project and gone through the creation wizard to create the data connnection and lay out the report.  The selected data fields show in the designer view such as =Fields.[First Name], etc.  When i click preview I only get the report header and footer.

I added a new aspx form and added the report viewer and set it equal to the new report class.  When I display that screen I get the report header and footer but no details.

What step an I missing
Janus Pedersen
Top achievements
Rank 2
 answered on 03 Aug 2009
3 answers
204 views
Hello,

I am exporting a PDF in code (not using the web viewer) and would like to prevent the user from interaction with the rest of the side until the Open/Save dialog prompt. Does anyone know if this can be done. And if so, how?


Thanks,
John
Janus Pedersen
Top achievements
Rank 2
 answered on 03 Aug 2009
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?