System.IO.DirectoryNotFoundException: Could not find a part of the path for rdlc report error

System.IO.DirectoryNotFoundException: Could not find a part of the path for rdlc report error

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\yourusername\AppData\Local\Apps\2.0\R8XP0T0H.79M\N31390YR.8CY\nejr..tion_d19407955cb59c41_0001.0000_f3df7fdff2b92a97\RDLs\ConsolidatedShipping_Shipment.rdlc'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at Microsoft.Reporting.StandalonePreviewStore.GetReportDefinition(String path, Boolean isFile)
   at Microsoft.Reporting.StandalonePreviewStore.GetCompiledReport(CatalogItemContext context, Boolean rebuild, ReportSnapshotBase& snapshot)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.9061 (WinRelRS5.050727-9000)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
NEJRemoteIMS
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/ajan/AppData/Local/Apps/2.0/R8XP0T0H.79M/N31390YR.8CY/nejr..tion_d19407955cb59c41_0001.0000_f3df7fdff2b92a97/NEJRemoteIMS.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.9038 (WinRelRS5.050727-9000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.9063 (WinRelRS5.050727-9000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.9031 (WinRelRS5.050727-9000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.9046 (WinRelRS5.050727-9000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.9031 (WinRelRS5.050727-9000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
AMS.TextBox
    Assembly Version: 2.0.1490.26707
    Win32 Version: 2.0.1490.26707
    CodeBase: file:///C:/Users/ajan/AppData/Local/Apps/2.0/R8XP0T0H.79M/N31390YR.8CY/nejr..tion_d19407955cb59c41_0001.0000_f3df7fdff2b92a97/AMS.TextBox.DLL
----------------------------------------
NEJ.WMS.BLL
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/ajan/AppData/Local/Apps/2.0/R8XP0T0H.79M/N31390YR.8CY/nejr..tion_d19407955cb59c41_0001.0000_f3df7fdff2b92a97/NEJ.WMS.BLL.DLL
----------------------------------------
NEJ.WMS.DAL
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/ajan/AppData/Local/Apps/2.0/R8XP0T0H.79M/N31390YR.8CY/nejr..tion_d19407955cb59c41_0001.0000_f3df7fdff2b92a97/NEJ.WMS.DAL.DLL
----------------------------------------
NEJ.WMS.Common
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/ajan/AppData/Local/Apps/2.0/R8XP0T0H.79M/N31390YR.8CY/nejr..tion_d19407955cb59c41_0001.0000_f3df7fdff2b92a97/NEJ.WMS.Common.DLL
----------------------------------------
System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.9063 (WinRelRS5.050727-9000)
    CodeBase: file:///C:/Windows/assembly/GAC_64/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
ReflectionIT.Common.Data.SqlClient
    Assembly Version: 1.0.8899.14221
    Win32 Version: 1.0.8899.14221
    CodeBase: file:///C:/Users/ajan/AppData/Local/Apps/2.0/R8XP0T0H.79M/N31390YR.8CY/nejr..tion_d19407955cb59c41_0001.0000_f3df7fdff2b92a97/ReflectionIT.Common.Data.SqlClient.DLL
----------------------------------------
System.Transactions
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.9031 (WinRelRS5.050727-9000)
    CodeBase: file:///C:/Windows/assembly/GAC_64/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.9031 (WinRelRS5.050727-9000)
    CodeBase: file:///C:/Windows/assembly/GAC_64/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
Microsoft.ReportViewer.WinForms
    Assembly Version: 9.0.0.0
    Win32 Version: 9.0.21022.8
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.ReportViewer.WinForms/9.0.0.0__b03f5f7f11d50a3a/Microsoft.ReportViewer.WinForms.dll
----------------------------------------
Microsoft.ReportViewer.Common
    Assembly Version: 9.0.0.0
    Win32 Version: 9.0.21022.8
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.ReportViewer.Common/9.0.0.0__b03f5f7f11d50a3a/Microsoft.ReportViewer.Common.dll
----------------------------------------
System.Web
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.9062 (WinRelRS5.050727-9000)
    CodeBase: file:///C:/Windows/assembly/GAC_64/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


Solution:

Your RDLC files might be designated as "Embedded resource." Try right-clicking on the RDLC file and switching it to "Content," then republish. That should resolve the issue.

Share This with your friend by choosing any social account


Upcoming Articles
You may also read following recent Post
Copyright Future Minutes © 2015- 2024 All Rights Reserved.   Terms of Service  |   Privacy Policy |  Contact US|  Pages|  Whats new?
Update on: Dec 20 2023 05:10 PM