Click here to Skip to main content
16,004,836 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all of you , thanks for you "Rod Kemp" for your help in my last question.
guys i am new in asp.net , today i have problem that the pages content in my local host are OK , but when i upload them to ftp it display no thing in IE(8) , in Google chrome,Opera and Fire Fox it display the code markups !!, can u direct me guys how to solve this problem ,,??? where is the problem> is it in the web config? see the web finfig
<pre lang="xml"><?xml version="1.0"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>

    <connectionStrings>
        <add name="DBConnectionString" connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\xxxxxx.accdb;Jet OLEDB:Database Password=xxxxxxx"
            providerName="System.Data.OleDb" />
    </connectionStrings>
  <system.web>
    <compilation debug="true" targetFramework="4.0" />
    <authentication mode="Forms">
      <forms loginUrl="~WebForm.aspx" timeout="2880" />
    </authentication>
    <membership>
      <providers>
        <clear/>
        <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices"
             enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false"
             maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10"
             applicationName="/" />
      </providers>
    </membership>
    <profile>
      <providers>
        <clear/>
        <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
      </providers>
    </profile>
    <roleManager enabled="false">
      <providers>
        <clear/>
        <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />
        <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />
      </providers>
    </roleManager>
    <pages>
    <namespaces>
      <clear/>
      <add namespace="System"/>
      <add namespace="System.Collections"/>
      <add namespace="System.Collections.Generic"/>
      <add namespace="System.Collections.Specialized"/>
      <add namespace="System.Configuration"/>
      <add namespace="System.Text"/>
      <add namespace="System.Text.RegularExpressions"/>
      <add namespace="System.Linq"/>
      <add namespace="System.Xml.Linq"/>
      <add namespace="System.Web"/>
      <add namespace="System.Web.Caching"/>
      <add namespace="System.Web.SessionState"/>
      <add namespace="System.Web.Security"/>
      <add namespace="System.Web.Profile"/>
      <add namespace="System.Web.UI"/>
      <add namespace="System.Web.UI.WebControls"/>
      <add namespace="System.Web.UI.WebControls.WebParts"/>
      <add namespace="System.Web.UI.HtmlControls"/>
    </namespaces>
    <controls>
      <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    </controls>
    </pages>
  </system.web>
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
  </system.webServer>

</configuration>







i am using : vs 2010 ultimate with accdb 2007.!


thanks for your guys!!
Posted
Updated 16-Mar-10 15:16pm
v2

1 solution

ustcAmar wrote:
<forms loginurl="~WebForm.aspx" timeout="2880">


Looks like the loginUrl is not formed correctly.
loginUrl="~WebForm.aspx" backslash is missing here before page name to be directed.

Put as:
<forms loginUrl="~/WebForm.aspx" timeout="2880" />
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900