locked
IIS not using MSDE RRS feed

  • Question

  • User39338144 posted
    I am new to ASP.net and have created a page that work great if I run it from within the ASP.NET Web Matrix using the ASP.NET Matrix server (port 8080) but If I choose to run it using the IIS virtual root I get errors and when I debug it I find that it is not using the MSDE it is returning everything not just html and the browser doesn't know what to do with it. Can anyone help me figure out what to do? I am running Windows XP Professional.
    Sunday, November 7, 2004 10:34 AM

All replies

  • User989702501 posted
    No ideas, but the exact error msgs and event log error (if any) would be helpful to troubleshoot.
    Sunday, November 7, 2004 9:18 PM
  • User39338144 posted
    <color="#6633cc">Edited by SomeNewKid. Please post code between </color><color="#000000"><</color>code><color="#6633cc"> and </color><color="#000000"><</color>/code><color="#6633cc"> tags.</color>
    When using IIS the page loads but does not show the Form input fields (Web control text box & web control dropdown list) and has this script error. Lline: 4 Character: 9 Error: Expected ';' Code: 0 URL: http://localhost/intro6.aspx/intro6.aspx Here is what is returned to the browser when I view the source. <%@ Page Language="vb" %> <script runat="server"> Sub SubmitBtn_Click(Sender As Object, E As EventArgs) Message.Text = "Hi " & HttpUtility.HtmlEncode(Name.Text) & ", you selected: " & Category.SelectedItem.Text End Sub </script> <center> <form action="intro6.aspx" method="post" runat="server">

    Name: <asp:textbox id="Name" runat="server"></asp:textbox> Category: <asp:dropdownlist id="Category" runat="server"> <asp:listitem >psychology</asp:listitem> <asp:listitem >business</asp:listitem> <asp:listitem >popular_comp</asp:listitem> </asp:dropdownlist>

    <asp:button id="Button1" onclick="SubmitBtn_Click" runat="server" text="Lookup"></asp:button> </form> </center>
    It just seems to me like the MSDE is not working when I use IIS but does work when I use the ASP.NET Web MAtrix Server (port 8080)
    Sunday, November 7, 2004 11:31 PM
  • User989702501 posted
    a) Error: Expected ';' that's your code error. b) do you installed .net framework in the IIS box ? if you browse and it return the code, then it's not compile, IIS just dump the text to you. test a simple hello world aspx before testing your app.
    Monday, November 8, 2004 1:06 AM
  • User39338144 posted
    I have gone around trying several things and have it working now. What I ended up doing was uninstalling both the .net frame work and the IIS, Rebooted and then installed them again. I didn't get any kind of error messages the first time or this time when I installed either of them. But I was able to browse to a local asp.net page and everything was fine. What I can say that tripped me up a little was from the ASP.NET Web Matrix was when I would run the page using the "Use or create an IIS virtual root" It requires a application name be entered. I was putting in the name of the asp.net file name this would produce an error. If I put in the directory name it works fine. This was not apparent to me because the first line of the window shows the application directory. I am not sure if anyone else has had this issue or not but I thought I would post my finding so that it might help someone else. JNB626
    Wednesday, November 10, 2004 8:15 PM
  • User989702501 posted
    Thanks for the update, application name should be independent from the application. I can't repro your error on an IIS box.
    Thursday, November 11, 2004 8:40 PM