Invalid URI: There is an invalid sequence in the string. Error!!

Discussion in 'ASP .Net' started by Patrick.O.Ige, Jul 2, 2006.

  1. Hi guys,
    I just moved a project from my pc to a server production (to an
    ISP).
    on my pc it all works fine with no errors.
    After fireing up the first page "default.aspx" i get the error
    !!!!!!!!!!!!!!!!! arg!!!!!!!!!!
    below..
    As anybody gone through this before???

    "Invalid URI: There is an invalid sequence in the string. "

    Stack Trace:


    [UriFormatException: Invalid URI: There is an invalid sequence in the
    string.]
    System.Uri..ctor(String uriString, Boolean dontEscape) +454
    System.Web.Util.UrlPath.MakeRelative(String from, String to) +80
    System.Web.UI.Control.ResolveClientUrl(String relativeUrl) +280
    System.Web.UI.WebControls.HyperLink.AddAttributesToRender(HtmlTextWriter
    writer) +57
    System.Web.UI.WebControls.WebControl.RenderBeginTag(HtmlTextWriter
    writer) +17
    System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +17
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +241
    System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
    System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter
    writer) +7
    System.Web.UI.WebControls.DataListItem.RenderItemInternal(HtmlTextWriter
    writer, Boolean extractRows, Boolean tableLayout) +40
    System.Web.UI.WebControls.DataListItem.RenderItem(HtmlTextWriter writer,
    Boolean extractRows, Boolean tableLayout) +223
    System.Web.UI.WebControls.DataList.System.Web.UI.WebControls.IRepeatInfoUser.RenderItem(ListItemType
    itemType, Int32 repeatIndex, RepeatInfo repeatInfo, HtmlTextWriter writer)
    +54
    System.Web.UI.WebControls.RepeatInfo.RenderVerticalRepeater(HtmlTextWriter
    writer, IRepeatInfoUser user, Style controlStyle, WebControl baseControl)
    +1069
    System.Web.UI.WebControls.RepeatInfo.RenderRepeater(HtmlTextWriter
    writer, IRepeatInfoUser user, Style controlStyle, WebControl baseControl)
    +24
    System.Web.UI.WebControls.DataList.RenderContents(HtmlTextWriter writer)
    +398
    System.Web.UI.WebControls.BaseDataList.Render(HtmlTextWriter writer) +27
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +241
    System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
    System.Web.UI.Control.Render(HtmlTextWriter writer) +7
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +241
    System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
    System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)
    +44
    System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +261
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +241
    System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
    System.Web.UI.Control.Render(HtmlTextWriter writer) +7
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +241
    System.Web.UI.Page.ProcessRequestMain() +1880
     
    Patrick.O.Ige, Jul 2, 2006
    #1
    1. Advertising

  2. This part of the page i'm sure is giving me the error.
    Any ideas???????????

    <asp:datalist id="LeftMenu" runat="server"
    OnItemDataBound="LeftMenu_ItemDataBound" EnableViewState="false"
    SelectedItemStyle-BackColor="#E1E9F2" width="180px" cellspacing="0"
    cellpadding="0">
    <ItemTemplate>
    <table width="180px" border="0" cellpadding="0" cellspacing="0"
    bordercolor="#132E55">
    <tr width="150px" style="cursor:hand;text-decoration:none;"
    onmouseover="style.backgroundColor='#91C75B';"
    onmouseout="style.backgroundColor='';" bordercolor="#E1E9F2"
    height="27px">
    <td>
    <asp:Image id="Image2" runat="server"
    ImageUrl="images/off1.gif"></asp:Image>
    <asp:HyperLink id="Hyperlink2" Tooltip='<%#
    DataBinder.Eval(Container.DataItem, "briefDescription")%>'
    Cssclass="MenuUnselected" Text='<%# DataBinder.Eval(Container.DataItem,
    "cat_cities")%>' NavigateUrl='<%# "../ShowOffers.aspx?CategoryID=" &
    DataBinder.Eval(Container.DataItem, "catid")& "&CitName=" &
    DataBinder.Eval(Container.DataItem, "cat_cities") & "&selection=" &
    Container.ItemIndex %>' runat="server" />
    </td>
    </tr>
    </table>
    </ItemTemplate>
    <SelectedItemTemplate>
    <img src="images/contactus.gif" border="0" align="absbottom"
    width="22px">
    <asp:HyperLink Tooltip='<%# DataBinder.Eval(Container.DataItem,
    "briefDescription")%>' Cssclass="MenuSelected" Height="10px" id="Hyperlink4"
    Text='<%# DataBinder.Eval(Container.DataItem, "cat_cities") %>'
    NavigateUrl='<%# "../ShowOffers.aspx?CategoryID=" &
    DataBinder.Eval(Container.DataItem, "catid")& "&CitName=" &
    DataBinder.Eval(Container.DataItem, "cat_cities") & "&selection=" &
    Container.ItemIndex %>' runat="server" />
    &nbsp;&nbsp;&nbsp;&nbsp;<img src="images/next.gif" border="0"
    align="absmiddle">
    </SelectedItemTemplate>
    </asp:datalist>

    "Patrick.O.Ige" <> wrote in message
    news:O$...
    > Hi guys,
    > I just moved a project from my pc to a server production (to an
    > ISP).
    > on my pc it all works fine with no errors.
    > After fireing up the first page "default.aspx" i get the error
    > !!!!!!!!!!!!!!!!! arg!!!!!!!!!!
    > below..
    > As anybody gone through this before???
    >
    > "Invalid URI: There is an invalid sequence in the string. "
    >
    > Stack Trace:
    >
    >
    > [UriFormatException: Invalid URI: There is an invalid sequence in the
    > string.]
    > System.Uri..ctor(String uriString, Boolean dontEscape) +454
    > System.Web.Util.UrlPath.MakeRelative(String from, String to) +80
    > System.Web.UI.Control.ResolveClientUrl(String relativeUrl) +280
    > System.Web.UI.WebControls.HyperLink.AddAttributesToRender(HtmlTextWriter
    > writer) +57
    > System.Web.UI.WebControls.WebControl.RenderBeginTag(HtmlTextWriter
    > writer) +17
    > System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +17
    > System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +241
    > System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
    > System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter
    > writer) +7
    > System.Web.UI.WebControls.DataListItem.RenderItemInternal(HtmlTextWriter
    > writer, Boolean extractRows, Boolean tableLayout) +40
    > System.Web.UI.WebControls.DataListItem.RenderItem(HtmlTextWriter writer,
    > Boolean extractRows, Boolean tableLayout) +223
    >
    > System.Web.UI.WebControls.DataList.System.Web.UI.WebControls.IRepeatInfoUser.RenderItem(ListItemType
    > itemType, Int32 repeatIndex, RepeatInfo repeatInfo, HtmlTextWriter writer)
    > +54
    >
    > System.Web.UI.WebControls.RepeatInfo.RenderVerticalRepeater(HtmlTextWriter
    > writer, IRepeatInfoUser user, Style controlStyle, WebControl baseControl)
    > +1069
    > System.Web.UI.WebControls.RepeatInfo.RenderRepeater(HtmlTextWriter
    > writer, IRepeatInfoUser user, Style controlStyle, WebControl baseControl)
    > +24
    > System.Web.UI.WebControls.DataList.RenderContents(HtmlTextWriter writer)
    > +398
    > System.Web.UI.WebControls.BaseDataList.Render(HtmlTextWriter writer) +27
    > System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +241
    > System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
    > System.Web.UI.Control.Render(HtmlTextWriter writer) +7
    > System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +241
    > System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
    > System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter
    > writer) +44
    > System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +261
    > System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +241
    > System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
    > System.Web.UI.Control.Render(HtmlTextWriter writer) +7
    > System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +241
    > System.Web.UI.Page.ProcessRequestMain() +1880
    >
    >
    >
    >
    >
    >
     
    Patrick.O.Ige, Jul 2, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Simon Harris
    Replies:
    0
    Views:
    6,382
    Simon Harris
    May 10, 2005
  2. Stanimir Stamenkov
    Replies:
    1
    Views:
    2,476
    Stanimir Stamenkov
    Aug 17, 2005
  3. Pavel
    Replies:
    2
    Views:
    1,651
    Peter Flynn
    Aug 4, 2004
  4. Patrick.O.Ige
    Replies:
    4
    Views:
    2,688
    Patrick.O.Ige
    Jul 5, 2006
  5. Joe Curry

    Invalid URI: The format of the URI could not be determined.

    Joe Curry, Oct 8, 2003, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    344
    Joe Curry
    Oct 8, 2003
Loading...

Share This Page