Click here to Skip to main content
15,039,525 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
I am trying to test a web site on BigRock server.
After clicking on FileUploader and clicking on button i am getting the following Error.
I am able to do it in Local server but not in BigRock.

"
HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly."

What I have tried:

This is the sample code in Local server.


protected void gridView1_OnRowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName.ToString() == "DeleteDetails")
{
try
{
DataTable newdt = new DataTable();
newdt = (DataTable)Session["EMD_DOC_ATTACH"];
var rows = newdt.Select("ID LIKE '" + e.CommandArgument + "'");
foreach (var row in rows)
{
string[] fileNames = Directory.GetFiles(@Server.MapPath("~/EMD_DOC_ATTACH/"));
foreach (string fileName in fileNames)
{
//fileName.Substring(@Server.MapPath("~/TenderDocs/").Length);
if (fileName == @Server.MapPath(e.CommandArgument.ToString()))
{
File.Delete(fileName);
hdntenderFilePath.Value = "0";
}
}
row.Delete();
}
Session["EMD_DOC_ATTACH"] = newdt;
GridView1.DataSource = newdt;
GridView1.DataBind();

}
catch
{
}
}
}
Posted
Comments
Patrice T 30-Aug-18 1:49am
   
What server admin said ?
harish kashyap01 30-Aug-18 7:50am
   
HI,
Thank you for the reply.

it is showing following Error Message.


"HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly."
Patrice T 30-Aug-18 7:55am
   
What said the admin of server ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900