Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

The IListSource does not contain any data sources.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Walid - 13 Sep 2007 00:26 GMT
Hello:

I have migrated a site from IIS5 to IIS6.  The site is configured and the we
app is installed on the new IIS site.  I can get to the web page but when I
try to login, this is what I get the following error below.  I would
appreciate any insight, direction or help regarding this.

Thank-you!!

Walid

************************************************************************************************************************
Server Error in '/' Application.
--------------------------------------------------------------------------------

The IListSource does not contain any data sources.
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.Web.HttpException: The IListSource does not
contain any data sources.

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:

[HttpException (0x80004005): The IListSource does not contain any data
sources.]
  System.Web.UI.DataSourceHelper.GetResolvedDataSource(Object dataSource,
String dataMember) +376
  System.Web.UI.WebControls.ListControl.OnDataBinding(EventArgs e) +75
  System.Web.UI.Control.DataBind() +26
  T5DB.StartPage.Page_Load(Object sender, EventArgs e) +259
  System.Web.UI.Control.OnLoad(EventArgs e) +67
  System.Web.UI.Control.LoadRecursive() +35
  System.Web.UI.Page.ProcessRequestMain() +739
************************************************************
************************************************************
OZI - 13 Sep 2007 01:34 GMT
Did you trace your code and see where it is failing
somehow your data binding is failing, you are not getting data or something.
Limited info given.

OZI

> Hello:
>
[quoted text clipped - 44 lines]
> ************************************************************
> ************************************************************
Walid - 13 Sep 2007 14:44 GMT
Thank-you for replying!
I am very new to .NET and programming, very new :-)  How can I trace my
code?  What more information can I provide to get some more help?  Your
assistance is much appreciated.

Walid

> Did you trace your code and see where it is failing
> somehow your data binding is failing, you are not getting data or something.
[quoted text clipped - 50 lines]
> > ************************************************************
> > ************************************************************
OZI - 13 Sep 2007 15:57 GMT
Simply put,

set a BreakPoint ( need be in Debugging mode and not in Release Mode) in
your Page_Load event handler.  Read about debugging and how to set a
breakpoint if you don't know how.
use F11 to step through the code line by line, to narrow down where the
error is occurring.
use F10 to step over etc...

I am assuming you are getting some data from a database to authenticate the
user etc..
check if you are getting any data back if you expecting data back.
You said that things break after you try to login,  are you being
authenticated?

Without seeing any code it is very difficult to help you out.

OZI

> Thank-you for replying!
> I am very new to .NET and programming, very new :-)  How can I trace my
[quoted text clipped - 63 lines]
>> > ************************************************************
>> > ************************************************************
Walid - 13 Sep 2007 22:40 GMT
Ozi,
Here is the code:

<%@ Register TagPrefix="uc1" TagName="T5DBHeader" Src="T5DBHeader.ascx" %>
<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="StartPage.aspx.vb" Inherits="T5DB.StartPage"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
    <HEAD>
        <title>StartPage</title>
        <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
        <meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
        <meta name="vs_defaultClientScript" content="JavaScript">
        <meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
        <script language="JavaScript">
        <!--
        /***********************************************
        * Auto Maximize Window Script- © Dynamic Drive (www.dynamicdrive.com)
        * This notice must stay intact for use
        * Visit http://www.dynamicdrive.com/ for this script and 100's more.
        ***********************************************/
        top.window.moveTo(0,0);
        if (document.all) {
        top.window.resizeTo(screen.availWidth,screen.availHeight);
        }
        else if (document.layers||document.getElementById) {
        if (top.window.outerHeight < screen.availHeight||top.window.outerWidth <
screen.availWidth){
        top.window.outerHeight = screen.availHeight;
        top.window.outerWidth = screen.availWidth;
        }
        }
        //This code maximizes window-->
        </script>
        <script language="JavaScript">
