tomorrow i have to present a portal made with dotnetnuke as a project at school. the problem is that it worked just fine on my laptop, with localhost set as an alias (default i guess cause i don't remember setting it, oh well) until i asked somebody to try
it from the internet. eventually i figured out that the error that person kept receiving (cannot connect to localhost) was due to the fact that dnn uses aliases to launch the portals.
ok, i said to myself, let me change the alias to my dns domain (actually a dynamic dns host - x.dyndns.org) ->
it was /localhost/site2 and i changed it to /x.dyndns.org/site2 and it got me the following error. i modified the alias directly in the portalalias table of the dotnetnuke database in sql server back to /localhost/site2 and still the same error. there is obviously
something else i have to modify but can't quite figure out what. here's the error:
Server Error in '/site2' Application.
Invalid URI: The format of the URI could not be determined.
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.UriFormatException: Invalid URI: The format of the URI could not be determined.
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:
[UriFormatException: Invalid URI: The format of the URI could not be determined.] System.Uri.Parse() +2375 System.Uri..ctor(String uriString, Boolean dontEscape) +191 System.Uri..ctor(Uri baseUri, String relativeUri, Boolean dontEscape) +30 System.Web.HttpResponse.ConvertToFullyQualifiedRedirectUrlIfRequired(String url) +92 System.Web.HttpResponse.Redirect(String url, Boolean endResponse) +75 DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) +3551 System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +60 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
did that and the foolowing error was reported (by firefox 1.0.4):
redirection limit for this url exceeded
IE 6.0 just displays:
The page cannot be displayed
The page you are looking for is currently unavailable. The Web site
might be experiencing technical difficulties, or you may need to adjust your browser settings.
If you typed the page address in the Address bar, make sure that it is spelled correctly.
To check your connection settings, click the Tools menu, and then click
Internet Options. On the Connections tab, click Settings. The settings should match those provided by your local area network (LAN) administrator or Internet service provider (ISP).
See if your Internet connection settings are being detected. You can set Microsoft Windows to examine your network and automatically discover network connection settings (if your network administrator has enabled this setting).
Click the Tools menu, and then click Internet Options.
On the Connections tab, click LAN Settings.
Select Automatically detect settings, and then click
OK.
Some sites require 128-bit connection security. Click the
Help menu and then click About Internet Explorer to determine what strength security you have installed.
If you are trying to reach a secure site, make sure your Security settings can support it. Click the
Tools menu, and then click Internet Options. On the Advanced tab, scroll to the Security section and check settings for SSL 2.0, SSL 3.0, TLS 1.0, PCT 1.0.
if it continually tries to re-direct that means that the host.domainname portion of the Url that you are using to access the website is not found in any of the portal alias entries.
If you access it on at x.dyndns.org then that needs to be in the portal alias table. If it is a virtual directory under that domain then you would add that for an alias of
x.dyndns.org/site2
if it continually tries to re-direct that means that the host.domainname portion of the Url that you are using to access the website is not found in any of the portal alias entries.
If you access it on at x.dyndns.org then that needs to be in the portal alias table. If it is a virtual directory under that domain then you would add that for an alias of
x.dyndns.org/site2
I'm not getting any error at all, when I access the site from localhost/virtualdirectory from the server via RDC. All I *do* get is nothing. Like it's spinning wheels. When I access www.ewriters.org from remote pc (ie, my laptop), I get 'Redirection limit
for the URL exceeded'. Now this is an upgrade from 3.0.13 to 3.1. This all worked fine in 3.0.13. I just checked the PortalAlias table and it has the exact same *WORKING* entries that were in 3.0.13 install. Namely:
obviously I've not specified the exact values of the ip address, though I don't think it would be a security issue I guess. This obviously has *something* to do w/portalalias, but I have zero clue what, since it all worked fine in 3.0.13. Could someone give
me a heads up on this? I've searched all other threads, and don't see anything that resolves my issue...
TreeNode RootNodes=this.treeMachines.Nodes[0];
for (int i = 0; i < RootNodes.Nodes.Count; i++)
{
if (RootNodes.Nodes[i].Text == username)
{
RootNodes.Nodes.RemoveAt(i);
break;
}
}
}
///
<summary>
/// Clean up any resources being used.
///
</summary>
protected override
void Dispose(
bool disposing )
{
if( disposing )
{
if (components !=
null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region
Windows Form Designer generated code
///
<summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///
</summary>
private void InitializeComponent()
{
this.components =
new System.ComponentModel.Container();
System.Resources.
ResourceManager resources =
new System.Resources.ResourceManager(typeof(Form1));
this.treeMachines =
new System.Windows.Forms.TreeView();
this.imageList1 =
new System.Windows.Forms.ImageList(this.components);
this.richTextMessage =
new System.Windows.Forms.RichTextBox();
this.SendButton =
new System.Windows.Forms.Button();
this.richTextHistory =
new System.Windows.Forms.RichTextBox();
this.pictureBox1 =
new System.Windows.Forms.PictureBox();
this.SuspendLayout();
//
// treeMachines
//
this.treeMachines.HideSelection =
false;
this.treeMachines.ImageList =
this.imageList1;
this.treeMachines.Location =
new System.Drawing.Point(8, 8);
this.treeMachines.Name =
"treeMachines";
this.treeMachines.Size =
new System.Drawing.Size(120, 240);
this.treeMachines.TabIndex = 0;
//
// imageList1
//
this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
this.imageList1.ImageSize =
new System.Drawing.Size(16, 16);
this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
//
// richTextMessage
//
this.richTextMessage.Location =
new System.Drawing.Point(8, 256);
this.richTextMessage.Name =
"richTextMessage";
this.richTextMessage.Size =
new System.Drawing.Size(312, 56);
this.richTextMessage.TabIndex = 1;
this.richTextMessage.Text =
"";
//
// SendButton
//
this.SendButton.Location =
new System.Drawing.Point(328, 256);
this.SendButton.Name =
"SendButton";
this.SendButton.Size =
new System.Drawing.Size(56, 56);
this.SendButton.TabIndex = 2;
this.SendButton.Text =
"&Send";
this.SendButton.Click +=
new System.EventHandler(this.SendButton_Click);
//
// richTextHistory
//
this.richTextHistory.Location =
new System.Drawing.Point(136, 8);
this.richTextHistory.Name =
"richTextHistory";
this.richTextHistory.ReadOnly =
true;
this.richTextHistory.Size =
new System.Drawing.Size(184, 240);
this.richTextHistory.TabIndex = 4;
this.richTextHistory.Text =
"";
//
// pictureBox1
//
this.pictureBox1.BackColor = System.Drawing.Color.SkyBlue;
this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pictureBox1.Location =
new System.Drawing.Point(328, 8);
this.pictureBox1.Name =
"pictureBox1";
this.pictureBox1.Size =
new System.Drawing.Size(56, 240);
this.pictureBox1.TabIndex = 3;
this.pictureBox1.TabStop =
false;
//
// Form1
//
this.AutoScaleBaseSize =
new System.Drawing.Size(5, 13);
this.ClientSize =
new System.Drawing.Size(394, 317);
this.Controls.AddRange(new System.Windows.Forms.Control[] {
this.richTextHistory,
this.pictureBox1,
this.SendButton,
this.richTextMessage,
this.treeMachines});
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox =
false;
this.Name =
"Form1";
this.Text =
"Chat Client";
this.Closing +=
new System.ComponentModel.CancelEventHandler(this.Form1_Closing);
this.ResumeLayout(false);
}
#endregion
///
<summary>
/// The main entry point for the application.
///
</summary>
ardealul
Member
10 Points
2 Posts
Invalid URI: The format of the URI could not be determined.
Jun 01, 2005 04:20 PM|LINK
tomorrow i have to present a portal made with dotnetnuke as a project at school. the problem is that it worked just fine on my laptop, with localhost set as an alias (default i guess cause i don't remember setting it, oh well) until i asked somebody to try it from the internet. eventually i figured out that the error that person kept receiving (cannot connect to localhost) was due to the fact that dnn uses aliases to launch the portals.
ok, i said to myself, let me change the alias to my dns domain (actually a dynamic dns host - x.dyndns.org) ->
it was /localhost/site2 and i changed it to /x.dyndns.org/site2 and it got me the following error. i modified the alias directly in the portalalias table of the dotnetnuke database in sql server back to /localhost/site2 and still the same error. there is obviously something else i have to modify but can't quite figure out what. here's the error:
Server Error in '/site2' Application.
Invalid URI: The format of the URI could not be determined.
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.UriFormatException: Invalid URI: The format of the URI could not be determined.
Source Error:
Stack Trace:
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
J7Mitch
Star
13145 Points
2632 Posts
Re: Invalid URI: The format of the URI could not be determined.
Jun 01, 2005 04:40 PM|LINK
ardealul
Member
10 Points
2 Posts
Re: Invalid URI: The format of the URI could not be determined.
Jun 01, 2005 05:38 PM|LINK
redirection limit for this url exceeded
IE 6.0 just displays:
The page cannot be displayed
Please try the following:
Cannot find server or DNS Error
Internet Explorer
J7Mitch
Star
13145 Points
2632 Posts
Re: Invalid URI: The format of the URI could not be determined.
Jun 01, 2005 07:08 PM|LINK
if it continually tries to re-direct that means that the host.domainname portion of the Url that you are using to access the website is not found in any of the portal alias entries.
If you access it on at x.dyndns.org then that needs to be in the portal alias table. If it is a virtual directory under that domain then you would add that for an alias of x.dyndns.org/site2
aaava
Contributor
5654 Points
1170 Posts
Re: Invalid URI: The format of the URI could not be determined.
Jun 25, 2005 04:33 PM|LINK
I'm not getting any error at all, when I access the site from localhost/virtualdirectory from the server via RDC. All I *do* get is nothing. Like it's spinning wheels. When I access www.ewriters.org from remote pc (ie, my laptop), I get 'Redirection limit for the URL exceeded'. Now this is an upgrade from 3.0.13 to 3.1. This all worked fine in 3.0.13. I just checked the PortalAlias table and it has the exact same *WORKING* entries that were in 3.0.13 install. Namely:
www.ewriters.org
ewriters.org
localhost/virtualdirectory
macingipaddress/virtualdirectory
domanipaddress
obviously I've not specified the exact values of the ip address, though I don't think it would be a security issue I guess. This obviously has *something* to do w/portalalias, but I have zero clue what, since it all worked fine in 3.0.13. Could someone give me a heads up on this? I've searched all other threads, and don't see anything that resolves my issue...
gkc
Member
5 Points
1 Post
Re: Invalid URI: The format of the URI could not be determined.
Jun 21, 2006 08:54 AM|LINK
Invalid URI: The hostname could not be parsed.
[:)]
using
System;using
System.Drawing;using
System.Collections;using
System.ComponentModel;using
System.Windows.Forms;using
System.Data;namespace
ChatClient{
/// <summary> ///Summary description for Form1. /// </summary> public class Form1 : System.Windows.Forms.Form{
private System.Windows.Forms.Button SendButton; private System.Windows.Forms.TreeView treeMachines; private System.Windows.Forms.ImageList imageList1; private System.ComponentModel.IContainer components; private System.Windows.Forms.RichTextBox richTextHistory; private System.Windows.Forms.RichTextBox richTextMessage; private ChatCoordinator.ChatCenter chatCenter; private System.Windows.Forms.PictureBox pictureBox1; private string UserName=""; public Form1(){
// // Required for Windows Form Designer support //InitializeComponent();
InitializeData();
// // TODO: Add any constructor code after InitializeComponent call //}
private void FillCurrentUsers(){
string strTemp=""; for (int i=0;i<chatCenter.Users.Count;i++){
strTemp = (
string)chatCenter.Users[i];treeMachines.Nodes[0].Nodes.Add(
new TreeNode(strTemp,0,0));}
}
private void InitializeData(){
System.Runtime.Remoting.
RemotingConfiguration.Configure(
"ChatClient.exe.config");chatCenter =
new ChatCoordinator.ChatCenter();
string machinename = chatCenter.GetServerName();treeMachines.Nodes.Add(
new TreeNode(machinename,1,1));FillCurrentUsers();
chatCenter.evtUserAdded +=
new ChatCoordinator.UserAdded(this.UserAdded);chatCenter.evtReceiveText +=
new ChatCoordinator.ReceiveText(this.ReceiveText);chatCenter.evtUserRemoved +=
new ChatCoordinator.UserRemoved(this.UserRemoved);UserName=
SystemInformation.UserName;chatCenter.AddUser(UserName);
}
public void UserAdded(string username){
treeMachines.Nodes[0].Nodes.Add(
new TreeNode(username,0,0));treeMachines.Nodes[0].Expand();
}
public void ReceiveText(string username,string text){
this.richTextHistory.AppendText(username); this.richTextHistory.AppendText(" : "); this.richTextHistory.AppendText(text); this.richTextHistory.AppendText("\n");}
public void UserRemoved(string username){
TreeNode RootNodes=this.treeMachines.Nodes[0]; for (int i = 0; i < RootNodes.Nodes.Count; i++){
if (RootNodes.Nodes[i].Text == username){
RootNodes.Nodes.RemoveAt(i);
break;}
}
}
/// <summary> /// Clean up any resources being used. /// </summary> protected override void Dispose( bool disposing ){
if( disposing ){
if (components != null){
components.Dispose();
}
}
base.Dispose( disposing );}
#region
Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent(){
this.components = new System.ComponentModel.Container();System.Resources.
ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1)); this.treeMachines = new System.Windows.Forms.TreeView(); this.imageList1 = new System.Windows.Forms.ImageList(this.components); this.richTextMessage = new System.Windows.Forms.RichTextBox(); this.SendButton = new System.Windows.Forms.Button(); this.richTextHistory = new System.Windows.Forms.RichTextBox(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.SuspendLayout(); // // treeMachines // this.treeMachines.HideSelection = false; this.treeMachines.ImageList = this.imageList1; this.treeMachines.Location = new System.Drawing.Point(8, 8); this.treeMachines.Name = "treeMachines"; this.treeMachines.Size = new System.Drawing.Size(120, 240); this.treeMachines.TabIndex = 0; // // imageList1 // this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit; this.imageList1.ImageSize = new System.Drawing.Size(16, 16); this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream"))); this.imageList1.TransparentColor = System.Drawing.Color.Transparent; // // richTextMessage // this.richTextMessage.Location = new System.Drawing.Point(8, 256); this.richTextMessage.Name = "richTextMessage"; this.richTextMessage.Size = new System.Drawing.Size(312, 56); this.richTextMessage.TabIndex = 1; this.richTextMessage.Text = ""; // // SendButton // this.SendButton.Location = new System.Drawing.Point(328, 256); this.SendButton.Name = "SendButton"; this.SendButton.Size = new System.Drawing.Size(56, 56); this.SendButton.TabIndex = 2; this.SendButton.Text = "&Send"; this.SendButton.Click += new System.EventHandler(this.SendButton_Click); // // richTextHistory // this.richTextHistory.Location = new System.Drawing.Point(136, 8); this.richTextHistory.Name = "richTextHistory"; this.richTextHistory.ReadOnly = true; this.richTextHistory.Size = new System.Drawing.Size(184, 240); this.richTextHistory.TabIndex = 4; this.richTextHistory.Text = ""; // // pictureBox1 // this.pictureBox1.BackColor = System.Drawing.Color.SkyBlue; this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.pictureBox1.Location = new System.Drawing.Point(328, 8); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(56, 240); this.pictureBox1.TabIndex = 3; this.pictureBox1.TabStop = false; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(394, 317); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.richTextHistory, this.pictureBox1, this.SendButton, this.richTextMessage, this.treeMachines}); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.Name = "Form1"; this.Text = "Chat Client"; this.Closing += new System.ComponentModel.CancelEventHandler(this.Form1_Closing); this.ResumeLayout(false);}
#endregion
/// <summary> /// The main entry point for the application. /// </summary>[
STAThread] static void Main(){
Application.Run(new Form1());}
private void SendButton_Click(object sender, System.EventArgs e){
//this.chatCenter.SendText(UserName,richTextMessage.Text); this.richTextMessage.Clear();}
private void Form1_Closing(object sender, System.ComponentModel.CancelEventArgs e){
chatCenter.RemoveUser(
this.UserName);chatCenter.evtUserAdded -=
new ChatCoordinator.UserAdded(this.UserAdded);chatCenter.evtReceiveText -=
new ChatCoordinator.ReceiveText(this.ReceiveText);chatCenter.evtUserRemoved -=
new ChatCoordinator.UserRemoved(this.UserRemoved);}
}
}