Hi,
I have a native ISAPI extension which I need to use on a web app that I'm uploading to Azure.
The first step was to allow it on the IIS CGI and ISAPI Restrictions list, and this is done using a startup task (more on that here).
Now I need to configure it on the web.config file, which is done as follows:
<system.webServer>
<handlers accessPolicy="Read, Execute, Script">
<add name="DT" path="*.moo" verb="*" modules="IsapiModule" scriptProcessor="Test.dll" resourceType="Unspecified" requireAccess="Execute" />
</handlers>
</system.webServer>
My problem here is the the scriptProcessor attribute requires the full path to the DLL. The full path on Azure will be "%roleroot%\approot\bin\Test.dll" and the problem is that I can't use environment variables inside the web.config
file...
Is there a workaround for that? or should I write code that puts the right value in this attribute?
Many thanks,
Shay.
Shay Friedman | Visual C# MVP | Blogger, podcaster, author, speaker and geek! | Twitter: http://twitter.com/ironshay | Blog: http://IronShay.com