locked
Error On Click an Edit Button on a DataGrid RRS feed

  • Question

  • User721935184 posted

    Hi Guys

    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'.
    
    Source Error: 
    
    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.
    
    Stack Trace: 
    
    
    [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.EnsureTempNameCreated() +360
       System.CodeDom.Compiler.TempFileCollection.AddExtension(String fileExtension, Boolean keepFile) +37
       System.Web.TempFile..ctor() +219
       System.Web.HttpRawUploadedContent.AddBytes(Byte[] data, Int32 offset, Int32 length) +8837728
       System.Web.HttpRequest.GetEntireRawContent() +472
       System.Web.HttpRequest.FillInFormCollection() +105
       System.Web.HttpRequest.get_Form() +68
       System.Web.HttpRequest.get_HasForm() +8806663
       System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +97
       System.Web.UI.Page.DeterminePostBackMode() +63
       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

    Thursday, July 9, 2015 2:49 PM

Answers

  • User-166373564 posted

    Hi,

    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.

    With regards,

    Angie

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, July 14, 2015 3:06 AM

All replies

  • User-1716253493 posted

    Can you show your code related to uploads folder

    seem like relative path issue

    Thursday, July 9, 2015 9:01 PM
  • User721935184 posted

    Hi

    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 the server.  

    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.

    Thanks

    Friday, July 10, 2015 6:58 PM
  • User-166373564 posted

    Hi,

    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.

    With regards,

    Angie

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, July 14, 2015 3:06 AM