The "problem" is to do with web.config inheritance. Your new virtual application is still inheriting from the site's root web.config despite being physically separated and so it is finding this reference to a resource that doesn't exist in the new application.
Solution
Let me introduce a little known attribute of the location element in configuration files. It is called inheritInChildApplications, which can be set to false and will do what is says on the tin. Simply place them around the settings you do not want inherited by your child app. Unfortunately you can only use it in quite a blanket fashion, i.e. you can put it around <system.web> but if you think you're putting it around individual settings then you must be crazy!So for my problem with a nonexistent HttpModule I will need to stop the system.web and system.webServer inheriting in my child app:
<location inheritInChildApplications="false"> <system.web> <!-- various web things --> </system.web> <system.webServer> <!-- various web server things --> </system.webServer> </location>
Unfortunately, this is so unknown that apparently not even Visual Studio knows about it so you can bask in the glory of your handy work with a squiggly blue line! (I think a squiggly blue line must indicate good code!)
Thanks, this has helped me out.
ReplyDeleteI killed my Sharepoint environment, but got it back. You pointed me in the right direction. I needed to set the Web application pools that where in use by SharePoint. To .NET 2.0 instead of 4.0.
ReplyDeleteThanks a lot!
I am facing this problem since few days and finally yet found the solution. Didn't thought that this can be a solution, quite a simple solution but still not known to many of us.
ReplyDeletePermainan slot yang paling banyak diminati oleh semua orang, tentunya disitus kami dengan permainan slot terlengkap, pastinya akan membuat kalian betah permainan slot apa yang kalian dulu mainkan tentunya akan ada disini. silahkan kunjungi situs kami
ReplyDeletehttp://www.slotvivo.net/
http://www.slotvivo.net/daftar-vivo-daftar-slot-vivo-online-android/
http://www.slotvivo.net/link-login-slot-vivo-cara-login-vivo-slot/
http://www.slotvivo.net/deposit-vivo-slot-deposit-slot-pulsa/
http://www.slotvivo.net/withdraw-vivo-slot-agen-resmi-slot-vivo/
http://www.slotvivo.net/livechat-vivo-operator-vivo-slot/
http://www.slotvivo.net/aplikasi-slot-vivo-link-download-vivo-slot/
I appreciate your post. Thank for it, eCommerce Website & App Developer UK
ReplyDeleteyour post was good.https://edutik.lilacinfotech.com/
ReplyDelete