<!--Hide
function CountryNotInit(form)
{
    form.AppendixDownList.options[0].selected = true;
    form.QueryDownList1.options[0].selected = true;
}

function AppendixNotInit(form)
{
    form.CountryDropDownList1.options[0].selected = true;
    form.QueryDownList1.options[0].selected = true;
}
function QueryNotInit(form)
{
    form.CountryDropDownList1.options[0].selected = true;
    form.AppendixDownList.options[0].selected = true;
    //ShowQueryControls(form);
}

//function ShowQueryControls(form)
//{
//    document.Form1.ddlTest.style.visibility="hidden";
//    form.ddlTest.style.visibility="hidden";
//}

function RedirectToNewWindow()
{
var setSize='height=' + screen.height + ',' + 'width=' + screen.width +
',top=0,left=0,<BR>scrollbars=yes,resizable=yes,toolbar=yes,status=yes,menubar=yes';

if (document.Form1.CountryDropDownList1.options[0].selected == false)
    {
        window.open("NewWindowRedirector.aspx?CID=" +
document.Form1.CountryDropDownList1.options[document.Form1.CountryDropDownList1.selectedIndex].value,"_blank",setSize);
        return;
    }
if (document.Form1.AppendixDownList.options[0].selected == false)
    {
        window.open("NewWindowRedirector.aspx?AID=" +
document.Form1.AppendixDownList.options[document.Form1.AppendixDownList.selectedIndex].value,"_blank",setSize);
        return;
    }
if (document.Form1.QueryDownList1.options[0].selected == false)
    {
        window.open("NewWindowRedirector.aspx?QID=" +
document.Form1.QueryDownList1.options[document.Form1.QueryDownList1.selectedIndex].value,"_blank",setSize);
        return;
    }
}

// End Hide --->
        </script>
    </HEAD>
    <body MS_POSITIONING="GridLayout">
        <form id="Form1" method="post" runat="server">
            <uc1:T5DBHeader id="T5DBHeader1" runat="server"></uc1:T5DBHeader>
            <TABLE id="Table2" style="Z-INDEX: 102; LEFT: 8px; POSITION: absolute;
TOP: 248px; HEIGHT: 208px"
                width="100%" border="0">
                <TR>
                    <TD style="HEIGHT: 42px" tabIndex="3" vAlign="middle" align="center">
                        <DIV style="WIDTH: 786px; POSITION: relative; HEIGHT: 56px"
ms_positioning="GridLayout">
                            <asp:dropdownlist id="AppendixDownList" style="Z-INDEX: 102; LEFT:
56px; POSITION: absolute; TOP: 32px"
                                tabIndex="6" runat="server"
OnSelectedIndexChanged="ChangeAppendixItem"
onChange="AppendixNotInit(this.form);"
                                AutoPostBack="false" Width="536px" BackColor="White" Height="14px"
Font-Size="XX-Small">
                                <asp:ListItem Value="0">SELECT AN APPENDIX</asp:ListItem>
                                <asp:ListItem Value="2">Appendix 2 (Gateway International Service
Center/Exchange Office Country Distribution Listing)</asp:ListItem>
                                <asp:ListItem Value="3">Appendix 3 (International Service
Centers/Exchange Offices)</asp:ListItem>
                                <asp:ListItem Value="5">Appendix 5 (International Air Mail Carrier
Code List)</asp:ListItem>
                                <asp:ListItem Value="6">Appendix 6 (IATA Airport Codes)</asp:ListItem>
                            </asp:dropdownlist>
                            <asp:dropdownlist id="QueryDownList1" style="Z-INDEX: 103; LEFT:
336px; POSITION: absolute; TOP: 8px"
                                tabIndex="7" runat="server" OnSelectedIndexChanged="ChangeQueryItem"
onChange="QueryNotInit(this.form);"
                                AutoPostBack="false" Width="304px" BackColor="White" Height="24px"
