Mono Support Manually deleted .aspx files show in admin UI pages list and log errors 

Viewed 10057 time(s), 5 post(s), 6/3/2014 5:35:07 PM - by Zoomicon
6/3/2014 5:35:07 PM
2793 Reputation 345 Total posts

I see error log entries like:

2014-06-03 18:02:33,763 [101] ERROR MonoX [BaseHttpApplication] - Application Error
</br>System.Web.HttpException (0x80004005): The file '/gallery/clips.aspx' does not exist.
</br>   at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
</br>   at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
</br>   at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
</br>   at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
</br>   at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
</br>   at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
</br>   at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
</br>   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

The respective page had been deleted manually and was still showing in the admin UI at pages list. Now I deleted it from there too, so hope it stops logging it now

I'd expect such pages to disappear automatically from the list and also manually added pages to appear there

1
6/5/2014 9:40:36 AM
2218 Reputation 300 Total posts

Hello,

Thanks for your feedback, we've logged this in our issue tracking system. Also, Kristijan explained we will implement a utility to allow users to remove orphaned pages.

Regards,
Mario

2
6/5/2014 9:54:16 AM
2793 Reputation 345 Total posts

thanks,

copying my reply from that thread regarding the "utility":

you could change the pages list to show in red color any broken page URLs (or the whole row, but guess the red URL [and more redish on mouse over or something] points the user to the problem [the missing page / broken URL] exactly mentally). Refreshing the list (think there is such button) would update the colours in case you've manually edited files in between.

BTW, Windows does have shell notifications that one can use to see folder changes (there could even be ASP.net API to wrap that functionality of folder-change-monitoring, but not sure) and could even refresh the list remotely on the browser (say using SingalR), but don't need to go to that extent

3
6/5/2014 4:12:44 PM
2218 Reputation 300 Total posts

Hello,

I believe that the Utility which Kristijan mentioned is the best solution to this, we will take your suggestions as well into consideration. Thank you.

Also, SignalR for example doesn't work well with Medium Trust environments.

Regards,
Mario

4
6/6/2014 11:38:41 AM
2793 Reputation 345 Total posts

I thought Medium Trust was going away (Microsoft is promoting some other scheme I think now). Don't remember more at the moment.

5
This is a demo site for MonoX. Please visit Mono Software for more info.