2006/11/03

AJAX.NET 1.0 Beta AutoCompleteExtender 無法作用的問題

搞了二天才找到問題的答案....
在這裡把一些問題匯整一下><
  1. 安裝了ASPAJAXExtSetup.msi之後,想要有AutoCompleteExtender,還要再加裝ASPAJAXCTP.msi
  2. 在原本的網站方案裡,加入ScriptManager會發生找不到項目的問題,請更改web.config的pages control,把「add tagprefix="asp"」改成「add tagprefix="ajax"」就可以用了(聽說這是個bug,畢竟還在beta版)
  3. 在取得資料的WebService中,加入

[Microsoft.Web.Script.Services.ScriptService]

public class AutoCompleteService : System.Web.Services.WebService {

......


大功告成!!

請參考下列網址:
ASP.NET Forums - AutoCompleteExtender not working for me in Beta 1.0

2006/08/28

[SQL]安裝SQL 2005 SP1時發生的怪問題

為什麼要裝SQL 2005 SP1呢?
因為不裝SP1就無法使用匯入資料的功能,會出現「產品層級不夠」的錯誤訊息....

找到解決方案了,高高興興的去下載SP1來安裝,安裝到最後卻發生「Unable to install Windows Installer MSP file」的錯誤....

不想多說了,看這裡吧><....BUG: Error message when you try to install SQL Server 2005 Service Pack 1: "Unable to install Windows Installer MSP file"

沒有Google的世界該怎麼辦呀!!

2005/01/30

[SQL]Setup Replication 時發生「Could not connect to server [ServerName] because 'distributor_admin' is not defined as a remote login at the server.」

在SQL 2000建立發行集時,發生以下錯誤:

Could not connect to server [ServerName] because 'distributor_admin' is not defined as a remote login at the server.

可能是安裝完SQL Server後又變更Windows Server的Server Name所導致,請執行以下指令確認一下:

SELECT @@Servername
GO
SELECT SERVERPROPERTY('ServerName')

如果兩個結果出來的不一樣,代表問題的原因就如我所說的,執行以下指令將Server Name改過來

Use Mastergo
Sp_DropServer 'OldServerName'
GO
Use Master
GO
Sp_Addserver 'YourServerNameNow', 'local'
GO

再去設定一次Replication應該就可以了...

軟體工程的重要的指標