none
Application error when access /Forms/Upload.aspx ... /_layouts/images/blank.gif is not a valid virtual path.

    Question

  • I have a doc library in Sharepoint 2010 that has been migrated from 2007. Recently we are getting unknown error when we try to create new folder in the library. When I set the logging to verbose, see the errors below.  No other error is being recorded, even when I set everything to verbose. Reboot and IISreset did not solve the issue.

    Application error when access /app/rizenadokumentace/Prirucky/Forms/Upload.aspx, Error='http://server.cz/_layouts/images/blank.gif' is not a valid virtual path.

    at System.Web.VirtualPath.Create(String virtualPath, VirtualPathOptions options)   
     at System.Web.UI.TemplateControlDependencyParser.ProcessMainDirectiveAttribute(String deviceName, String name, String value)   
     at System.Web.UI.DependencyParser.ProcessMainDirective(IDictionary mainDirective)   
     at System.Web.UI.PageDependencyParser.ProcessDirective(String directiveName, IDictionary directive)   
     at System.Web.UI.DependencyParser.ParseString(String text)   
     at System.Web.UI.DependencyParser.ParseFile(String physicalPath, VirtualPath virtualPath)   
     at System.Web.UI.DependencyParser.GetVirtualPathDependencies()   
     at Microsoft.SharePoint.ApplicationRuntime.SPVirtualFile.CalculateFileDependencies(HttpContext context, SPRequestModuleData basicRequestData, ICollection& directDependencies, ICollection& childDependencies)   
     at Microsoft.SharePoint.ApplicationRuntime.SPDatabaseFile.EnsureDependencies(HttpContext context, SPRequestModuleData requestData)   
     at Microsoft.SharePoint.ApplicationRuntime.SPDatabaseFile.EnsureCacheKeyAndViewStateHash(HttpContext context, SPRequestModuleData requestData)   
     at Microsoft.SharePoint.ApplicationRuntime.SPDatabaseFile.GetVirtualPathProviderCacheKey(HttpContext context, SPRequestModuleData requestData)   
     at Microsoft.SharePoint.ApplicationRuntime.SPVirtualPathProvider.GetCacheKey(String virtualPath)   
     at Microsoft.SharePoint.Publishing.Internal.CmsVirtualPathProvider.GetCacheKey(String virtualPath)   
     at System.Web.Compilation.BuildManager.GetCacheKeyFromVirtualPath(VirtualPath virtualPath, Boolean& keyFromVPP)   
     at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)   
     at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)   
     at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert)   
     at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert)   
     at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)   
     at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()   

    Right after this one we are getting another:

    System.Web.HttpException: 'http://server.cz/_layouts/images/blank.gif' is not a valid virtual path.  
     at System.Web.VirtualPath.Create(String virtualPath, VirtualPathOptions options)   
     at System.Web.UI.TemplateControlDependencyParser.ProcessMainDirectiveAttribute(String deviceName, String name, String value)   
     at System.Web.UI.DependencyParser.ProcessMainDirective(IDictionary mainDirective)   
     at System.Web.UI.PageDependencyParser.ProcessDirective(String directiveName, IDictionary directive)   
     at System.Web.UI.DependencyParser.ParseString(String text)   
     at System.Web.UI.DependencyParser.ParseFile(String physicalPath, VirtualPath virtualPath)   
     at System.Web.UI.DependencyParser.GetVirtualPathDependencies()   
     at Microsoft.SharePoint.ApplicationRuntime.SPVirtualFile.CalculateFileDependencies(HttpContext context, SPRequestModuleData basicRequestData, ICollection& directDependencies, ICollection& childDependencies)   
     at Microsoft.SharePoint.ApplicationRuntime.SPDatabaseFile.EnsureDependencies(HttpContext context, SPRequestModuleData requestData)   
     at Microsoft.SharePoint.ApplicationRuntime.SPDatabaseFile.EnsureCacheKeyAndViewStateHash(HttpContext context, SPRequestModuleData requestData)   
     at Microsoft.SharePoint.ApplicationRuntime.SPDatabaseFile.GetVirtualPathProviderCacheKey(HttpContext context, SPRequestModuleData requestData)   
     at Microsoft.SharePoint.ApplicationRuntime.SPVirtualPathProvider.GetCacheKey(String virtualPath)   
     at Microsoft.SharePoint.Publishing.Internal.CmsVirtualPathProvider.GetCacheKey(String virtualPath)   
     at System.Web.Compilation.BuildManager.GetCacheKeyFromVirtualPath(VirtualPath virtualPath, Boolean& keyFromVPP)   
     at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)   
     at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)   
     at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert)   
     at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert)   
     at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)   
     at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

    Tuesday, July 02, 2013 8:36 AM

Answers

  • This issue can be caused due to issue in site definition
    and this could be this site using customer site definition and upgraded from
    2007

    Please try resetting site definition

    Reset to site definition from Site actions>> Site setting




    Monday, September 23, 2013 2:11 AM

All replies

  • Hi Jiri,

    did you find a solution.....this is exactlly mi problem.

    thanks


    josetellan

    Monday, July 08, 2013 12:13 PM
  • I am also seeing this issue.  I am unable to create a folder in any library through site collection.

    this is an upgrade from 2007.  I am able to create a folder using windows explorer.


    Konnie McCauley

    Friday, September 20, 2013 1:38 AM
  • This issue can be caused due to issue in site definition
    and this could be this site using customer site definition and upgraded from
    2007

    Please try resetting site definition

    Reset to site definition from Site actions>> Site setting




    Monday, September 23, 2013 2:11 AM
  • this fixed the issue.  Thank you very much Siraj.

    Konnie McCauley

    Monday, September 23, 2013 6:32 PM