Deployed Website Shows It Folder File List?

Mar 9, 2011

I built Deployment package and feed IIS with that, but when I trying to visit my site, I see only files of root folder like FTP Whats wrong ?

View 1 Replies


Similar Messages:

C# - MVC 2 Website - Can't Get A List Of Files In The Images Folder

Jun 30, 2010

I have created a wedsite using MVC 2 and C#. one of the pages is a gallery of product images. i have stored the path to the pictures in the Db eg ../../Content/ProductImages/ in the controler i want to do a foreach and get a list of the files to dispaly. i tried the code below :

List<string> files = new List<string>();
string path = Path.GetDirectoryName(typeModel.ArtUrl); // ../../Content/ProductImages/
foreach (string f in Directory.GetFiles(path))
{
files.Add(f);
}

BUT i get an error, Could not find a part of the path 'C:Program FilesCommon FilesMicrosoft SharedContentProductImages'.

Why is it getting the wrong path ?? this path does not exist

View 2 Replies

Need To Iterate Through A Server Share And List Every File Within Every Folder ?

Jun 17, 2010

I need to iterate through a server share and list every file within every folder and write each file name with all of its attributes into a database table.I assume that using the FileInfo class and all of it's properties (CreationTime, DirectoryName etc etc) is the best way but I have no idea of how to start.I'm starting to create a web app

View 8 Replies

Forms Data Controls :: Databound Dropdown List / Shows First Value In List Rather Than Current Value?

Jan 17, 2011

I have a databound dropdownlist and have a problem with the default value it selects.When I attempt to edit a record the dropdownlist shows the first value in the list rather than the current value. I want the dropdown list to display the current value.

I'm sure this is very simple but I'm very new to ASP.NET.

I'm using .NET version 4.

View 4 Replies

Display List Of Html File & Folders From A Shared Folder?

Mar 11, 2011

We have an aspx page that displays list of html file & folders from an shared folder. The html files and folder within this shared folder is being maitained by the end users. These are the static html files. When user clicks on any of the file, our .net code open up that file in the new window.

Recently there was an change in the requirement. End user wanted to display some of the data dynamically in the HTML page. We the asked end users to replace the static/hard coded data(eg. City name) within the html files. Find below sample code for your reference

Existing code in html

[Code]....

New code in html

[Code]....

To achieve this our .net code looks for the tag values(State or City) within the lookup table in SQL DB. It then gets the value from the respective tag from DB and replaces the custom tag with the DB value

Eg: <TAG:DYNAMIC value="State"> is being replaced by the value of the State tag in DB.

In order to achieve this we parse the entire html file and then replace the dynamic tags with the DB value. The parsing happens quick in smaller html files but takes almost 10-12 secs to parse bigger files (around 255KBs). We also noticed that even though we increase the number of our custom tags within the bigger files, the code takes same time to open the parsed html file. So it looks like DB hit is not an issue and looks like the issue lies in the parsing of the files. Find below code that parses the html file

[Code]....

On further analysis we noticed the while loop within the above code takes longer to execute. Let me know if there is any better and faster way to parse bigger html files.

View 1 Replies

Web Forms :: Access Text File In Website Root Folder?

May 27, 2010

In Visual Studio I added a text file Example.txt to the root folder of my web site (where Default.aspx exists).

Later in C# code I reference this file :

string text = File.ReadAllText("~/Example.txt"); // also tried without the ~/

During runtime, both debug and non-debug, I get an error at this line of code:

C:Program Files (x86)Common FilesMicrosoft SharedDevServer10.0Example.txt'.

So, how should I reference this file?

View 2 Replies

Is It Possible To Prevent File Access Outside The Website Folder While Keeping Full Trust

Jan 4, 2011

Setting the .Net trust level to Medium on a site will ensure that no code can access files outside the application directory.

I have an ASP.Net site that must run in Full Trust. I have configured my website in IIS to use its own Application Pool Identity [URL].

Currently it is possible for scripts/code in this app to read files outside of the application directory. This occurs because by default, accounts that are a member of the BUILTINusers group are able to read most files on the system, including c: and c:windows. It appears that Applicaion Pool Identity accounts are also members of BUILTINusers.

Is it possible to prevent file access outside the website folder while keeping Full Trust?

View 1 Replies

Debug A Deployed Website?

Nov 18, 2010

This question kind of follows on froma previous one I posted. I have a .net web site deployed on a server.
In certain circumstances the site falls over. Specifically, when I browse to the site from my PC (which has visual studio) to the web server using a particular dns entry. So, I want to debug a browser session on my PC which is looking to a URL on a web server. How can I do this? Within VS when I attach to Internet Explorer no break point is ever reached?

