Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. RDLC Report in Asp.Net

RDLC Report in Asp.Net

Scheduled Pinned Locked Moved ASP.NET
csharphelpasp-netwindows-admintutorial
9 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    Zeyad Jalil
    wrote on last edited by
    #1

    Hi All, I used the rdlc report in my Web form application c#, and in the development environment every thing work fine, but when publish the Application Over the IIS the report viewer didn't show any thing and an error occurred. "System.NotSupportedException: The given path's format is not supported." Please let me know how to solve this issue. Thanks All

    W 1 Reply Last reply
    0
    • Z Zeyad Jalil

      Hi All, I used the rdlc report in my Web form application c#, and in the development environment every thing work fine, but when publish the Application Over the IIS the report viewer didn't show any thing and an error occurred. "System.NotSupportedException: The given path's format is not supported." Please let me know how to solve this issue. Thanks All

      W Offline
      W Offline
      Wendelius
      wrote on last edited by
      #2

      Without seeing the actual code etc it's quite hard to say why the problem occurs but the problem is that the path given is not valid. So (re)check: - That the path is a real path. - If drive is defined in the path, check that semicolon ( : ) is the second character. - No extra characters anywhere in the path definition. I believe it would be a good idea to write the path into a log file so you can see what path is actually used on the IIS server.

      Z 1 Reply Last reply
      0
      • W Wendelius

        Without seeing the actual code etc it's quite hard to say why the problem occurs but the problem is that the path given is not valid. So (re)check: - That the path is a real path. - If drive is defined in the path, check that semicolon ( : ) is the second character. - No extra characters anywhere in the path definition. I believe it would be a good idea to write the path into a log file so you can see what path is actually used on the IIS server.

        Z Offline
        Z Offline
        Zeyad Jalil
        wrote on last edited by
        #3

        Hi, I recheck and print the report path in the log file and it is a correct path but still the report not shown in the report viewer and the same error occurred.

        W G 2 Replies Last reply
        0
        • Z Zeyad Jalil

          Hi, I recheck and print the report path in the log file and it is a correct path but still the report not shown in the report viewer and the same error occurred.

          W Offline
          W Offline
          Wendelius
          wrote on last edited by
          #4

          What does the path look like that you use?

          Z 1 Reply Last reply
          0
          • W Wendelius

            What does the path look like that you use?

            Z Offline
            Z Offline
            Zeyad Jalil
            wrote on last edited by
            #5

            Hi, This is the path and it is a correct path when use it the report file open. C:\inetpub\wwwroot\HRNEW\Reports\PermitsRpt.rdlc HRNEW: is my application. Reports: is reports folder in my application

            W 1 Reply Last reply
            0
            • Z Zeyad Jalil

              Hi, This is the path and it is a correct path when use it the report file open. C:\inetpub\wwwroot\HRNEW\Reports\PermitsRpt.rdlc HRNEW: is my application. Reports: is reports folder in my application

              W Offline
              W Offline
              Wendelius
              wrote on last edited by
              #6

              Looks perfectly legit... Did I understand correctly that the exact same path from exact same variable is working in another statement and is not working in another. Could the value be changed in between? Also if you concatenate the path from parts, I suggest using Path.Combine[^]. If these do not help, please post all relevant code parts.

              Z 1 Reply Last reply
              0
              • W Wendelius

                Looks perfectly legit... Did I understand correctly that the exact same path from exact same variable is working in another statement and is not working in another. Could the value be changed in between? Also if you concatenate the path from parts, I suggest using Path.Combine[^]. If these do not help, please post all relevant code parts.

                Z Offline
                Z Offline
                Zeyad Jalil
                wrote on last edited by
                #7

                Hi, I use the path.combine and still the same thing, The report viewer not show the data and the log file contains the same error. "System.NotSupportedException: The given path's format is not supported. at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath) at System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath) at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String path) at System.Web.InternalSecurityPermissions.PathDiscovery(String path) at System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping) at System.Web.HttpRequest.MapPath(VirtualPath virtualPath) at System.Web.HttpServerUtility.MapPath(String path)"

                Richard DeemingR 1 Reply Last reply
                0
                • Z Zeyad Jalil

                  Hi, I use the path.combine and still the same thing, The report viewer not show the data and the log file contains the same error. "System.NotSupportedException: The given path's format is not supported. at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath) at System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath) at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String path) at System.Web.InternalSecurityPermissions.PathDiscovery(String path) at System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping) at System.Web.HttpRequest.MapPath(VirtualPath virtualPath) at System.Web.HttpServerUtility.MapPath(String path)"

                  Richard DeemingR Offline
                  Richard DeemingR Offline
                  Richard Deeming
                  wrote on last edited by
                  #8

                  You're passing a physical file-system path to the MapPath method, which only accepts virtual paths. Try using ~/Reports/PermitsRpt.rdlc as the path instead.


                  "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                  "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

                  1 Reply Last reply
                  0
                  • Z Zeyad Jalil

                    Hi, I recheck and print the report path in the log file and it is a correct path but still the report not shown in the report viewer and the same error occurred.

                    G Offline
                    G Offline
                    Godhaniketan
                    wrote on last edited by
                    #9

                    While Hosting RDLC report on IIS Then it requires following dll files on IIS. 1) Microsoft.ReportViewer.Common 2) Microsoft.ReportViewer.ProcessingObjectModel 3) Microsoft.ReportViewer.WebForms Set Web.config file..

                    <system.web>
                    <compilation debug="true" targetFramework="4.5">
                    <assemblies>

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups