Portal Engine
Version 3.x > Portal Engine > I got an invalid URI error, what is it? View modes: 
User avatar
Member
Member
shinobi368@yahoo.com - 2/5/2009 11:35:47 AM
   
I got an invalid URI error, what is it?
Hi,

I got an Invalid URI when try to run a website with customized webpart? Could any help me, please? Thank you very much.

Server Error in '/KenticoCMSVS2005' 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:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

<%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:


[UriFormatException: Invalid URI: The format of the URI could not be determined.]
System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) +2166300
System.Net.WebRequest.Create(String requestUriString) +72
CMSWebParts_MyWebParts_FeedReader.RefreshFeed() +38
CMSWebParts_MyWebParts_FeedReader.Page_Load(Object sender, EventArgs e) +16
System.Web.UI.Control.OnLoad(EventArgs e) +99
CMS.PortalControls.CMSAbstractWebPart.OnLoad(EventArgs e) +208
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.BasePartialCachingControl.LoadRecursive() +113
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436



User avatar
Member
Member
john-mailinator - 2/5/2009 6:46:48 PM
   
RE:I got an invalid URI error, what is it?
Let me read the message for you:
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

Read it one more time and make sure you understand this part: "To enable this, please follow one of the below steps". There are two steps: 1 and 2.
I would suggest the second option:
2) Add the following section to the configuration file of your application:
<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>

the configuration file of your application is web.config. You may find this file in a root of your CMS folder. Simply open the file - and FIND this compilation debug="false" and change it to "true".
It wasn´t that hard was it?