jerops
 Posts:50

| | 04/15/2008 1:35 PM |
| Hi I"m trying to figure out whether or not my virtual path is working. I'm trying to speed up my home page and I can't tell if it's working or not. I added a PB module to the page and under the virtual path settings I created '/home/home.htm and I set it to create a static file. So now when a visitor visits the home page, the site should be pulling from that static home.htm page?(It feels a little faster) Unless I make another rule, they won't see the change in the URL? When there is an update to the home page, will the static file get updated? And last of all, shouldn't a folder be created in my portal called home? The is DNN site is under a virtual folder, so should I make the virtual path should I use virtualpathfolder/home/home htm? then I'll see the folder? Thanks for your help Jerry | | | |
|
|
|
John Mitchell Posts:3033


| | 04/15/2008 7:48 PM |
| If you use the option to Save as Static file then you will probably want to name it default.htm if you want it to be delivered by IIS automatically. So if you have www.yourdomain.com on the url, the default documents will be searched for by IIS. If you name it Home/Home.htm then you will have to specify that in the url ( www.yordomain.com/home/home.htm ) before it will be used. You should not need to put the IIS virtual folder name unless you put the root slash in front. Are you seeing the file created in the parent website? | | | |
|
jerops
 Posts:50

| | 04/15/2008 10:14 PM |
| Okay, my setup involves many DNN setups under www.ops.org So in this case I'm using PB for our largest portal, which is the district site at www.ops.org/ops
So I should I use in the virtual path...www.ops.org/ops/home.htm and PB will pick that up and display that? And if it's working correctly I should see that file created tin portal root folder or in the portals folder for example under www.ops.org/ops/portals/0/home.htm?
| | | |
|
John Mitchell Posts:3033


| | 04/15/2008 10:33 PM |
| PageBlaster will not respond to requests for .htm files unless you configure IIS not to handle them directly. It is better for IIS to handle the requests for .htm files.
PageBlaster has an option to make a static .htm file so that IIS can use it. This bypasses ASP.Net which will bypass the ASP.Net startup lag time.
IIS will also deliver default.htm files without them having to be specified on the Url. So if you set the virtual path as default.htm you can put www.ops.org/ops on the url and the default.htm file will be delivered by IIS.
If you name it home.htm, then you will need to use the full Url (www.ops.org/ops/home.htm) to access it. If you decide to use home.htm then that is all you need to put in the virtual path field.
The file will then be created in the root of www.ops.org/ops/
The thing to remember with the static file option is that you are doing the same thing as if you created your own .htm file and put it on the server. PageBlaster doesn't do any automatic url mapping to it, so you should put it in the same place that you expect to have the url access it. | | | |
|
jerops
 Posts:50

| | 04/15/2008 11:43 PM |
| Thank-you for the thorough explanation, it really helps....I think the reason my default.htm, is not being picked up by IIS is because in IIS I changed the default document order to look for default.aspx, then default.asp, then default.html, then default.htm. So if I go into the IIS console and change the order back to defaults which put the default.htm at the top of the list, it should show up. I won't be able to verify that until tomorrow.
| | | |
|
jerops
 Posts:50

| | 04/16/2008 8:40 AM |
| | Okay, I've checked my IIS settings and now by default, IIS will looks for a default.htm file before a default.aspx file. However, I've looked in the www.ops.org/ops folder and there is no default.htm being created. | | | |
|
John Mitchell Posts:3033


| | 04/16/2008 10:12 AM |
| Looks like I mislead you a little.
Put /default.htm (include starting slash) in the virtual path field even if you are using a virtual folder and it should work.
You may have one in the parent folder named opsdefault.htm | | | |
|
John Mitchell Posts:3033


| | 04/16/2008 10:19 AM |
| By the way, you can tell if the static .htm file is being use if you look at the html source and at the bottom right before the closing /form tag there is an iframe pointing back to the dynamic .aspx version of the page.
This allows the user to see the page right away, but in the background it will load the dynamic version so that when they navigate to another part of the site it should be past the startup. | | | |
|
jerops
 Posts:50

| | 04/16/2008 1:48 PM |
| | Okay, I tried that and it still isn't generating the default.htm file in the OPS directory. In the virtual field I put /default.htm...... | | | |
|
John Mitchell Posts:3033


| | 04/16/2008 1:59 PM |
| | One thing I forgot to add. You have to log out and go to the dynamic version of the page to get the page created. It is part of the process that writes the page to cache. | | | |
|
jerops
 Posts:50

| | 04/16/2008 2:17 PM |
| | Tried that and still no file being created...Even tried the CTRL + F5 to force cache and still no luck with that file being created. | | | |
|
John Mitchell Posts:3033


