Execute SP and get error

Topics: Data Access Application Block
Aug 3, 2008 at 1:54 PM
Hi,
I write a SP that ip address IN parameter, and count of this ip address used OUT parameter
ALTER PROCEDURE  get_ip_count
    @ip_adres    VARCHAR(15),
    @count        INT OUTPUT
AS
BEGIN
    SELECT @count = COUNT(*) FROM XXX WHERE ip_adres = @ip_adres
END
And then execute this SP from Enterprise Library Data Access Manager
Database db = DatabaseFactory.CreateDatabase("mydb");
DbCommand cmd = db.GetStoredProcCommand("get_ip_count");
db.AddInParameter(cmd, "ip_adres", DbType.String, Request.UserHostAddress);
db.AddOutParameter(cmd, "count", DbType.Int32, 1);
db.ExecuteNonQuery(cmd);
But I get an error   There is no source code available for the current location

DB = SQL SERVER 2005
Enterprise Library January 2006 Version (ASP.NET 2.0)

Aug 3, 2008 at 2:26 PM
I download Enterprise Library 3.0 and reference this librarys dll at my project.
Problem has been solved.

Thanks