登陆验证的问题

在调试运行时输入用户名密码可以通过验证,但发布之后同样的用户和密码就不行.Web.config文件如下:
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings/>

<connectionStrings>
<add name="App_DataConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=\App_Data\ASPNETDB.MDF;Integrated Security=True;Connect Timeout=30;User Instance=True" providerName="System.Data.SqlClient" />

</connectionStrings>

<system.web>
<compilation debug="true" strict="false" explicit="true"/>
<pages>
<namespaces>
<clear/>
<add namespace="System"/>
<add namespace="System.Collections"/>
<add namespace="System.Collections.Specialized"/>
<add namespace="System.Configuration"/>
<add namespace="System.Text"/>
<add namespace="System.Text.RegularExpressions"/>
<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>
</pages>
<authentication mode="Forms">
<forms name="Checked" loginUrl="default.aspx" protection="All" timeout="6000" />

</authentication>
<authorization>
</authorization>
</system.web>
</configuration>
[1797 byte] By [hbalygh-care] at [2008-1-9]
# 1
ding
hbalygh-care at 2007-9-30 > top of Msdn China Tech,.NET技术,ASP.NET...
# 3
各位大哥,这个问题困扰了的两天,请帮忙解决一下!
hbalygh-care at 2007-9-30 > top of Msdn China Tech,.NET技术,ASP.NET...
# 4
ding
hbalygh-care at 2007-9-30 > top of Msdn China Tech,.NET技术,ASP.NET...
# 5
检查下数据库的路径
# 6
各们大哥帮忙看看
hbalygh-care at 2007-9-30 > top of Msdn China Tech,.NET技术,ASP.NET...
# 8
create proc p_backupdb
@dbname sysname='', --要备份的数据库名称,不指定则备份当前数据库
@bkpath nvarchar(260)='', --备份文件的存放目录,不指定则使用SQL默认的备份目录
@bkfname nvarchar(260)='', --备份文件名,文件名中可以用\DBNAME\代表数据库名,\DATE\代表日期,\TIME\代表时间
@bktype nvarchar(10)='DB', --备份类型:'DB'备份数据库,'DF' 差异备份,'LOG' 日志备份
@appendfile bit=1 --追加/覆盖备份文件
as
declare @sql varchar(8000)
if isnull(@dbname,'')='' set @dbname=db_name()
if isnull(@bkpath,'')='' set @bkpath=dbo.f_getdbpath(null)
if isnull(@bkfname,'')='' set @bkfname='\DBNAME\_\DATE\_\TIME\.BAK'
set @bkfname=replace(replace(replace(@bkfname,'\DBNAME\',@dbname)
,'\DATE\',convert(varchar,getdate(),112))
,'\TIME\',replace(convert(varchar,getdate(),108),':',''))
set @sql='backup '+case @bktype when 'LOG' then 'log ' else 'database ' end +@dbname
+' to disk='''+@bkpath+@bkfname
+''' with '+case @bktype when 'DF' then 'DIFFERENTIAL,' else '' end
+case @appendfile when 1 then 'NOINIT' else 'INIT' end
print @sql
exec(@sql)
go
# 9
ding
hbalygh-care at 2007-9-30 > top of Msdn China Tech,.NET技术,ASP.NET...
# 10
学习ing
AppleMaster at 2007-9-30 > top of Msdn China Tech,.NET技术,ASP.NET...
# 11
再次关注
hbalygh-care at 2007-9-30 > top of Msdn China Tech,.NET技术,ASP.NET...
# 12
数据库路径问题。按发布之后的需要写。
aspxcss-玩物丧志 at 2007-9-30 > top of Msdn China Tech,.NET技术,ASP.NET...