Quick Nav:  Online Store   |   Login | Register

Bug report: Site crashes when logging in with Admin account

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.
Page 1 of 212 > >>
AuthorMessages
SplatMan_DK
<100 Posts
Posts:81


01/30/2007 6:31 PM  
Major bugreport: My DNN portal crashes with a Runtime Error when I am logging is using an account with the Administrative security role in DNN.

I suspect the error is related to PageBlaster, based on the following stack trace:


Server Error in '/DNN' Application.

parsing "*" - Quantifier {x,y} following nothing.
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.ArgumentException: parsing "*" - Quantifier {x,y} following nothing.

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:

[ArgumentException: parsing "*" - Quantifier {x,y} following nothing.]
   System.Text.RegularExpressions.RegexParser.ScanRegex() +2209121
   System.Text.RegularExpressions.RegexParser.Parse(String re, RegexOptions op) +225
   System.Text.RegularExpressions.Regex..ctor(String pattern, RegexOptions options, Boolean useCache) +406
   System.Text.RegularExpressions.Regex.Match(String input, String pattern, RegexOptions options) +33
   Snapsis.HttpModules.PageBlaster.UserController.GetCacheKey(Settings settings) +267
   Snapsis.HttpModules.PageBlaster.PageController.IsPageExcluded(HttpApplication app, ExcludeFrom excludeFrom, Settings settings) +58
   Snapsis.HttpModules.PageBlaster.PageReplacementsFilter.Write(Byte[] buffer, Int32 offset, Int32 count) +553
   System.Web.HttpWriter.Filter(Boolean finalFiltering) +251
   System.Web.HttpResponse.FilterOutput() +60
   System.Web.CallFilterExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +29
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64     

Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

Did I configure something wrong, or do we have a bug on the loose?

I am Using DNN 4.4, on a fairly clean installation, using a dedicated Windows 2003 server. The SQL server is on a separate server, and there are no other applications/software running on my portal server. It apperas that only accounts with the admin role assigned generate this error. The Host account works fine (when the portal has not been crashed that is), and regular user accounts also work like a charm.

I'll trust you with a MTSC connection to the server it if that helps you making the trace, or going over my config...? I can remove the IP range filter for the RDP connections, and create an Admin account on the server you can use.


- Jesper

brgds

- Jesper
John Mitchell
Posts:3268


01/30/2007 6:39 PM  

Hi Jesper,
Do you have an asterisk specified for the cached-users attribute in the config? If so, change it to ".*" (period asterisk).

Then again if you have it working ok with regular users this may not be the problem.
Regardless, let me know what you have assigned for cached-users and cached-roles.
SplatMan_DK
<100 Posts
Posts:81


01/30/2007 6:43 PM  
I have the following in my excludePath section ...

       
           
           
           
           
           
       


In theory it should be the default file, with only one change taken from a forum thread here on Snapsis where you have a long debate with Nina regarding what to cache and what to exclude ...



brgds

- Jesper

brgds

- Jesper
SplatMan_DK
<100 Posts
Posts:81


01/30/2007 6:45 PM  
Ok... lets try that XML section again, using the "code" style ... 

       
           
           
           
           
           
       


brgds

- Jesper

brgds

- Jesper
SplatMan_DK
<100 Posts
Posts:81


01/30/2007 6:46 PM  
LOL ...

Ok, instructions for allowing sections of XML in the forum pls?

brdgs

- Jesper

brgds

- Jesper
John Mitchell
Posts:3268


01/30/2007 6:51 PM  
I really need to get a better way of posting that. If you use the quick reply, then just wrap it with < code >
John Mitchell
Posts:3268


01/30/2007 6:52 PM  

Drats, mine didn't even show up all the way. < code > insert XML < / code >

and remove the spaces in the code tags
SplatMan_DK
<100 Posts
Posts:81


01/30/2007 6:53 PM  
Here we go :-)

<excludePaths><pathpattern="ctl=edit"excludeFrom="All"/><pathpattern="\?(?!tabid)"excludeFrom="All"/><pathpattern="rss"excludeFrom="All"/><pathpattern="\.asxh"excludeFrom="All"/><pathpattern="tabid.*?(46|73|90)"excludeFrom="All"/></excludePaths>


And btw, the settings for cached users and roles are both empty strings:

<br>        cached-roles=""  <br>        cached-users=""<br>


:-)

brgds

- Jesper

brgds

