BonCodeIIS.BonCodeCallHandler Exception

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 6
Joined: 05 Apr 2012, 15:00

BonCodeIIS.BonCodeCallHandler Exception

05 Apr 2012, 15:05

Hi there,

I've just installed isap_rewrite with a rewrite rule to divert to hidden localhost server.. however i unfortunately am getting this error from IIS.. does anyone know of any possible solutions to this?

Many thanks..



Server Error in '/' Application.
Could not load type 'BonCodeIIS.BonCodeCallHandler'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Could not load type 'BonCodeIIS.BonCodeCallHandler'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): Could not load type 'BonCodeIIS.BonCodeCallHandler'.]
System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +8834049
System.Web.Configuration.HandlerFactoryCache.GetHandlerType(String type) +21
System.Web.Configuration.HandlerFactoryCache..ctor(String type) +19
System.Web.HttpApplication.GetFactory(String type) +78
System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +229
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155


Version Information: Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.50727.4955

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: BonCodeIIS.BonCodeCallHandler Exception

06 Apr 2012, 05:51

Hello,

Please, make sure the error is gone when you don't use ISAPI_Rewrite. Does the request go through from your server to backend?

Please, provide ISAPI_Rewrite config file to make sure there's nothing else that could provoke the error.

Regards
Andrew

User avatar
Posts: 6
Joined: 05 Apr 2012, 15:00

Re: BonCodeIIS.BonCodeCallHandler Exception

06 Apr 2012, 07:14

Hi Andrew,

Thanks for your reply.. really appreciated.. Im currently using the following rewrite rule..

RewriteEngine on
RewriteBase /
RewriteRule ^$ http://127.0.0.1:8000$1 [NC,P]


Best Rgds
Dan

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: BonCodeIIS.BonCodeCallHandler Exception

06 Apr 2012, 07:21

And nothing else?

Any errors while not using ISAPI_Rewrite? Can you reach the spot from your server directly?

Regards
Andrew

User avatar
Posts: 6
Joined: 05 Apr 2012, 15:00

Re: BonCodeIIS.BonCodeCallHandler Exception

06 Apr 2012, 08:38

Thanks for your reply.. I've managed to resolve the error, which was a random tomcat handler mapping..

Could i possibly ask if my .htaccess looks correct.. I have an internal address: http://127.0.0.1:8000/en-GB/account/log ... 2Fen-GB%2F, and with my current .htaccess the external domain looks moves to https://external-domain.com/en-GB/, however resolves a 404

RewriteEngine on
RewriteBase /
RewriteRule ^$ http://127.0.0.1:8000$1 [NC,P]

Really appreciated
Dan

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: BonCodeIIS.BonCodeCallHandler Exception

06 Apr 2012, 08:59

Please, try using the following:

Code: Select all
RewriteRule ^([^/]+)/$ http://127.0.0.1:8000/$1/account/login?return_to=/$1/ [NC,P]


Regards
Andrew

User avatar
Posts: 6
Joined: 05 Apr 2012, 15:00

Re: BonCodeIIS.BonCodeCallHandler Exception

06 Apr 2012, 09:06

thanks for that.. is there a simple way to pass the whole site at all folder levels?

Thanks again :)

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: BonCodeIIS.BonCodeCallHandler Exception

06 Apr 2012, 09:40

There's an examples in FAQ

Regards
Andrew

User avatar
Posts: 6
Joined: 05 Apr 2012, 15:00

Re: BonCodeIIS.BonCodeCallHandler Exception

06 Apr 2012, 09:43

yeh the Use IIS as reverse proxy didnt work :/

it just redirects to the first folder: https://external-domain.com/en-GB/

User avatar
Posts: 6
Joined: 05 Apr 2012, 15:00

Re: BonCodeIIS.BonCodeCallHandler Exception

06 Apr 2012, 10:10

RewriteEngine on
RewriteBase /
RewriteRule ^(.*) http://127.0.0.1:8000/$1 [NC,P]

seems to mostly work.. thanks for your help

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 0 guests