Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to fake a directory listing in IIS? VirtualPathProvider works for file but
    primarykey
    data
    text
    <p>We're using AppFabric 1.1 &amp; IIS 8.0 to run our xamlx based workflows. To make the static xamlx files go away we're used Ron Jacobs perfect sample code to store them in a database and serve the xamlx content trough a <code>VirtualPathProvider</code>.</p> <p><a href="http://blogs.msdn.com/b/rjacobs/archive/2011/06/15/how-to-load-wf4-workflow-services-from-a-database-with-iis-appfabric.aspx" rel="nofollow">http://blogs.msdn.com/b/rjacobs/archive/2011/06/15/how-to-load-wf4-workflow-services-from-a-database-with-iis-appfabric.aspx</a></p> <p>So far so good, the xamlx files are served if someone hits the right uri.</p> <p>But now the AppFabric Dashboard has no chance to collect and enlist the xamlx files as services because they're not visible to AppFabric anymore.</p> <p>The goal must be to fake a directory listing and reading all xamlx workflow names from db. </p> <p>I've tried to do that by extending the <code>VirtualPathProvider</code> by overriding the Directory based methods this way</p> <pre><code> public override bool DirectoryExists(string virtualDir) { return base.DirectoryExists(virtualDir); } public override VirtualDirectory GetDirectory(string virtualDir) { if (IsPathVirtual(virtualDir)) { return new VirtualDirectoryDecorator(base.GetDirectory(virtualDir)); } else { return Previous.GetDirectory(virtualDir); } } </code></pre> <p>But these methods are not invoked the way I have guessed. It's because the Uri has no extension and asp.net does not get called.</p> <p>Any help appreciated to make this fake directory listing happen!</p> <p>Thanks</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload