WebMatrix :: Publishing Folder And File Listing In Stead Of Home Page

Mar 9, 2011

I have sucessfully published a couple of WebMatrix sites withour a problem but this time I'm stumped. When I try to visit the new site all I get is a directory listing of my files and folders. The home page does not show.

View 4 Replies


Similar Messages:

Configuration :: Publishing Website - Can't See Home Page Or Anything?

Dec 21, 2010

When I try to upload my website I have created to [URL] then test it I cannot see any home page or anything. Just a list of pages etc I have uploaded, Its like im looking into a FTP server. I publish using visual studio 2010, I have tried both Copy website over to my FTP server and Publish website under the build button.

View 8 Replies

WebMatrix :: Publishing Multiple SQL Server Databases From WebMatrix?

Jan 11, 2011

I struggle with publishing 2 databases from WebMatrix using WebDeploy. On Publish settings screen I specify 2 different connection strings, but on Publish Compatibility screen Database names in both destination connection strings are equal. When I return to settings screen, original value is replaced there as well.

How destination server connection strings are evaluated? Here are connection strings from the root web.config file, which are set by hidden parameters in my parameters.xml:

<connectionStrings>
<add connectionString="Server=(local);Database=xxx;Uid=xxx;Pwd=xxx" name="xxx" providerName="System.Data.SqlClient" />
<add connectionString="Server=(local);Database=xxx2;Uid=xxx;Pwd=xxx" name="xxx" providerName="System.Data.SqlClient" />
</connectionStrings>

View 1 Replies

WebMatrix :: Publishing A Webmatrix Razor Site?

Feb 10, 2011

