Last post Jul 14, 2015 03:06 AM by Angie xu - MSFT
Jul 09, 2015 02:49 PM|accelerator|LINK
I am getting an error when I click the Edit button on a DataGrid. My page is written in VB.net. The server is looking for and failing to find Temporary ASP.NET files. What can I do to rectify this error? It is on a shared hosting account. Thanks.
Could not find a part of the path 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\244b2b37\c0134493\uploads\mh-z27vj.tmp'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\244b2b37\c0134493\uploads\mh-z27vj.tmp'.
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.
[DirectoryNotFoundException: Could not find a part of the path 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\244b2b37\c0134493\uploads\mh-z27vj.tmp'.]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +193
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) +1162
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access) +67
System.CodeDom.Compiler.TempFileCollection.AddExtension(String fileExtension, Boolean keepFile) +37
System.Web.HttpRawUploadedContent.AddBytes(Byte data, Int32 offset, Int32 length) +8837728
System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +97
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +133
Version Information: Microsoft .NET Framework Version:2.0.50727.3662; ASP.NET Version:2.0.50727.3668
Jul 09, 2015 09:01 PM|oned_gk|LINK
Can you show your code related to uploads folder
seem like relative path issue
Jul 10, 2015 06:58 PM|accelerator|LINK
Thanks for replying.
I have a DataGrid written in VB.net, which has an edit button. When I click edit, I get this error straightaway. I don't think it's an error related to my code, it's related to the version of ASP.net being run on the server, and how ASP.net is set up on
ASP.net is looking for files that are in a temporary folder, and the files are no longer there. The question for me is why is ASP.net looking for these files, and what can I do to reset the server so that it doesn't look for them any more. Or rather, what
can I get my hosts to do, as I don't have direct access to the server.
I think this might be something to do with the version of ASP.net the server is running, which is v2.0.50727
My code does not reference the uploads folder.
Jul 14, 2015 03:06 AM|Angie xu - MSFT|LINK
Could not find a part of the path 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\244b2b37
How about deleting the folders inside the Temporary ASP.NET Files folder, and clean and build the project, please check whether it makes any difference.