Font-Size="XX-Small">
                                <asp:ListItem Value="0">SELECT A QUERY</asp:ListItem>
                                <asp:ListItem Value="1">Routing Restrictions</asp:ListItem>
                                <asp:ListItem Value="2">Variation in Routing
Restrictions</asp:ListItem>
                                <asp:ListItem Value="3">Countries Not Honoring a Specific Mail
Type</asp:ListItem>
                                <asp:ListItem Value="4">Services Available for a
Country</asp:ListItem>
                            </asp:dropdownlist>
                            <asp:button id="btnSubmit" style="Z-INDEX: 104; LEFT: 664px;
POSITION: absolute; TOP: 32px"
                                onclick="btnSubmit_Click" tabIndex="8" runat="server" Width="57px"
BackColor="White" Height="21px"
                                Font-Size="XX-Small" Font-Bold="True" Text="Submit"
ForeColor="OrangeRed" Font-Names="Arial"
                                Visible="False"></asp:button><a href="#"
onclick="javascript:RedirectToNewWindow();"><INPUT style="Z-INDEX: 106; LEFT:
664px; WIDTH: 88px; POSITION: absolute; TOP: 8px; HEIGHT: 24px"
                                    type="button" value="Submit"></a>
                            <asp:dropdownlist id="CountryDropDownList1" style="Z-INDEX: 107;
LEFT: 16px; POSITION: absolute; TOP: 8px"
                                tabIndex="5" runat="server"
OnSelectedIndexChanged="ChangeCountryItem"
onChange="CountryNotInit(this.form);"
                                Width="312px" DataValueField="ctry_id" DataTextField="ctry_name"
BackColor="White" Height="32px"
                                Font-Size="XX-Small">
                                <asp:ListItem Value="0" Selected="True">SELECT A
COUNTRY</asp:ListItem>
                            </asp:dropdownlist></DIV>
                        <DIV style="WIDTH: 393px; POSITION: relative; HEIGHT: 48px"
ms_positioning="GridLayout">
                            <asp:HyperLink id="hlSubscribe" style="Z-INDEX: 100; LEFT: 40px;
POSITION: absolute; TOP: 8px"
                                runat="server" Font-Size="X-Small" Font-Names="Arial"
Font-Bold="True" Target="_blank"
NavigateUrl="Subscribe.aspx">Subscribe</asp:HyperLink>
                            <asp:HyperLink id="hlPrinting" style="Z-INDEX: 101; LEFT: 176px;
POSITION: absolute; TOP: 8px"
                                runat="server" Font-Size="X-Small" Font-Names="Arial"
Font-Bold="True" Target="_blank"
NavigateUrl="PrintPageCountrySelection.aspx">Printing</asp:HyperLink>
                            <asp:HyperLink id="hlFeedbackEmail" style="Z-INDEX: 102; LEFT: 288px;
POSITION: absolute; TOP: 8px"
                                runat="server" Font-Size="X-Small" Font-Names="Arial"
Font-Bold="True" NavigateUrl="mailto:dashs@ccmi.us"
                                Target="_blank">Feedback</asp:HyperLink></DIV>
                        <DIV style="DISPLAY: inline; WIDTH: 416px; HEIGHT: 17px"
ms_positioning="FlowLayout"><FONT face="Arial" size="1">
                                Click Subscribe to notification for receiving a daily/weekly/monthly
summary of
                                changes to the country pages and appendices.</FONT></DIV>
                        <br>
                        <DIV style="DISPLAY: inline; WIDTH: 232px; HEIGHT: 17px"
ms_positioning="FlowLayout"><FONT face="Arial" size="1">Click
                                Print to print a selection of country pages.</FONT></DIV>
                    </TD>
                </TR>
            </TABLE>
            <asp:button id="butTrace" style="Z-INDEX: 101; LEFT: 600px; POSITION:
absolute; TOP: 16px" onclick="butTrace_click"
                runat="server" Font-Size="XX-Small" Height="18px"
