Tuesday, February 23, 2010

'ASP 0131' and 'ASP 0196 : 80040154' errors.

Just wanted to write about my recent experience. I was supposed to configure a vendor based web ASP application on WIN3K 64 bit SP 2 server. As soon as I set it up when I went to browse the site I got an error as shown below -

Active Server Pages error 'ASP 0131' Disallowed Parent Path , line 2 The Include file '../../../Test/XXXX.inc' cannot contain '..' to indicate the parent directory.

So fine it clearly says that IIS 6.0 Disallowed Parent path. So to fix this I went to HomeDir tab and clicked Configuration and in Options I checked - Enable Parent paths and tried to browse the website again. This time I get -

Server object error 'ASP 0196 : 80040154' Cannot launch out of process component /path/Path1/Path2/XXXX.inc, line 5
Only InProc server components should be used. If you want to use LocalServer components, you must set the AspAllowOutOfProcComponents metabase setting. Please consult the help file for important considerations.

But when I checked the Metabase.xml file the AspAllowOutOfProcComponents was already set to true.I am still researching this issue but I think such behavior is encountered if you are trying to run a 32 bit application on 64 bit server. The Worker process which runs in 64 bit tried to run the code and cause these errors.
Next stop try to run this code in IIS 7.0 with Worker process set to 32 bit. I think this option is available on a WIN2008 64 bit OS. If any one else came across similar issue or think I am wrong pls leave a comment.
Thanks

2 comments:

Anonymous said...

Wow I had the same issue as well. I will let u know if I solve this. But for now we moved the App back to 32 bit server.

Anonymous said...

This is what worked eventually for me. Not sure if its applicable to your case.


For 32 bit build apps -
1. adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1
2. %SYSTEMROOT%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i

For 64 bit build apps -
1. adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 0
2. %SYSTEMROOT%\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis.exe -i