473,320 Members | 1,974 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Error: Could not find a part of the path "c:\inetpub\wwwroot\Do not Delete\

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
May 2 '07 #1
3 8455
radcaesar
759 Expert 512MB
This was the problem with the permissions.

Check the user in which you run the ASP.NET and also check the permissions which you have on that user.

Its recommended to run the application in domain user.

:)
May 2 '07 #2
This was the problem with the permissions.

Check the user in which you run the ASP.NET and also check the permissions which you have on that user.

Its recommended to run the application in domain user.

:)

Im actually deploying this on a server machine. I have my own user name and password. could u clarify when u say that to Check the user in which you run the ASP.NET. Also wat sort of permissions should i look out for.

Im a newbie to this. so plz bear with me.

Thankx,
May 2 '07 #3
radcaesar
759 Expert 512MB
You have to make changes in the web.confid file

<Identity Impersonate="true" username="Yourdomain\UrUsername" password="Password">

Then, check whether the application folder has full rights on the user u specifuied above.

For steps to set the permission refer,

http://support.microsoft.com/kb/306158

Sorry i can't explain the steps here since its a ehadache for me.


RE me if u have any issues.
May 2 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Stefan Strasser | last post by:
why is delete an expression and not a statement? (in my draft copy of the standard). I was about to ask the same question about "throw" but found an expression case of throw("return boolvalue ? 5...
13
by: gary | last post by:
Hi, We all know the below codes are dangerous: { int *p = new int; delete p; delete p; } And we also know the compilers do not delete p if p==NULL. So why compilers do not "p = NULL"...
1
by: Michael Ramey | last post by:
Hi, I'm dynamically creating a table of "delete" imagebuttons, that correspond to files on the webserver. I want to respond to clicks of these buttons, so I know to know what file to delete. ...
4
by: papaja | last post by:
Hi, I posted this on asp.net forums already, but nobody answered it. Here is direct link: http://forums.asp.net/1124640/ShowPost.aspx. Here is the question: I'm using this code in delete...
2
by: Bob Tinsman | last post by:
This problem shows up in Firefox 1.5.0.1 and Rhino 1.6R2. I've found that if I have an XML node expression that ends in a filter, I can't use it with the delete operator. In the following...
5
by: mkaushik | last post by:
Hi everyone, Im just starting out with C++, and am curious to know how "delete <pointer>", knows about the number of memory locations to free. I read somewhere that delete frees up space...
1
by: MorgyTheMole | last post by:
I have a base class: class A { protected: static void* operator new (size_t size); void operator delete (void *p); public: void Delete(); }
5
by: WaterWalk | last post by:
Hello. The question about "deleting this inside the class's member function" is discussed many times in this group and in the "C++ FAQs". But I still have two more questions. 1. Take the...
19
by: Daniel Pitts | last post by:
I have std::vector<Base *bases; I'd like to do something like: std::for_each(bases.begin(), bases.end(), operator delete); Is it possible without writing an adapter? Is there a better way? Is...
30
by: Medvedev | last post by:
i see serveral source codes , and i found they almost only use "new" and "delete" keywords to make they object. Why should i do that , and as i know the object is going to be destroy by itself at...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.