2010-05-05 158 views
0

我有microsoft.net 3.5應用程序,並有IIS5.1,部署網站 做我需要做什麼事aother比這部署問題在IIS 5.1

1.In IIS我創建名爲SPA的虛擬目錄,我瀏覽到位置 我的項目lacated,我在那裏添加整個項目文件(我需要添加 只bin文件和登錄頁面或我需要添加所有頁面???)

2.在asp.net文件夾我選擇了標籤版本2.0 ,,

3.當我瀏覽,我可以看到所有的網頁當我點擊的login.aspx我得到

此錯誤

[SqlException (0x80131904): User does not have permission to perform this action.] 
    System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +821651 
    System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +186 
    System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1932 
    System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +33 
    System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +172 
    System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +381 
    System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +181 
    System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +173 
    System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +133 
    System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +30 
    System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +424 
    System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66 
    System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +494 
    System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82 
    System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105 
    System.Data.SqlClient.SqlConnection.Open() +111 
    ChatTool.LoginForm.Page_Load(Object sender, EventArgs e) in D:\Chat tool_Ameya\ProjectCode\Unisys Project Testing\Unisys Project\Login.aspx.cs:25 
    System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15 
    System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33 
    System.Web.UI.Control.OnLoad(EventArgs e) +99 
    System.Web.UI.Control.LoadRecursive() +47 
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436 
+0

好像有一個與你的連接字符串的問題,而不是別的工作的鏈接。你如何連接你的數據庫? (並且請不要公開發布用戶名和密碼...) – 2010-05-05 11:49:39

+0

其mdf文件存在應用數據 – peter 2010-05-05 11:58:35

+0

connectionString =「Data Source =。\ SQLEXPRESS; AttachDbFilename = | DataDirectory | \ leaf.mdf; Integrated Security = True;用戶實例= True「 – peter 2010-05-05 12:31:11

回答