Hi,
While trying to run my app im getting the error Could not find a part of the path "c:\inetpub\wwwroot\Do not Delete\dbglobal.config".
I checked and found that there is no Important_Do not Delete folder inside the wwwroot.
The error occurs when i try to use the following code:
//inside my test.aspx
private void Page_Load(object sender, System.EventArgs e)
{
if(!Page.IsPostBack)
{
Users users = new Users(strConnString);// where Users is a defined class.
DataView dv = users.AuthenticateUser("abcd");
}
}
//inside my Users.cs
public DataView AuthenticateUser(string UserName)
{
ArrayList al = null;
DataSet ds = null;
DataView dv = null;
Access myAccess= null;// Access is my class which has all the SQL coommands.
UserName = Utils.EbayUserName(UserName);
try
{
al = new ArrayList();
al.Add(DataAccess.AddSqlParameter("username", DbType.String, UserName));
myAccess = new DataAccess(strConnString);
ds = myAccess.ExecuteDataset(CommandType.StoredProcedur e, "AuthenticateUser", ref al);// AuthenticateUser is the storedproc.This is where the error ocuurs and goes to catch.
dv = ds.Tables[0].DefaultView;
}
catch(Exception ex)
{
throw new Exception(ex.Message.ToString());
}
finally
{
//code to run..
}
return dv;
}
PLease help; PLease note this is in 1.1framwrk.
Thankx