CodeDocu.com

ASP.Net Error -2147467259: Failed to execute the child request for file.aspx
 
 
Error message:
 

System.Web.HttpException was unhandled by user code
ErrorCode=-2147467259
HResult=-2147467259
Message=Fehler beim Ausführen der untergeordneten Anforderung für Details.aspx.
 

 
Reason:
The error -2147467259 in ASP.Net when calling a web file means that the server is to open and run an executable web file that does not exist with the specified path.
 
Under Message there is a more detailed statement that the file with the relative path in the server does not exist. Here, the path because of user-friendly URL addressing is not really in a subpath like /Sonstiges/Hardware/File.aspx
Rather, the relative path is only for the displayed URL address in a web browser. In fact, the file is located in the root directory
 
Message = The /Sonstiges/Hardware/Details.aspx file does not exist.
 
Remedy:
Reduce the relative path to the root directory.
new 01.02.2017 09:52:36
 
 
Solution here:
Correct specification of the file with the root path ~ /
 
Correct path from the root directory:

'*folder exists only one time with that name
sIDFolder = clsDB.dbText(dt.Rows(0)("IDFolder"))
Server.Transfer("~/Details.aspx?d=" & sIDFolder, True)
Exit Sub

 
Here in Visual Studio
Use the character for root or root directory ~ /
new 01.02.2017 09:52:36
 
Wrong input

'*if no match, then as search-list
Dim sSearch = sFilePath.Replace("/", "+")
Server.Transfer("Default.aspx?s=" & sSearch, True)
Exit Sub

 
 
 
Complete error message
 
System.Web.HttpException was unhandled by user code
  ErrorCode = -2147467259
  HResult = -2147467259
  Message = Error executing the child request for details.aspx.
  Source = System.Web
  WebEventCode = 0
  StackTrace:
       At System.Web.HttpServerUtility.Execute (String path, TextWriter writer, Boolean preserveForm)
       At System.Web.HttpServerUtility.Transfer (String path, Boolean preserveForm)
       At myNamespace.Global_asax.Application_BeginRequest (Object sender, EventArgs e) in C: \ _ Data \ Desktop \ Web \ Programmer \ Global.asax.vb: line 121.
       At System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute ()
       At System.Web.HttpApplication.ExecuteStep (IExecutionStep step, Boolean & completedSynchronously)
  InnerException: System.Web.HttpException
       ErrorCode = -2147467259
       HResult = -2147467259
       Message = The /Sonstiges/Hardware/Details.aspx file does not exist.
       Source = System.Web
       WebEventCode = 0
       StackTrace:
At System.Web.UI.Util.CheckVirtualFileExists (VirtualPath virtualPath)
At System.Web.Compilation.BuildManager.GetVPathBuildResultInternal (VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
At System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert (HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
At System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory (VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
At System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath (VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
At System.Web.UI.PageHandlerFactory.GetHandlerHelper (HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
At System.Web.UI.PageHandlerFactory.GetHandler (HttpContext context, String requestType, String virtualPath, String path)
At System.Web.HttpApplication.MapIntegratedHttpHandler (HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig, Boolean convertNativeStaticFileModule)
At System.Web.HttpServerUtility.Execute (String path, TextWriter writer, Boolean preserveForm)
       InnerException:
 
 

Software Entwicklung Stuttgart NĂ¼rtingen
Suche Projekte C#, WPF, Windows App,ASP.Net, vb.Net, WinForms, SQL Server, Access, Excel