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

Error In DNN using Telerik Report

1 Answer 73 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Muhammad
Top achievements
Rank 1
Muhammad asked on 26 Jan 2011, 07:14 PM
I am using dotnetnuke to show my report but I don't know why I am getting this exception.



This is my telerik report project code and I have added this reference in my website.

Partial Public Class jobReport
    Inherits Telerik.Reporting.Report
    Public Sub New()
        InitializeComponent()
        Me.datasource = Nothing
    End Sub


    Private Sub jobReport_NeedDataSource(ByVal sender As Object, ByVal e As System.EventArgs)
        ' Take the Telerik.Reporting.Processing.Report instance
        Dim report As Telerik.Reporting.Processing.Report = DirectCast(sender, Telerik.Reporting.Processing.Report)


        ' Transfer the processing Parameter value to the parameter of the select command         
        Me.SqlDataAdapter1.SelectCommand.Parameters("@p_JobID").Value = report.Parameters("ID").Value


        ' and set the adapter as it's DataSource         
        report.DataSource = Me.SqlDataAdapter1
    End Sub


End Class This is my website code and i am adding one parameter here and passing a value from query string.  Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load


        If Not IsPostBack Then


            Dim nJobID As Integer
            nJobID = Request.QueryString("JobID")
            If nJobID <> 0 Then
                Dim rptJobList As New jobReport
                Dim reportParameter1 As New Telerik.Reporting.ReportParameter()
                reportParameter1.Name = "ID"
                reportParameter1.Text = "Enter Value for Parameter1"
                reportParameter1.Type = Telerik.Reporting.ReportParameterType.Integer
                reportParameter1.AllowBlank = False
                reportParameter1.AllowNull = False
                reportParameter1.Value = nJobID
                reportParameter1.Visible = True
                rptJobList.ReportParameters.Add(reportParameter1)
                rptJobList.ReportParameters("ID").Value = nJobID
                reportViewer.Report = rptJobList
            End If


        End If
    End Sub An error occurred loading a configuration file: Failed to map the path '/'.   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.OpenWebConfiguration(String path)
   at Telerik.ReportViewer.WebForms.ReportViewer.CheckHandlerConfiguration()
   at Telerik.ReportViewer.WebForms.ReportViewer.CheckHttpHandlerRegistrations()
   at Telerik.ReportViewer.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.AddedControl(Control control, Int32 index)
   at System.Web.UI.ControlCollection.Add(Control child)
   at phdcc.CodeModule.View.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\DNN\DesktopModules\phdcc.CodeModule\View.ascx.vb:line 92

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 28 Jan 2011, 06:34 PM
Hi Muhammad,

Check the following KB article that elaborates on the matter: Failed to map the path '/' exception.

All the best,
Peter
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
Tags
General Discussions
Asked by
Muhammad
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or