View 2 Replies

Deployed Website To The Remote Server?

Nov 12, 2010

i just deployed my web site to the remote server. I noticed that the menu (navigation) bar is doesn't display as on my local server. I am using visual studio 2010.The stylesheet was also deployed to my remote server. I am using the new asp.net 4 already designed navigation. It works find on my local machine but not on the remote machine.

View 2 Replies

MVC :: Website Gives Only Blank Pages When Deployed?

Aug 2, 2010

I'm finally at the point of deploying my ASP.NET 4.0 MVC 2.0 -based web application to the target system and I am getting blank pages for everything - even for the login page. The web application is starting up cleanly without exceptions according to the logs, but none of my MVC routes are ever followed. Instead I get a 200 OK response with an empty page. Here's my environment:

The web application is the root application of a web site. This web site is associated with its own app pool. The pool is set up for .NET 4.0 with a specific local non-privileged user (not the default Network or System user), and this user has read access to the entire web site's tree.I am including System.Web.Mvc as a "Copy Local" reference, which is then in the bin area of the site. I have confirmed that the installed .NET 4.0 already has version 4.0 of the Abstractions and Routing stuff.The web site directory is in the Program Files tree, but any data the application reads and writes is in a different tree, a subdirectory of ProgramData. The app pool's user has read/write access to everything in that subtree. Evidence: the program is logging successfully to a directory in that tree.The site uses HTTPS but I have verified via trace.axd that it is getting through that stuff OK.

Here's what I've seen so far that leads me to suspect a routing problem:

I have a common base class for all my controllers that provides them with common resources. I have a log statement in its constructor, so I should see that in the logs if any of my routes are hit.Nothing is logged if I just give my https://systemname:81/.If I do https://systemname:81/Home/Index, which should be equivalent, I get a blank page from Firefox with a 404 error. (From IE, I get the standard IE 404 page - equivalent meaning.) I do not get the logging in that constructor.If I do https://systemname:81/Home.aspx/Index, I get the ASP.NET default 404 page and no constructor logging.However, if I do https://systemname:81/Home/Index.aspx, I still get the ASP.NET default 404 page, but my controller base class constructor is executed, as evidenced by the log message.

View 9 Replies

MVC :: Updating/maintaining A Deployed Website?

Jul 19, 2010

My site is currently running on IIS 7.5. I have installed SQL Server 2008 R2 on it. When working in VS 2010 on my local machine, what should I do to simulate the db during development? And how would I migrate that data to the db that exists on the server? How would I update my app with the new code? Simply re-compile and re-deploy?

View 6 Replies

Configuration :: When Website Is Deployed It Looks Just Slightly Different?

Apr 21, 2010

I'm experiencing a frustrating problem. I'm developing a website with ASP.NET 3.5 on a windows XP box. When a deploy it to our development server (Windows 2003, .NET 3.5 installed), I notice some forms look just slightly different. I am using the Ajax Control Toolkit as well and I have noticed that controls such as the Modal Popup look jacked up (they are not centered and the drop shadow is not directly behind the popup). Also, I have noticed differences in line wrapping and things like that. This is very frustrating because I think the site looks great and then I deploy it to give demos and some pages look screwed up. I am using the same version of IE when I view it on my local box and on the development box. Looking at the site on my local box (with IE8), it looks great. Looking at the site on the development server (with IE8 as well), it looks jacked up.

View 3 Replies

Web Forms :: Move File From Webserver Folder To Local File System Folder?

Jan 27, 2011

I have requirement to copy or move file from webserver app folder to local file system folder (user selected). How is it possible in ASP.Net.

On my page i have textbox and browse button and user clicks browse button to select folder and there is Copy/Move button and when clicked the files under webserver folder should be move to the user selected folder. The webserver folder path is available to application.

View 1 Replies

Configuration :: Deployed Website Hangs After EndRender?

Aug 25, 2010

I'm currently in the process of deploying my C# website. In the development IDE everything works fine but when i deploy to ISS 7 some of the pages work fine but others will just randomly hang. Ive been using the tracing utility and debug code to see where the problem is occurring. This is where it gets weird. If I turn on the tracer and set the pageoutput to true it works as fast as it does in the IDE without the hangs but displays all the tracing information. If i set the pageoutput to false and leave the tracer on, it will return to having the same problem. Ive put time outputs through the system and everything is running through quickly. So im at the point now where if i have the tracer displaying on the website there is no problem. But if i don't display the tracer the problem occurs and i cant see the logs to pinpoint it. The problem is occurring after EndRender. Sometimes it loads the top of the page and then hangs. The pages do complete but can take up to 10 seconds. . The same problem is happening in both IE and firefox.

