All of the sudden I'm getting a Compliation Error on a very simple page on my site. On my dev machine it runs fine, onlyon the DASP server does iterror. Below is the error info and the code and code behind. Thanks in advance for any help! It's driving me crazy!!: _____________________________ Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: ASPNET: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl). Source Error: Code: [No relevant source lines] Source File: E:\web\erfporg0000\htdocs\AdminUserList.aspx.vb Line: 1 ___________________________________ A few things I notice: the code behind page looks like it copies up to the server with zero bytes. Here is my code: <%@ Page Language="VB" AutoEventWireup="false" CodeFile="AdminUserList.aspx.vb" Inherits="AdminUserList" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Maintain Administrative Access</title> <link href="StyleSheet.css" rel="stylesheet" type="text/css" /> </head> <center /> <form id="form1" runat="server" defaultbutton="btnAddNewAdminUser"> <div > <div > <asplaceHolder ID="phMenu" runat="server"></asplaceHolder> <table style="width: 95%"> <tr> <td align="left"> <asp:Label ID="lblMsg" runat="server" Font-Bold="True" Font-Italic="False" ForeColor="Red" Font-Names="Verdana" Font-Size="8pt"></asp:Label></td> </tr> <tr> <td style="height: 18px" align="left"> &nbsp;<asp:Label ID="lblHeader" runat="server" Font-Bold="True" Font-Size="12pt" ForeColor="Green" Text="Administrative Logins"></asp:Label></td> </tr> <tr> <td align="left"> &nbsp;<asp:Button ID="btnAddNewAdminUser" runat="server" Font-Bold="True" Font-Names="Verdana" Font-Size="7pt" ForeColor="#004000" Text="Add New Administrator" Width="155px" /></td> </tr> <tr> <td align="left"> <asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333" DataKeyNames="UserID" GridLines="None" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="dsAdminUser"> <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" /> <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" /> <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" /> <HeaderStyle BackColor="#339933" Font-Bold="True" ForeColor="White" /> <RowStyle BackColor="#E3EAEB" Font-Size="X-Small" /> <EditRowStyle BackColor="#7C6F57" /> <AlternatingRowStyle BackColor="White" /> <Columns> <asp:HyperLinkField DataNavigateUrlFields="UserID" DataNavigateUrlFormatString="~/AdminUserAdd.aspx?UserID={0}" DataTextField="UserName" SortExpression="UserName" HeaderText="User Name" NavigateUrl="~/AdminUserAdd.aspx" > <HeaderStyle Font-Size="X-Small" /> </asp:HyperLinkField> <asp:BoundField DataField="Password" HeaderText="Password" SortExpression="Password" Visible="False" /> <asp:BoundField DataField="EmailAddress" HeaderText="Email Address" SortExpression="EmailAddress" > <HeaderStyle Font-Size="X-Small" /> </asp:BoundField> </Columns> </asp:GridView> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> </table> </div> <asp:SqlDataSource ID="dsAdminUser" runat="server" ConnectionString="<%$ ConnectionStrings:WCRFPConnectionString1 %>" SelectCommand="SELECT [UserID], [UserName], [Password], [EmailAddress] FROM [tbUser] WHERE ([UserLevel] = @UserLevel) ORDER BY [UserName]"> <SelectParameters> <asparameter DefaultValue="0" Name="UserLevel" Type="Int16" /> </SelectParameters> </asp:SqlDataSource> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div> </form> </body> </html> _______________________________________________________________________ Here's the code-behind: Partial Class AdminUserList Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim myUtil As New UserDP Dim c1 As Control If Not myUtil.UserHasPermission(0, Session("UserID")) Then Response.Redirect("default.aspx?msg=You%20are%20not%20authorized%20to%20view%20this%20page") '*** load header c1 = LoadControl("MenuTEMSS.ascx") phMenu.Controls.Add(c1) If Not Page.IsPostBack Then btnAddNewAdminUser.Focus() lblMsg.Text = Request.QueryString("msg") End If End Sub Protected Sub btnAddNewAdminUser_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAddNewAdminUser.Click Response.Redirect("AdminUserAdd.aspx?UserID=0") End Sub End Class Ali Ibarguen BluePrint PM, LLC blueprintpm.com
Hi, It appears you have not sync'd all of the files local to remote. Can you perform a local to remote file sync? (i.e. VS Copy Website) Salute, Mark Post Edited (wisemx) : 10/1/2008 10:46:53 PM GMT
Mark: I actually did a full Publish from Visual Studio to the site and nowit works. I think it has the same effect?! thanks VERY much. I'm so happy- Ali Ali Ibarguen BluePrint PM, LLC blueprintpm.com