Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DNN keeps redirecting to the same pageDNN keeps redirecting to the same page
Previous
 
Next
New Post
5/4/2008 9:10 PM
 

Hi there.

After I succesfully installed DNN on my development system, and later installed, configured and designed my site completly, I wanted to install it on my ISP.

I created the database, cloned it, using Microsoft's Database Migration tool, checked it manualy to see if it all succeeded,

then I uploaded the website completly, installed it using a virtual IIS directory,  with the same name and settings, configured it as an application, asp.net 2.0, etc, etc..

I opened the PortalAlias table, changed the local alias that I used on my development system, and changed it to the www.mydomain.com/dotnetnuke_2  alias it should have now., so I only changed 'localhost'  to ' www.mydomain.com' (but then the real DNS name of course)

When I try to acces the site using www.mydomain.com/dotnetnuke_2/default.aspx, it keeps redirecting to www.mycomain.com/dotnetnuke_2/default.aspx?tabid=36 and again, and again..

I have no idea what the reason for this could be.

I tryed creating errors on my development system, to get the same weird result, but I did not succeed in this. When I stop the database server, It gives a very nice message, saying that the site is down. And since this new site on my ISP is temparaly only accesible using authentication, I did the same thing on my developement system, but after typing the credentials, the site works normaly, so I don't know what to do now..

Can I enable some kind of logging maybe, or does anyone know what it could be?

Using FIDLER, (http debug proxy) I can see this happening  ( a lot ):

-------------------------------------------

GET /DotNetNuke_2/Default.aspx?tabid=36 HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-ms-application, application/vnd.ms-xpsdocument, application/xaml+xml, application/x-ms-xbap, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: en-us
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; Media Center PC 5.0)
Host: www.mydomain.com
Proxy-Connection: Keep-Alive
Cookie: .ASPXANONYMOUS=HCq-qNrkyAEkAAAAMzIzNmVjZDUtMTEwYy00N2E4LTlhY2EtZDQ4OTg5OGNiODQ40; language=en-GB
Authorization: Basic cmVuZTo0aWdhcnE=

-----------------------------------------------

 

HTTP/1.1 302 Found

Cache-Control: private

Content-Type: text/html; charset=utf-8

Location: http://www.mydomain.com/DotNetNuke_2/Default.aspx?tabid=36

Server: Microsoft-IIS/7.0

X-AspNet-Version: 2.0.50727

Set-Cookie: language=en-GB; path=/; HttpOnly

X-Powered-By: ASP.NET

Date: Mon, 05 May 2008 01:03:14 GMT

Content-Length: 177

<html><head><title>Object moved</title></head><body>

<h2>Object moved to <a href="http://www.mydomain.comDotNetNuke_2/Default.aspx?tabid=36">here</a>.</h2>

</body></html>

 

---------------------------------

Thanks,

René

 
New Post
5/5/2008 1:08 PM
 

tabid=36 is the default home page.  This is as it is supposed to happen.  Human friendly URLs and products such as Snapsis Pageblaster can change this, and you can change the home page to anything you wish in DNN.

Jeff

 
New Post
5/5/2008 2:09 PM
 

Version Information: Microsoft .NET Framework Version:2.0.50727.1434; ASP.NET Version:2.0.50727.1434

 

This happens when I reraise the exception or when I comment out the redirection command.

What I can also add, is that I find out that the install script is not working when an ISP has configured a different workerprocess account, other then ASPNET as the windows user that is used for the application pool involved in the DNN webapplication.

Like in my case.  Maybe this has something to do with it?

I can't see the ' System.Web.Extension'  substring in the exception that is genereated by ASP.NET (above) but maybe the custom medium trust settings on my ISP doesn't allow the Ajax library to query security settings?!

Anyone an idea, what to do as a workarround? Maybe change some code or something?

Greetings,

René.

 
New Post
5/5/2008 2:38 PM
 

I see a big part of my post has gone lost, I'll report when I have time.. sorry.

 
New Post
5/5/2008 2:39 PM
 

Yes, I got that.

But.. I am a little further in investigating the readon for this infinite redirection..

I browsed through the code of DNN and added some debugging code. Then compiled it, and tried some things.

The redirection is done in PageBase.vb

In these lines:

If objBasePortalException.Message.Contains("System.Web.Extensions") Then
                ' suppress AJAX error in Medium Trust
                Response.Redirect(strURL)

When I check the exception message it says this:

Security Exception
Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Configuration.ConfigurationPermission, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.

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:

[SecurityException: Request for the permission of type 'System.Configuration.ConfigurationPermission, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.]
   System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
   System.Security.CodeAccessPermission.Demand() +59
   System.Configuration.BaseConfigurationRecord.CheckPermissionAllowed(String configKey, Boolean requirePermission, Boolean isTrustedWithoutAptca) +65

 

 


--------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:2.0.50727.1434; ASP.NET Version:2.0.50727.1434

 

This happens when I reraise the exception or when I comment out the redirection command.

What I can also add, is that I find out that the install script is not working when an ISP has configured a different workerprocess account, other then ASPNET as the windows user that is used for the application pool involved in the DNN webapplication.

Like in my case.  Maybe this has something to do with it?

I can't see the ' System.Web.Extension'  substring in the exception that is genereated by ASP.NET (above) but maybe the custom medium trust settings on my ISP doesn't allow the Ajax library to query security settings?!

Anyone an idea, what to do as a workarround? Maybe change some code or something?

Greetings,

René.

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DNN keeps redirecting to the same pageDNN keeps redirecting to the same page


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out