Quick Nav:  Online Store   |   Login | Register

PageBlaster 3 and ISAPI_Rewrite 3

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
FM
<50 Posts
Posts:40


04/06/2008 9:34 PM  

Hi John

I installed PB 3 and it worked great, the pages loaded fast.    Then today I added ISAPI_Rewrite 3 to our server and now it seems like PB is not working because the pages load slowly again.   Even with no rules on ISAPI rewrite it still runs as if PB is not installed.

Any ideas?

Thanks

Host Account
<250Posts
Posts:104


04/06/2008 9:51 PM  
No idea off the top of my head. Maybe you can spot something by turning on tracing.
FM
<50 Posts
Posts:40


04/06/2008 10:43 PM  
Well it seems to have improved so maybe the problem is solved. When I am not logged in as the admin the pages seemed to load fast again.

On another issue I am trying to remove the .aspx extension. When I do it through the ISAPI rewrite I get an error, so would it be better to do it with PB?

If so what rule should I be using to hide extensions?

Thanks
John Mitchell
Posts:3492


04/07/2008 1:19 PM  
If you want to remove the extensions you will need to map all extensions to ASP.Net using IIS manager. This procedure is outlined in "Enabling the Static File Handler".
FM
<50 Posts
Posts:40


04/07/2008 4:06 PM  

When you say all extensions, what other ones besides the ones you listed in the manual need to be added? Do I need to add .aspx as well?

I want to have urls like this http://mydomain.com/pictures/john

John Mitchell
Posts:3492


04/07/2008 4:16 PM  
.aspx is already mapped to ASP.net when you install the .net framework. What I mean by all extensions is to create what is known as a "wildcard mapping".

Instead of mapping a specific extension you need to use ".*" as the extension.
FM
<50 Posts
Posts:40


04/07/2008 5:53 PM  

Hi John

When I add wildcard mapping in IIS to aspnet_isapi.dll I am no longer able to get the site to load and get the following error.    This is even with the static file handler in webconfig made active.

 

 

The remote server returned an error: (403) Forbidden.

 

 

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.Net.WebException: The remote server returned an error: (403) Forbidden.

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:

[WebException: The remote server returned an error: (403) Forbidden.]
   System.Net.HttpWebRequest.GetResponse() +1532114
   Snapsis.HttpModules.PageBlaster.ResourceLocationController.RewriteVirtualPath(HttpApplication app, CachedRequest cachedRequest) +696
   Snapsis.HttpModules.PageBlaster.PageBlasterModule.BeginRequest(Object sender, EventArgs e) +130
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

John Mitchell
Posts:3492


04/07/2008 6:03 PM  
Try putting default.aspx on the end of your url, not that you should have to, but just to see if it works.

When you go to Host > Host Settings, does it say your site has WebPermission?

FM
<50 Posts
Posts:40


04/07/2008 6:35 PM  

Yes the site has both ReflectionPermission and WebPermission.    If I try access the home page directly without the page name I get the error, however if I use the actual name of home.aspx then it loads.

Also, it now works when I dont use the extension for one of the pages I tested, so it appears the only problem now is going to the root without using a page name.

What should I do now?

FM
<50 Posts
Posts:40


04/08/2008 12:17 PM  

Hi John

Any ideas about my issue?   Right now everything works ok except if you go to the site root without a page name.    Without the wild card mapping it works, with it being turned on I get the 403 page error I posted.

Thanks

John Mitchell
Posts:3492


04/08/2008 12:23 PM  
I've been trying to recreate this issue and so far I can't. Is this site in a virtual folder?
In your Cache folder do you have webresource and scriptresource folders? The reason I ask about webresource and scriptresource is because they both are retrieved using a server side webrequest, just like this default page should work.

Also try turning on trace Level="Debug" to see if there is more information about the error.
FM
<50 Posts
Posts:40


04/08/2008 12:32 PM  

No, I don't webresource and scriptresource folders. In the Cache folder there are no sub directories. The only thing there are are files like this "TabModule_114_en-US.resources" Also the site is not in a virtual folder.

I will turn on the trace level.

Update:  I dont get any more error info than I already have with the debugging on.

John Mitchell
Posts:3492


04/08/2008 1:10 PM  

Oh, sorry, I was referring to the PageBlaster cache folder.

In your Snapsis.PageBlaster.config file is a setting for cache-folder, if that is set to /portals/_default/Cache, then it needs to be changed to /DesktopModules/Snapsis/PageBlaster/Cache since you are using the module.

The same for config-folder, if it is set to /portals/_default/Cache, then it needs to be changed to /DesktopModules/Snapsis/PageBlaster/Config

 

You should have sub-folders in your PageBlaster cache folder.

FM
<50 Posts
Posts:40


04/08/2008 1:34 PM  

This is how it is setup right now.   I have not made any changes.

 page-param="tabid"
        ext-cachekey-parameters="IE"     
        cache-folder="/DesktopModules/Snapsis/PageBlaster/Cache"
        config-folder="/DesktopModules/Snapsis/PageBlaster/Config"  
        cached-roles="" 
        cached-users=""
        cached-languages=""
        memory-cache-interval="01:00:00:00"
        memory-size-limit="25"
        disk-cache-interval="14:00:00:00"
        disk-size-limit="100"
        blocked-useragents=""
        blocked-ipaddresses=""       
        compression-algorithm="gzip"
        compression-level="high">
       

Also, those folders mentioned don't exist in the Snapsis Cache.   

I think what I should do is give you FTP access to the site as well as admin access to the  DNN site.

Will this be easier?

John Mitchell
Posts:3492


04/08/2008 1:41 PM  

Sure, if you want to reply directly to the notification e-mail with login info, that may be faster.

John Mitchell
Posts:3492


04/08/2008 1:45 PM  
What might be happening here is that your server is not allowing a web request to come from itself.
This may be a firewall configuration.

If you have access to the server, can you browse to your site from the server?
FM
<50 Posts
Posts:40


04/08/2008 1:47 PM  

I do have server access.  Do you mean browse using the localhost path, or using the actual URL from a browser on the server itself?

John Mitchell
Posts:3492


04/08/2008 1:54 PM  
The actual Url, including the default.aspx part. That is what the code is trying to do that is failing above.
FM
<50 Posts
Posts:40


04/08/2008 2:36 PM  

Aaah, ok I think the problem has been solved.   I had restricted the site access to my own IP address only.   Evidently not having the server itself having access was causing the problem.   I just added the server IP's and now the problem has been solved.

I will now check to see if it has resolved the static page issue as well.

Thanks for the help.

 

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >PageBlaster > PageBlaster 3 and ISAPI_Rewrite 3



ActiveForums 3.7
Powered by: Snapsis Software