RDLC Report in Asp.Net
-
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
-
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
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.
-
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.
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.
-
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.
-
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
-
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
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.
-
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.
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)"
-
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)"
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
-
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.
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>