View 3 Replies

Configuration :: Unable To View Deployed Website?

Nov 22, 2010

I have just deployed a website using the copy website tool and I'm unable to get to the login page. I just get an HTTP 500 page saying:

The website is under maintenance The website has a programming error. I'm not sure what is happening here. The connection string points to a server hosting my SQL DB so I don't have to amend that. The website runs fine on the dev machine so I'm at a loss.

View 6 Replies

Hudson Continuous Integration - Can Copy Contents Of A Folder To Another Folder Or Website

Feb 9, 2010

Im trying out the Hudson Continuous Integration. After the build is executed i want to copy the content of the ReleaseBuild to another website on the server.This should be possible i guess but i cant seem figure it out.I know this can be done in nAnt and msbuild but i need to make Hudson do it, eg plugin or something.

View 1 Replies

Crystal Reports :: Blank Page When Deployed To Host Website?

Jan 26, 2011

I have a simple crystal report created on VS 2008 .net 3.5 sp1. The report works when I run it from the local host connecting directly to the live hosted database. When I copy the files to the host server it connects with out error but at the point where the report viewer frame would appear I get a blank page and Done displayed on the browser status bar.

The host server has Crw server installed on it and other websites on the same server are working OK.

View 1 Replies

Web Forms :: Folder To Store WebControl, Without Actually Creating That Folder On Website

Dec 16, 2010

I want to create a folder to store some web controls, so the site structure doesn't have a zillion files in the root.

Except that if I create an ordinary folder, that folder is also visible on the web site. MSDN said you cannot put it in App_Code, and it doesn't really make sense to put it in other special folder like App_Data or App_Theme.

View 3 Replies

List Control Which Shows Images?

Jan 13, 2010

1. Is it possible to have a list control in ASP.NET which shows images. If yes, kindly tell me how.

I have managed to create a gridview control which shows an hyperlink with image in each row. The problem is that when the user selects the hyperlink it results in a GET operation which resets everything on my page. I need to have a postback rather than a GET.

It will be cool to have a list which can show images, because then I can simple do a Autopostback on itemselect.

View 4 Replies

Deployment - Living On The Edge Can Change A Constant String In A Deployed Website Page Dll?

Jul 27, 2010

In a situation where we accidentally published an asp.net website, without updatability, with one wrong URL, we'd like to just open that DLL and change the URL, to prevent waiting another week for the next publish opportunity.

In oldish native DLLs I knew how to change resources, but how would I attempt this with .NET DLLs? And is there an easy way, or only a hackerish one (I know of ildasm and ilasm)? If it matters, the string is a literal inside an event handler.

View 1 Replies

Web Forms :: Dropdown List Value Shows Redirect?

Mar 18, 2011

I have a dropdown list in a FormView that sends data to an MSSQL database (works fine)On submitting the form I need to redirect to a different page if the value in the dropdown list is = 2Here is my code which I am having difficulty getting rightI have made bold the problem, I have tried "2" - '2' still get the convert type error: I have tried many other solutions, cannot get rid of the error.

DownList marital = (DropDownList)Clientapp.Row.FindControl("marital");
if (marital.Text = 2)
{
Response.Redirect("URL");
}
[code]...

View 5 Replies

Write File Inside Website Folder "empty"

Jan 10, 2011

i am trying to write file inside my asp.net website folder. i dont get error and the file is also empty...

[Code]....

View 5 Replies

Web Forms :: Reload Page / Upload A File That File Dont Shows Up In The Gridview?

Feb 11, 2010

i have a page that uploads a file, shows what files are availeble in a gridview and allows the user to donwload or delete the files. When i upload a file that file dont shows up in the gridview i need to reload the page to see the file. Theres any command in C# to do that? like when i click to save the file it saves d file and it does a page reload.

View 4 Replies

Web Forms :: List Shows Different Values Entered In The Textbox?

Nov 29, 2010

i have 20 Textboxes i am not sure what did i touch by i normally dont play with VS Settings i dont understand. So those textbox are normally defined like this

View 1 Replies

Web Forms :: How To Shows The Table Count In Website

Feb 8, 2011

create a website, it shows the count of the table in C#?he webpage looks like below: Pending: 45

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved