Configuration :: LinkButtons Not Working When Clicked - 404 - File Or Directory Not Found
Nov 9, 2010
So I have a strange problem. I have 2 LinkButtons on a form with their OnCommand event attached. Everything works fine locally when debugging but when I publish the web site with I get the following error:
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
I also tried the OnClick event but I get the same results.
This is being published to IIS 7.
The OnCommand is just doing a redirect. I can manually do the redirect by entering the url the same way it's passed to redirect and it works fine. I also tried putting some code in just to verify that the event really gets called on the server and it seems it doesn't. Although it does work fine locally. I also tried removing all the files from the server and doing a clean publish just to make sure I wasn't missing anything.
View 4 Replies
Similar Messages:
Jun 19, 2012
I am using a FileUpload to upload an excel file to the sql server 2008 database.I am using Visual Studio 2010. My code is If FileUpload1.HasFile Then
Try
Dim path As String = Server.MapPath("~/")
FileUpload1.SaveAs(path + FileUpload1.FileName)
Message2.Text = "File name: " & _
FileUpload1.PostedFile.FileName & "<br>" & _
"File Size: " & _
FileUpload1.PostedFile.ContentLength & " kb<br>" & _
"Content type: " & _
[code]...
and SqlBulkCopy to store the file into the database.It works fine with the local machine.When I try to publish it in the server I received the following error:
404 - File or directory not found.The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
View 1 Replies
Feb 10, 2010
wat is the error about?
i'm sure my path is correct.
[code]....
View 11 Replies
Oct 15, 2010
i created a site using asp.net, i got hosting space and uploaded my files, as per my process i ll send the Email verification link to users mail id with link to my site, if they click the link they will directly redirect to my site's registration page.it's working fine in my local iis and in visual studio, but in the host i'm getting error as Server Error 404 - File or directory not found.The resource you are looking for might have been removed, had its name changed, or is temporarily unavailabl
View 17 Replies
Jul 17, 2010
strFilePath = Directory.GetCurrentDirectory();
strFilePath = Directory.GetParent(strFilePath).ToString();
strFilePath = Directory.GetParent(strFilePath).ToString();
strFilePath = strFilePath + "\ACH" + "/ACHFile.txt";
StringBuilder sb = new StringBuilder();
StreamWriter sw = new StreamWriter(strFilePath);
if i browse for a text file and displays it in the text box and trying to save it as the name provided above i am getting the error as Directory Not Found Exception.
View 2 Replies
Jun 30, 2010
I have a web application and I'm using asp.net routing. When I publish it with the Only files needed to run this application selected it gives me an error when I'm loading any of the page "HTTP Error 404 - File or directory not found."
but if I choose publish All files it works fine.
Do you know how to resolve this issue?
View 1 Replies
Mar 22, 2011
I have made a virtual directory in IIS 7.5 but still unable to catch the required path. I need to save uploaded files inside a folder which i created as virtual directory but still it is showing error like- "Could not find the path..
View 3 Replies
Nov 28, 2012
I have an asp.net webproject that I inherited from another guy here at my ccompany. Before he left, we got the site to work in dev. Now that he has gone I try and run it again and I get the following error:
Development configuration file was not found
I have changed absolutely nothing in the code.
View 4 Replies
Oct 30, 2010
I have a fairly big ASP.NET 3.5 website that refuses to open any page via the 'View in Browser' option of VS2010, i.e. the LocalHost facility does not work. All I get is a 'File Not Found' error.
Two other ASP.NET 4.0 sites (which are much simpler and do not have any SQL Server connections) can be viewed without any problem via the LocalHost service.
View 9 Replies
Jun 29, 2010
I am using ItextSharp and I am getting a new font for it by doing this
[Code]....
That file is in that directory on both my dev machine and the server. When i run this on my dev machine it works fine, when published to my server I get an error saying FREE3OF9.TTF is not found as a file or a resource. I have double and triple checked that the file is in fact there on my server. My application has full trust on IIS. and IIS user has full access to this folder and this file.And still I get this error. Very frustrating. This code is Not inside the Web Application but inside a DLL class library that the web application is referencing. Do I need to add any more special permissions or something?
View 10 Replies
Sep 16, 2010
I am developing an application which is running fine on local machine. It is using webservices and jquery's ajax to call that service. It also has some asp hidden fields. I deploy it with visual studio. It is giving me error that the resource I am looking for is not found.
View 2 Replies
Jan 27, 2010
I am building a website using ASP.net ajax. there are 3 <asp:panel> controls in the page and each contains a number of dynamic linkbuttons. these panels are contained in a <asp:updatepanel> control the page_load event fills out the first panel with linkbuttons and assigns cooresponding commandName commandArgument for them, that works. then the first panel's linkbuttons triggers the command and fill out the second panel with linkbuttons, that works too. then the seond panel's linkbuttons are supposed to fill out the third panel with linkbuttons, but that doesn't work anymore, and it seems like doing the page_load event again and filling out the first panel and the second panel's linkbuttons disppear, just like the first time the page is loaded.
[code]....
View 6 Replies
Jul 22, 2010
I could see the following system.workflow.runtime reference in my solution but facing error "metadata file system.workflow.runtime could not be found" when ever i compile the project,
View 1 Replies
Apr 15, 2010
I've just setup a new site on my IIS6 and I'm experiencing the following problem:
I can run normal HTML pages, but no .aspx files. If I call the aspx page directly I get a 404 - file not found - error message. This only happens with .aspx files.
View 5 Replies
Nov 25, 2010
I am really stumped on this. I have IIS setup on my local box, and a virtual directory pointed to the folder MapBuilder. IUSR and IWAM have been given full access. When I run this through web developer, everything works great. When I access it through IIS, the following error is generated:
[Code]....
The line of code that generates the error is:
[Code]....
If I change the code to use a virtual directory I get the same basic error on the Overview.Save call:
[Code]....
View 2 Replies
Jan 15, 2011
My application stop due to this error: the filename, directory name or volume label syntax is incorrect.
Before all was working well. i made one small change and update the project in live server and this error started.
i tried the below solution but still same.
[URL]
When i rollback and run the old working project same error continue...
View 1 Replies
Aug 11, 2010
fileupload control doesnt allow to select multiple files, then what i did , i select a file of directory and by coding i got its directory path. and showing all files of that directory in checklistbox control.So now user can select multiple files and can send selected file. I know its not a proper way, but i am getting a control that can allow me to select multiple files, If you let me know about the control that will allow me to do that , then this is what my onlyOk come to my problem with fileupload control, it works fine when run locally. but at other location its giving me a exception of path is invalid and file not found and one more thing its looking for this location "Could not findfile 'c:windowssystem32inetsrv"
View 2 Replies
Nov 30, 2010
In the root directory my web.config is doing the job of loggin in people to a website.
I don't need this behaviour in a directortory of the root directory. How do I solve this problem?
This are the authentication thins in my web.config:
[code]....
View 1 Replies
Jan 6, 2011
I created a default website from Visual Studio 2010 but it works only when I deploy it on to the root directory. It fails when I publish it onto a sub directory.
An example will be
[URL]- works
Description: An error occurred during the parsing of a resource required to service this request. review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'MyWebPage.SiteMaster'.
Source Error:
[Code]....
View 2 Replies
Sep 22, 2010
We have a problem where in the user can download files from an email. A link that will redirect to a page where the code to download the file resides. Before the download the user needs to be logged in to the system for security. The problem is that sometimes for whatever reason when the user clicks the link the download dialog box does not appear and just a blank white page. It happens only on our staging environment where we have 3 servers.. We can't reproduce this in our dev and test env. where we only have one server.
Below is the actual code.
[Code]....
View 8 Replies
Jul 19, 2010
i have doen my application as follows.. A tree view which looks like that picture Now if i select select the text file i will have a image as Now what i am getting is if i select browse i will select a file and when i click back on the tree node for example AchFile i am getting the error as Directory not found. This issue is raising if i select a text file and click back on what i said.
View 1 Replies
Nov 29, 2010
I'm having an incredibly hard time with this, I'm really new to it. I'm creating a website for free web graphics and I would like to add data to my database whenever more files are added to my server. I've found a way to list all the files in the directory:
[Code]....
View 3 Replies
Aug 19, 2010
why the system does not recognize DirectoryEntry in the code below? It indicates DirectoryEntry cannot be found.
[Code]....
View 2 Replies
Aug 31, 2010
I have a link as template column in my customgrid and it is defined as:
<a
target="_blank"
href="<%=ApplicationPath.VirtualPath%>ShowTemplate/<%#
Eval("Recid") %>"
>View Details</a>
On clicking this link, a document should be opened. It is working fine in my local. While it is built and run on server it is showing:
The page cannot be found. The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
View 6 Replies
Nov 18, 2010
i justed moved our projects from vs2008 to vs2010. we are developing a setup project using wix. when i saw the prerequisites for our bootstrapper some are missing and i placed those missed prerequisites in the folder C:Program FilesMicrosoft SDKsWindowsv7.0ABootstrapperPackages. But still it showing the same message. Those missed prerequisites are office2003 pia redistributable and 2007 pia and also microsoft visualstudio tools for office runtime redistributable.
View 1 Replies