BackColor="MidnightBlue" Visible="False"
                ForeColor="Red" Text="Trace is Off" Font-Bold="True" ToolTip="Click to
turn trace on or off"
                BorderColor="White"></asp:button>
            <TABLE id="Table1" style="Z-INDEX: 103; LEFT: 8px; POSITION: absolute;
TOP: 120px; HEIGHT: 88px; TEXT-ALIGN: center"
                cellSpacing="1" cellPadding="1" width="100%" border="0">
                <TR>
                    <TD style="HEIGHT: 22px" vAlign="middle" align="center">
                        <asp:Label id="lblHeading" runat="server" Font-Size="Large"
ForeColor="Blue" Font-Bold="True"></asp:Label></TD>
                </TR>
                <TR>
                    <TD vAlign="middle" align="center">
                        <asp:Label id="lblSubHeading" runat="server" Font-Size="Medium"
Font-Bold="True" Height="16px"
                            Width="100%"></asp:Label></TD>
                </TR>
                <TR>
                </TR>
            </TABLE>
        </form>
        <!--Removed from QueryDropDownList -->
        <!--                                <asp:ListItem Value="5">Service and Mail Type</asp:ListItem>-->
        <!--                                <asp:ListItem Value="6">Country to Gateway</asp:ListItem>-->
    </body>
</HTML>

> Simply put,
>
[quoted text clipped - 82 lines]
> >> > ************************************************************
> >> > ************************************************************
OZI - 13 Sep 2007 22:49 GMT
Walid,

This is the markup with JavaScript,

do you have any code behind?
after your login where are you redirected to what page.
in that page place a break point and trace.

OZI.

> Ozi,
> Here is the code:
[quoted text clipped - 301 lines]
>> >> > ************************************************************
>> >> > ************************************************************
Walid - 14 Sep 2007 14:48 GMT
This is the page that I get the error.  When I login, I get to this page and
the error comes up.  On a working server, the same page comes up after I
login.

Thanks for you help!

> Walid,
>
[quoted text clipped - 279 lines]
> >> >> > about
> >> >> > the error and where it originated in the code.
OZI - 14 Sep 2007 19:23 GMT
Where is the code behind on this page? Do you have any?
are you accessing a DATABASE?

OZI

> This is the page that I get the error.  When I login, I get to this page
> and
[quoted text clipped - 296 lines]
>> >> >> > about
>> >> >> > the error and where it originated in the code.
Walid - 14 Sep 2007 20:06 GMT
Ozi,

Yes, the application is accessing a SQL database which I believe is defined
within the code (I believe it is defiend in the web config file).  I don't
know what you mean the code behind this page.  I thought what I sent you is
the code.  How can I find where the code behind this page is?  

Thanks for your patience!

> Where is the code behind on this page? Do you have any?
> are you accessing a DATABASE?
[quoted text clipped - 274 lines]
> >> >> >> >
> >> >> >> > I have migrated a site from IIS5 to IIS6.  The site is configured
Walid - 14 Sep 2007 20:08 GMT
This is working on the production box which is running IIS5 on Windows 2000
server.  We are migrating the site to Windows 2003 Server IIS6.  So, after I
migrate the site through the IIS migration tool, compared all IIS settings,
the site does not work on the new IIS6 server.

> Where is the code behind on this page? Do you have any?
> are you accessing a DATABASE?
[quoted text clipped - 274 lines]
> >> >> >> >
> >> >> >> > I have migrated a site from IIS5 to IIS6.  The site is configured
OZI - 14 Sep 2007 23:25 GMT
You might have some security or connectivity issue form IIS6 server Server
to the Database then.
Can you ping or run some Console application or something from the Server
where IIS resides to test if you can actually talk to the Database at all

OZI

> This is working on the production box which is running IIS5 on Windows
> 2000
[quoted text clipped - 302 lines]
>> >> >> >> > I have migrated a site from IIS5 to IIS6.  The site is
>> >> >> >> > configured

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.