Browser Displaying "Directory Listing -- /"?
Dec 20, 2010
I'm developing the most simple ASP.NET application which is giving me an annoying error.
I'm having a textbox- and a button-control, where I would like the text in the textbox to be saved to a database table when clicking the button. The text will be propagated to the database by means of a WCF service.
Since I'm a rather mediocre programmer, I tend to get errors now and then which results in lots of error messages displayed in the browser. That I can understand. I fix them and build my solution and press F5 to get going. But after fixing the errors, everytime the browser displays a directory listening like the one below instead of my astonishing UI.
Directory Listing -- /
Monday, December 20, 2010 10:10 PM <dir> bin
Saturday, December 18, 2010 10:10 PM 1,303 MainForm.aspx
Monday, December 20, 2010 10:28 PM 467 MainForm.aspx.cs
Saturday, December 18, 2010 10:09 PM 2,118 MainForm.aspx.designer.cs
Friday, December 17, 2010 10:25 PM <dir> obj
Friday, December 17, 2010 10:25 PM <dir> Properties
Sunday, December 19, 2010 10:09 PM <dir> Service References
Monday, December 20, 2010 02:01 PM 5,552 SimpleChat.csproj
Monday, December 20, 2010 02:01 PM 1,170 SimpleChat.csproj.user
Sunday, December 19, 2010 10:09 PM 1,810 Web.config
Friday, December 17, 2010 10:25 PM 1,285 Web.Debug.config
Friday, December 17, 2010 10:25 PM 1,346 Web.Release.config
Version Information: ASP.NET
Development Server 10.0.0.0
I know how to work around but its tedious: in MainForm.aspx.cs I comment the rows concerning the call to the service, then I rebuild the solution, uncomment the call to the service and rebuild the solution again. Then everything works as expected till I ran into the next bug.
View 2 Replies
Similar Messages:
Oct 27, 2010
I made a web form on a development website of mine (we'll call it dev.somewhere.com) and tried to publish it out to the web (we'll call it [URL]) in a subfolder. I named it default.aspx like I was supposed to and it worked flawlessly on the dev site. When I published it out the web, I wound up getting the following error when trying to get to the subfolder: [URL] Directory Listing Denied
This Virtual Directory does not allow contents to be listed. Confused and flustered, I tried to go to [URL], but I wound up with some error that won't tell me the problem. Instead it tells me to change the my web.config to read <customErrors mode="Off"/>.
View 1 Replies
Feb 12, 2010
has anyone got any pointers for recursively listing the directories and file structure within an FTP space with the built in .NET FTP client, ideally I would like to bind the results to a tree view at once.
View 3 Replies
Mar 11, 2010
I've just started developing a web site in VS 2008. When I try and view the page (click 'start debugging') an IE window pops up displaying a directory listing of all the files in my web application directory rather than my masterpage or content. Why is this and how can I correct it?
View 2 Replies
Jan 2, 2010
I have installed blogengine and dasblog in my system.when i try to open those pages i get the folloeing error in ,my web browser
Directory Listing Denied
This Virtual Directory does not allow contents to be listed.
View 3 Replies
May 7, 2015
How can I hide the directory listing in web-browser?
View 1 Replies
Oct 5, 2010
I have set the destinationpageurl of my login control to login.aspx. On successfully logging in to my website, I get redirected to the directory listing. Why is this? What am I doing wrong?
Also, what do I need to do to not allow the user to see the directory listing ever.
View 2 Replies
Nov 1, 2010
I've seen various tutorials and scripts online which show how to create a directory tree which list the file name, size etc.My question is, I need a script that is basically a normal directory listing but it doesn't show the file extension. If anyone can even point me in the right direction it'd be of much help!
View 28 Replies
Nov 3, 2010
I have some issues regarding listing images from inside a directory. What I want to do is to create a Default.aspx page that will search and list the images located inside a folder of my website (where I simply drop them in it). I tried with a treeview, DirectoryInfo and both worked when I compiled my website with visual studio, but when I access them via another computer, I get a 404 for the page. My bet is that iis7 is blocking my code from accessing the folder containing the images. Any idea of how to fix this and make it work ?the code I use to browse in my image folder
string path = AppDomain.CurrentDomain.BaseDirectory;
DirectoryInfo diFiles = new DirectoryInfo(AppDomain.CurrentDomain.BaseDirectory + @"contentmiscimages");
foreach (var f in diFiles.GetFiles("*.jpg"))
{
Lit.Text += "<a href="" + f + ""rel="lightbox[img]" title=" + f + ">" + f + "</a>" + "<br />"; //I format the image as an url inside a literal
}
View 1 Replies
Jan 16, 2010
I am having trouble populating two dropdownlist controls with a list of files.The controls should be loaded with a list of images and paths that are held in the IDictionary object.The dropdown controls are nested in a Formview Control under the currentmode of insert or edit.Here's a clip of my form code:
[Code]....
Here's the code behind
[Code]....
[Code]....
View 3 Replies
Dec 3, 2010
In my asp.net 3.5 web site i have default.html page defined as first default document in iis 6 web site configuration window. I have URL rewriting module written and when the request for default.htm comes its pointed to default.aspx page.
View 1 Replies
Dec 13, 2010
Iam using ftp client wrapper class for accessing ftp.
iam able to download files from ftp when used in windows application
when i try to use the same code with windows service i get an error
the error is
"The underlying connection was closed: An unexpected error occurred on a receive. "
this error i get on directory listing
the stack trace is:
[Code]....
Note:
FTP is getting connected throgh service
FTP is getting connected throug FileZilla, internet explorer
soruce code:
[Code]....
View 5 Replies
Feb 21, 2010
I am developing an ASP.NET 3.5 web application and I have a folder in the project which contains a list of documents which could be pdf or any of the MS office 2003 or 2007 supported file formats. I would like to display these files to my users as thumbnails (just like the way windows displays files). And when the user clicks on a file it has to prompt them to either save the file or open in the browser itself. How can I achieve this?
View 2 Replies
May 27, 2010
Is there a way to display pdf from local directory or database in a object tag.
My problem is I am trying to display pdf print dialog after pdf is loaded.
This is possible if I load pdf using object tag, but currently my pdf is getting loaded dynamically using response.binarywrite.
View 1 Replies
Apr 3, 2010
i placed an image control in my aspx page and asssigned an url to it,but the thing gets worse,that image is not displaying in browser.
View 3 Replies
Jul 26, 2010
I want to basically run an url which i would be generating behind the scenes without actually displaying it in browser to user...i guess i could use HTTPWebRequest or maybe something similiar to curl?...but i need to really just basically visit/run the generated url? how can i do that ?
View 4 Replies
May 19, 2010
I have a asp.net page which is checking a UNC path on a listbox item change event using Directory.exist method.
This works fine in Internet explorer.
But when i use firefox and debugging this method returns false even though the directory exists.
What could be the reason for this strange problem.
this is the code
Directory.Exists(@\SYSMHARSYSxxxxxxFilesRegionError)
when i browse from IE and put a breakpoint here it returns true.But in FF the same code returns false.Its happening only for a UNC.It returns true for a local path(eg Directory.Exists(@C: est).
Authenticatiion:
authentication mode="Windows"
identity impersonate="true"
View 2 Replies
Oct 20, 2010
As of today my gridview is no longer showing when I run it in my browser. I have made changes to the database recently but the code behind and aspx file remains the same. No errors are coming up. Just the gridview is now blank and it was working perfectly shortly before.
<asp:GridView ID="grdFixtures" runat="server" AutoGenerateColumns="False"
DataSourceID="FixturesDataSource" OnRowCommand="PushMatchID"
DataKeyNames="MatchID">
<Columns>
<asp:ButtonField ButtonType=Button CommandName=StartMatch HeaderText="Match Scoring" Text="Start" />
[Code]....
View 2 Replies
Jan 4, 2011
I have an application where ViewState is set to "true". In some pages, I can see the viewstate value at the top of the page (just below the addressbar). But this only happens in Safari browser. And when this is shown, clicking on any button in that page, it is going to some error page. In Mozilla, IE7/8, Opera it is running properly !
View 3 Replies
Mar 3, 2013
I have implemented bing Driving direction. I use Firefox, the map is load normal. but use chrome Browser, the error displaying VeMap is undefined.
<head>
<title>Driving Directions</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<style type="text/css">
li {
line-height: 1.5em;
[code].....
View 1 Replies
Jun 29, 2010
I am trying to display an employee directory on an intranet and I was using this query as a filter:
strResult = "(&(objectCategory=user)(objectClass=user)(userAccountControl=512)(company=*))"
That works - but I see employees that are checked to not be part of the global address list in exchange and I want to filter them here also - so I changed the query to this and it doesn't work:
strResult = "(&(objectCategory=user)(objectClass=user)(userAccountControl=512)(company=*)(!msExchHideAddressLists=True))"
View 3 Replies
May 27, 2013
I uploaded asp.net website in filezilla when I am trying to access that it is displaying code instead of page..
View 1 Replies
Jun 12, 2010
how can we write a code for displaying a files and folders of server directory using Grid View in asp.net?
View 3 Replies
May 5, 2010
I am using System.directory services namespace in framework 2 to query active directory. I have used fixed user account impersonisation in the web.config file, find the code:
<identity impersonate="true" userName="enterprise ang09" password="Telcome123"/>
<authentication mode="Windows"/>
I have disabled anonymous access in IIS. Also i have given Read & write access to the account tang09 for the website virtual directory and Microsoft.NET folder located in windows folder. But still i get prompted for the domain username and password to access the website.
View 4 Replies
Apr 10, 2014
I have a method who return list of data from database. i want to know how we can get value from list which is return by method.
public List<Company> GetCompanyInfo (int CompID)
{
db_CompanyDataContext obj_comp = new db_CompanyDataContext();
var Compnay_Info = from Cinfo in obj_comp.Companies where Cinfo.CompID == CompID
select Cinfo;
return Compnay_Info.ToList();
}
i am trying below mention statement but it gives error.
List<Company> cmp = sm.GetCompanyInfo(qry).ToList();
View 3 Replies