- Jesper
SplatMan_DK
<100 Posts
Posts:81


01/30/2007 6:59 PM  
Here is a copy-paste from my EventViewer, just in case it helps in any way ...

---
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 31-01-2007 01:17:22
Event time (UTC): 31-01-2007 00:17:22
Event ID: 2d0d856fcfc045c9a6d82500fd99f7d3
Event sequence: 80
Event occurrence: 11
Event detail code: 0
 
Application information:
    Application domain: /LM/W3SVC/1/Root/DNN-1-128146753358281250
    Trust level: Full
    Application Virtual Path: /DNN
    Application Path: C:\DotNetNuke\Website\
    Machine name: JSSERVER
 
Process information:
    Process ID: 192
    Process name: w3wp.exe
    Account name: NT AUTHORITY\NETWORK SERVICE
 
Exception information:
    Exception type: ArgumentException
    Exception message: parsing "*" - Quantifier {x,y} following nothing.
 
Request information:
    Request URL: http://localhost/DNN/Default.aspx?TabId=36
    Request path: /DNN/Default.aspx
    User host address: 127.0.0.1
    User: scladmin
    Is authenticated: True
    Authentication Type: Forms
    Thread account name: NT AUTHORITY\NETWORK SERVICE
 
Thread information:
    Thread ID: 1
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: False
    Stack trace:    at System.Text.RegularExpressions.RegexParser.ScanRegex()
   at System.Text.RegularExpressions.RegexParser.Parse(String re, RegexOptions op)
   at System.Text.RegularExpressions.Regex..ctor(String pattern, RegexOptions options, Boolean useCache)
   at System.Text.RegularExpressions.Regex.Match(String input, String pattern, RegexOptions options)
   at Snapsis.HttpModules.PageBlaster.UserController.GetCacheKey(Settings settings)
   at Snapsis.HttpModules.PageBlaster.PageController.IsPageExcluded(HttpApplication app, ExcludeFrom excludeFrom, Settings settings)
   at Snapsis.HttpModules.PageBlaster.PageReplacementsFilter.Write(Byte[] buffer, Int32 offset, Int32 count)
   at System.Web.HttpWriter.Filter(Boolean finalFiltering)
   at System.Web.HttpResponse.FilterOutput()
   at System.Web.HttpApplication.CallFilterExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 
 
Custom event details:

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

---

brgds

- Jesper

brgds

- Jesper
John Mitchell
Posts:3268


01/30/2007 7:06 PM  

 

Somehow it is getting something in the cached-users, or cached-roles.

Do you have a PageBlaster module on the page that is visible to Admins only?

Try looking in the DesktopModules/Snapsis/PageBlaster/Config/PortalRules folder.  If there are config files in there, look for one to have the cached-roles, or cached-users set.

SplatMan_DK
<100 Posts
Posts:81


01/30/2007 7:15 PM  
Ok, done.

The PageBlaster module actually *IS* present in admin-mode, since it has been added to all pages. I didnt figure that was a problem since authenticated+Host accounts work fine - but perhaps that is the cause of the problem?

I looked in "DesktopModules/Snapsis/PageBlaster..." folders and found the following:

* There appears to be a full version of the main config file in "DesktopModules/Snapsis/PageBlaster/Config/". The file differs slightly, as the exceptions from the file I sent you earlier are not present in it.

* There is a config file in the "C:\DotNetNuke\Website\DesktopModules\Snapsis\PageBlaster\Config\PortalRules" folder with the following content (replaced <> with []):

[node id="PortalRules" caption="Portal Rules" url="pb_showForm('PortalRulesForm')" ic="/DNN/DesktopModules/Snapsis/PageBlaster/nlstree/img/PortalRules.gif" exp="false" chk="false" cststyle="" xtra="false" target="_self" title="Portal Rules"]        [/node]


Hope that helps.

- Jesper

brgds

- Jesper
SplatMan_DK
<100 Posts
Posts:81


01/30/2007 7:18 PM  
Btw, I can see there is an upgrade available from DNN 4.4 to DNN 4.4.1.

I have not yet upgraded, in case that is information you need.

Brgds

- Jesper

brgds

- Jesper
SplatMan_DK
<100 Posts
Posts:81


01/30/2007 7:33 PM  
I am not a DNN expert or a .NET expert in any way, but could it be possible that the error is related to the following official bug mentioned in the DNN 4.4.1 changelog? I fit the description for getting the error ...