My hosting company states they support .net and razor. However after uploading my website made with webmatrix and razor *.cshtml pages. When i visit my website all i get is 404.17 error messages. As an testcase i decided to add an standard .aspx page. Visiting that page gives the same 404.17 error message :-(
.

According to my webhoster my web.config is wrong. However that one is generated by webmatrix. Besides my *.cshtml *.aspx a lot of files and directories are added to the bin folder. What can i check and what should my hosting provider check. When using the check compatibility the asp.net version is shown as unknown? My hosting provider claims my site is running asp.net 4.0 in integrated mode and that should be enough.

View 5 Replies

Render An Image File Which Is Stored NOT In Web Application's Home Folder?

Mar 14, 2011

Imagine there's a web (mvc) application, which home directory on the server is the default c:intepubwwwroot. What i need is: user requests [URL] Server responses with a simple page with a random picture on it from a predefined path, which is not iis folder/app, like d:lolcats. This sample is tremendously simplified, of course. My solution is: when /randomPicture/ is requested, copy random picture to APP_Images/current_response.jpg or whatever to application home folder and then simply render <img src="../APP_Images/current_response.jpg" />

View 2 Replies

C# - Webform Routing Home Page In A Folder Like Mvc Rather Than Root Of Site

Aug 18, 2010

I've got webform routing setup on my asp.net webforms 3.5sp1 project. I would like to have the files for the site in a directory called content including the home page as I would like to run multiple sites using the same system. In MVC there is a blank default page and the home page is in a folder called home. I can't seem to replicate this behaviour using web form routing but would like to. The blank page is always hit first. the route handler is hit second - it recognises that the request is for the home page and sets up the routing page but is not used. the route handler code is simple:

public string VirtualPath { get; private set; }
public IHttpHandler GetHttpHandler(RequestContext
requestContext)
{
string file = requestContext.RouteData.GetRequiredString("File");
string id = requestContext.RouteData.GetRequiredString("Id");
string queryString = "?menuid=" + id;
VirtualPath = "~/" + file;
HttpContext.Current.RewritePath(
string.Concat(
VirtualPath,
queryString));
var page = BuildManager.CreateInstanceFromVirtualPath
(VirtualPath, typeof(Page)) as IHttpHandler;
return page;
}
Is there anyway I can do this?
Update
Here is my global.asax route code:
public static void RegisterRoutes(RouteCollection routes)
{
Domain.RepositoryFactory repo = new RepositoryFactory();
foreach (var x in repo.MenuRepository.GetAllEnabledGetMenus())
{
if (string.IsNullOrEmpty(x.Url))
{
//add default
System.Web.Routing.RouteTable.Routes.Add(
new Route("Default.aspx",
new RouteValueDictionary(new { File = x.FileName,
Id = x.Id.ToString() }),
new CoreRouteHandler()));
}
else
{
string url = x.Url;
if(x.Url.StartsWith("/"))
{
url = url.Remove(0, 1);
}
System.Web.Routing.RouteTable.Routes.Add(
new System.Web.Routing.Route(url,
new RouteValueDictionary(new {File = x.FileName,
Id = x.Id.ToString()}),
new CoreRouteHandler()));
}
}
}

View 2 Replies

MVC :: Why Isn't Views / Home / Home.Master File Published When Publish Website

Aug 19, 2010

I spent the better part of today hunting down an elusive error. I was getting a message saying that it couldn't find the Index view for the Home controller, and it gave a list of locations it searched, e.g., ~/Views/Home/Index.aspx. This was really confusing as the file definitely existing and was at ~/Views/Home/Index.aspx, the first place in the list of locations it searched for the view!

What I eventually discovered was that there was a file that did not get published when I used Visual Studio's "Publish" feature (this is on the "Build" menu). That file was Views/Home/Home.master, and (as you can probably guess) is the master file used by Views/Home/Index.aspx. Once I copied that file into place manually, it started working. But I am left wondering--why??? Why does this file not get published? It's a part of my project, I can see it in the solution explorer, and it's obviously a critical file that's necessary for the MVC app to run. It has the same permissions as every other file in my project. So why wouldn't it get copied? And how can I fix it so it does get copied?

View 9 Replies

WebMatrix :: Web Matrix Failed To Install My Sql In Windows 7 Home Premium?

Mar 26, 2011

I get headeache from trying to install mysaql using WebMatrix in windows 7 home premium, it's installed fine, when i install Joomla , and starts new web stite , it dosnot connect to my sql, and i'm sure 200% from the username "root" and the password,,, is there problem in my windows,?

View 1 Replies

Forms Data Controls :: Listing All Files In A Folder

Mar 23, 2011

I am trying to tweak a ASP intranet website that was created for my company. It uses a control to show all files in a folder, so they can be selected with ease by our employees. What I would like to do if possible is set it up where if a new form is added a bubble notification will appear next to the tabbed section. See the image below to see what I am refering to. I spoke to our site designer and he stated it is not possible. I feel that with all the creative minds in the world anything is possible. [URL]

View 2 Replies

MVC2 - IIS7.5 Doesn't Find View File For Home Page

Aug 25, 2010

We have a mid-sized asp.net project that we just promoted from our dev server (Windows 2003) to an external test server (Windows 2008 R2). On the test server, IIS is not finding our home page, which is located in the views/home folder (404 error). As far as we can tell, the settings are the same on both servers. I've confirmed HTTP redirection is installed. Is there perhaps some critical configuration we may have missed on IIS7.5 to let it know where to find the view and/or home page?

View 2 Replies

MVC :: Publishing To Sub Folder?

Mar 16, 2011

During development my action link looks like [URL] When published to a sub directory it looks like [URL] Every resolves fine, but id rather not show the structure. What am i not doing, doing wrong ? Can anyone point me in the right direction

View 3 Replies

MVC :: Publishing Via File System From Dev Environment To The Server - "Page Cannot Be Found

Jul 16, 2010

Created a new virtual directory on my web sit in IIS 6.. set proper settings and wild card extensions... published via file system from dev environment to the server but i get a page cannot be found 404 error when browsing the site...

View 4 Replies

WebMatrix :: How To Generate Html File After Rendering A Page

Apr 1, 2011

for example:

[Code]....

I need both show the cshtml page,and persist it to a file for next visit.

first I found Response.OutputStream, but it was unreadable.

then I found in asp.net we could override Page's Render method to achieve it,but I don't know in webmatrix how to do it.

and in MVC we could use ActionFilter, but I really don't find how to achieve it in webmatrix.

View 4 Replies

Configuration :: Unwanted Files In Bin Folder When Publishing

Nov 3, 2010

During build process on ASP.NET MVC 2 application, two files are generated dynamicly (copied, that is) in build folder :

- Microsoft.SqlServer.Replication.dll
- Microsoft.SqlServer.BatchParser.dll

As this files are unwanted, are not required for application to run properly, i put delete command on post build event to remove them :

<code> del "$(TargetDir)Microsoft.SQLServer.Replication.dll" & del "$(TargetDir)Microsoft.SQLServer.BatchParser.dll" </code>

The problem is, as i understood the publish process does: 1. Build, 2.Publish, 3. Post build, so these files are alwasys published on server and causing problems on every publish to our QA server. Is there any way to avoid removing files manually, except for first publishing on the local fs, then use some sort of ftp deployment script that would first delete files, and then push them to server.

View 1 Replies

Sitecore Home Page "occurred During The Processing Of A Configuration File Required To Service This Request"

May 24, 2010

I have installed all on my server 2008. When i got to /localhost/sitecore/Website/sitecore. i get following error. what should i need to do Description: An error occurred during the processing of a configuration file required to service this request. review the specific error details below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. Source Error:

Line 2575: <add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
Line 2576: </httpHandlers>
Line 2577: <membership defaultProvider="sitecore"> -- this line shows errr
Line 2578: <providers>
Line 2579: <clear />

View 1 Replies

Security :: File Listing And Session Modification?

Oct 18, 2010

I have started to get confused with the setting and security issues of asp.net. Hope someone could answer me. Problem 1: I am curious why we have to encrypt connection string, appsetting and more in the web.config file even though file listing is set to "not allowed" on server setting. Does it mean some strangers can still view and steal such file from server? Problem 2: I know that session id is sort of protected but could
hacker be able to change the information inside ? Let say hacker browser my webpage and some data are stored in the session cookies, could they change the information inside the session cookies?

View 1 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

Web Forms :: Directory Listing Without Showing File Extension?

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

C# - Listing All Nested User Controls From A Master Page On Page Load?

Dec 1, 2010

On page load is there a way to enumerate all the nest user controls for that specific page load?

I'd like to be able to enumerate all the user controls that implement an interface, and call the interface method for the controls before asp.net passes control to thier page_load events.

The problem is from the master page level, any page in the app could be loading, and each of them could have any random user control, and I need the type reference to determine if they implement the interface, and to call the method.

View 1 Replies

Create A Career Listing Page For Website?

Oct 14, 2010

I am looking to create a Career Listing Page for my website. Anyone have any idea where to start or if there's some suedo code out there?

View 2 Replies

C# - How To Read A File Located In A Same Folder Where Page Resides

Feb 11, 2011

How do I read a file located in a same folder where my page resides in in ASP.NET (C#)? I have a page called mypage.aspx and I'm trying to read in a file called foo.txt residing in a same directory as this page.

Is there a way to open that file for reading with File.OpenRead()? Providing a relative path like File.OpenRead("foo.txt") fails b/c of the location of the file.

View 3 Replies

Web Forms :: How To Convert Home.aspx To (home.com)

May 13, 2010

when i hover over my links the url are usually like home.aspx, about.aspx, contact_us.aspx etc

what's the way to make these page name appear like home.com, about.com etc?

View 5 Replies

When Save The File In Folder, Error Occured At Live Page

May 7, 2010

I write code for save my Image file in one folderThe code as follow :SavePath = Server.MapPath("~/images/masterpageimage/");MasterFile.Save(SavePath + fname);This code perfectly run in my local machin but when I upload this codeto my server it give me error asxception Details: System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.

View 1 Replies

Web Forms :: Create Folder And Upload File In That Folder On Other Machine Connected In LAN

Jan 25, 2010

I am working on asp.net 3.5 in C#. In my application I have to Create folder and upload file in that folder, which works fine on my machine. I want help for create folder and upload file in that folder on other machine which is connected in LAN. code for create folder and Upload file on my machine

string FileName = FileUpload1.FileName;

View 4 Replies

How To Restrict Access To A Specific File In The Account Folder Rather Than The Entire Folder

Jan 1, 2010

I am ristrcting access to the Account folder using below:

<location path="Account">
<system.web>
<authorization>
<deny users="?"/>
<allow users="*"/>
</authorization>
</system.web>
</location>

and access to the Default.aspx using

<location path="Default.aspx">
<system.web>
<authorization>
<deny users="?"/>
<allow users="*"/>
</authorization>
</system.web>
</location>

but how do i restrict access to a specific file in the Account folder rather than the entire folder?

I tried the following but did not work

<location path="AccountChangePassword.aspx">
<system.web>
<authorization>
<deny users="?"/>
<allow users="*"/>
</authorization>
</system.web>
</location>

View 1 Replies







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