| | 04/16/2008 2:25 PM |
| Are there any errors in the DNN Log/Event viewer?
| | | |
|
jerops
 Posts:50

| | 04/16/2008 3:17 PM |
| I got the following errors in the event viewer:
4/16/2008 1:37:53 PM Host Alert host PageBlaster-DNNModuleControl: Thread was being aborted. at Snaps ... PageBlaster-DNNModuleControl: Thread was being aborted. at Snapsis.DNN.PageBlaster.PageBlasterConfig.Page_Load(Object sender, EventArgs e) Server Name:
4/16/2008 1:36:35 PM Host Alert host PageBlaster-DNNModuleControl: Thread was being aborted. at Syste ... PageBlaster-DNNModuleControl: Thread was being aborted. at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.End() at System.Web.HttpResponse.Redirect(String url, Boolean endResponse) at Snapsis.DNN.PageBlaster.PageBlasterConfig.Page_Load(Object sender, EventArgs e) Server Name:
| | | |
|
jerops
 Posts:50

| | 04/16/2008 3:58 PM |
| Here is another error that has been popping up on my Event Viewer too:
AssemblyVersion: 04.08.02 PortalID: 0 PortalName: Omaha Public Schools UserID: -1 UserName: ActiveTabID: 72 ActiveTabName: HOME RawURL: /ops/Default.aspx AbsoluteURL: /ops/Default.aspx AbsoluteURLReferrer: UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Tablet PC 1.7) DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider ExceptionGUID: e1abe04b-ffb1-4e12-9886-7226ea23b2db InnerException: Unhandled Error: FileName: FileLineNumber: 0 FileColumnNumber: 0 Method: System.IO.__Error.WinIOError StackTrace: Message: System.Exception: Unhandled Error: ---> System.IO.FileNotFoundException: Could not find file 'F:\OPS_PROD_WEB\OPS\DesktopModules\Snapsis\PageBlaster\Cache\default\67553e94f8ab57c7614f5fdbe66c6bd2.pb.webinfo'. File name: 'F:\OPS_PROD_WEB\OPS\DesktopModules\Snapsis\PageBlaster\Cache\default\67553e94f8ab57c7614f5fdbe66c6bd2.pb.webinfo' at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.File.Move(String sourceFileName, String destFileName) at Snapsis.HttpModules.PageBlaster.CachedRequest.Deserialize(HttpApplication app, String filePath) at Snapsis.HttpModules.PageBlaster.RequestController.GetCachedRequest(HttpApplication app, CachedRequest cachedRequest) at Snapsis.HttpModules.PageBlaster.PageBlasterModule.RespondFromCache(HttpApplication& app, CachedRequest& cachedRequest) at Snapsis.HttpModules.PageBlaster.PageBlasterModule.ResolveRequestCache(Object sender, EventArgs e) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --- End of inner exception stack trace --- Source: Server Name:
| | | |
|
jerops
 Posts:50

| | 04/17/2008 9:59 AM |
| Hi,
Did the error logs help in any way? | | | |
|
John Mitchell Posts:3033


| | 04/17/2008 10:10 AM |
| Sorry, I thought I responded to this yesterday. Unfortunately these errors are not related to the static file not being created.
Ca you try making a static file of a different page and putting it in a different folder? For example put a PageBlaster module on any other page than the home page and then put /Static/Default.htm in the virtual path field, then click logout. Once you logout on that page a folder named "Static" should be created with a file named Default.htm in it and you should be able to navigate to it by using http://www.ops.org/ops/Static
If that doesn't work then we need to turn on trace logging to see if there is a different problem.
| | | |
|
jerops
 Posts:50

| | 04/21/2008 9:39 AM |
| Hi,
Sorry to get back to this so late....I've tried your latest suggestion and the site did not create the static folder with default.htm. So I guess I need to enable tracing. How do I do that and what level of tracing should I do? | | | |
|
John Mitchell Posts:3033


| | 04/21/2008 10:52 AM |
| To enable tracing you update the < trace node in the Snapsis.PageBlaster.config file.
Set the level="Debug" and restart the application.
I have been working on the save static file feature and have made it work better for the next version, so if you'd like to hold off for a little while I'll send you the new version and you can test that out instead. The main difference is that the static Page is saved immediately upon saving the configuration instead of having to logout first. | | | |
|
jerops
 Posts:50

| | 04/21/2008 12:01 PM |
| | Okay..I've enabled it and captured some info...I can send it to you if you think it will help, otherwise I can wait and test your latest version... | | | |
|
jerops
 Posts:50

| | 04/23/2008 3:59 PM |
| Hi,
Do you have a time frame on when I could test the latest version? | | | |
|