DNN-4463
http://support.dotnetnuke.com/issue/ViewIssue.aspx?id=4463

Perhaps that is the real cause of the error, and the PageBlaster code just gets stuck with the problem somehow?

brgds

- Jesper

brgds

- Jesper
John Mitchell
Posts:3268


01/30/2007 10:29 PM  
No, I don't think it is that last error logged in Gemini.

So you have the module assigned to all pages? There should not be any reason to do that. If you want a rule to apply throughout the portal then you just need to put it in the Portal Rules node of the configuration tree.

Think of the PageBlaster module as an extension of the PageSettings so that you can set the Cache and virtual path, etc. on each page separately.

Unless the config file in the DesktopModules/Snapsis/PageBlaster/Config/PortalRules folder has a number in the filename, then it is not being used.
The Snapsis.PageBlaster.config file in the DesktopModules/Snapsis/PageBlaster/Config folder is the default config file in case you need to revert to default. It is not used unless it is in the root folder of the website.

SplatMan_DK
<100 Posts
Posts:81


01/30/2007 10:45 PM  
Ok, i tried removing the module from all pages, and deleting it from the front page. That actually appears to have helped (i also restarted IIS just to be sure). The problem re-apperas if I add PageBlaster to the front page, even if it is only for that single page.

How should I apply the module? The installation document mentioned that the module has to be added to the pages (or at least 1 page). I kinda expected the front page to be cached?



- Jesper

brgds

- Jesper
John Mitchell
Posts:3268


01/30/2007 11:01 PM  
The only time you need to add it to a page is if you want to set the specific settings differently on that page than what is set in the main config file.
Like if you want a different Cache time, or you want to set a virtual path.

It should not fail on any page though. When you have it on the home page, go to Edit on the action menu so that you can see the config tree, then select Page Settings + Cache Settings and look to see if there is a value set for cached-roles or cached-users
SplatMan_DK
<100 Posts
Posts:81


01/30/2007 11:05 PM  
Mjeah ... only ... its 6:03 in the morning up here in the cold north, and I have to be at the office to meet a client at 10 ;-) So i'll continue my DN/PageBlaster work in approx 12 hours or so.

:-)

- Jesper

brgds

- Jesper
SplatMan_DK
<100 Posts
Posts:81


02/01/2007 2:38 PM  
I have removed the PageBlaster module from all pages (actually it was just originally on the front page, and then visible on all pages), but I still get the error on some pages. That is to say, I get the error on pages that do not have the module inserted. For that reason, I am pretty sure that there are no special settings (users, roles or otherwise) for the caching of those pages.

The error is now on a total of 3 pages. It is still only for users with administrative rights, but now includes the Host account. So I cant access/see the pages that have the error. The error message is the same as initially posted.

I have not changed any settings since the first post. But perhaps there is an error in my config files, or something?

Any thoughts or requests for more information?

:-)

- Jesper

brgds

- Jesper
John Mitchell
Posts:3268


02/01/2007 2:46 PM  
Hi Jesper,

It sure seems like something is sneaking into the config somewhere.

If you can get me access then I may be able to track it down.
Reply to the notification e-mail directly or contact me through my profile and lets see what we can do.

John
SplatMan_DK
<100 Posts
Posts:81


02/01/2007 2:58 PM  
More info: After cllearing *ALL* PagerBlaster caching files and restarting IIS the problem is gone. I don't know if it was just the TTL that ran out (my caching time is only set to 1 hour) or if it was actually deleting the files that helped. But currently I can not reproduce the problem.

On the pages generation the error there actually WAS PageBlaster modules inserted. This is possibly because I have changed settings in them, thus making local module registrations on those pages. As mentioned, I originally inserted on the front page and then enabled "Show on all pages". When I removed that option and deleted the module of the front page, PageBlaster was not removed from those specific 3 pages.

I only changed caching times though, so no user roles should be involved.

I have removed the modules from all 3 pages, and everything runs as it should now. But I am not sure I am ready to insert the modules back into pages, even if I wanted to change the cache settings on those pages. I am worried that I might not be able to access the pages later if the error returns...

brgds

- Jesper

brgds

- Jesper
Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Page 1 of 212 > >>

Forums >Snapsis Product Support >Bugs and other Issues > Bug report: Site crashes when logging in with Admin account



ActiveForums 3.7
Powered by: Snapsis Software