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


Similar Messages:

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

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 :: 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

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

SQL Reporting :: Blank Pages In SSRS PDF Export?

Jan 26, 2010

I am developing a report with almost 25 columns table and the width of the report is 20pt. But I am changing the visibility of a few columns in run-time so that the resultant width will fit in one page (11pt)(I checked all the margins and resultant width of table. Sum of all the widths are with in the pagesize only).

Everything is working fine when i check the report in browser, but when i try to Export to PDF there are alternate white pages, which are corresponding to the hidden columns width i guess.

How to achieve PDF Export without white pages? Also, is there any way to shrink the report to a single page?

View 5 Replies

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

Windows Server 2003 IIS Renders 4.0 Pages As Blank?

Nov 25, 2010

I have a web project which works fine on my local development machine.

I copied the project to our UAT server, setup a virtual directory pointing to the project and configured it to run on .NET Framework 4.0. I even added the Default.aspx page to the Documents tab. I configured Directory Security to use Windows Authentication.

When i try to access any web page within this application, IIS responds with a blank page. I looked through the event logs and don't see any errors anywhere.

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

Forms Data Controls :: Removing Blank Lines On Website End?

Apr 9, 2010

I have some data im reading from an SQL Database onto a web page.

on the website end im converting each new line into a list item.

but in the database theres lots of blank lines between list items, so its showing each blank line as a list item.

so i just wondered if theres any way to remove those blank lines on the website end.

View 5 Replies

C# - MVC - Blank Model Not Returning Blank Data

Jun 2, 2010

I have a form which a user can fill in x times with the data they want too. The form is posted to the following Action.

[HttpPost]
public ActionResult Manage(ProductOptionModel DataToAdd)
{
if (!ModelState.IsValid)
{
return View(DataToAdd);
}
var ProdServ = new ProductService();
if (DataToAdd.ID != 0)
{
//Edit Mode.
DataToAdd = ProdServ.EditProductOption(DataToAdd);
ViewData["Message"] = "Option Changes Made";
}else
{
//Add
DataToAdd = ProdServ.AddProductOption(DataToAdd);
ViewData["Message"] = "New Option Added";
}
var RetModel = new ProductOptionModel() {ProductID = DataToAdd.ProductID};
return View(RetModel);
}

So at the bottom I blank the model (Leaving just the required field) and then return to the view. However the view holds the data from the previously submitted form. I have debugged the code and checked that the RetModel variable is empty.

View 2 Replies

Wants To Upload Website Pages?

May 27, 2010

I am Using "Visual Studio 2005 Professional" .I start a new WEBSITE Project .I chose ASP.NET website and i work on it.i want to publish it but i cant?i want to Upload this WEBSITE Pages in My Domain.

View 11 Replies

MVC :: Trying To Figure Out How To Use SSL For Only Certain Pages On Website?

Oct 13, 2010

I'm trying to figure out how to use SSL for only certain pages on my website. It's an ecommerce site, and I don't want the whole site to use SSL, only the checkout areas. I'm not sure what's needed to set this up, is it all IIS, web.config file, etc. I'm hosting with Discount ASP.Net, and will purcase an SSL cert through them for my site.

View 5 Replies

Web Forms :: Hit Count In All Pages Of The Website?

Sep 25, 2010

My website needs hit counter. i have created hit count in global.asax page, which works fine. Now i wanted to display hit count in all pages of the website. can anyone tell me, how to do this.

View 3 Replies

Configuration :: Uploading Pages To Website?

Sep 8, 2010

I created a website. If i upload html pages to my website, it works good. but when i upload asp.net pages, it cannot work. why? is there any coding changes to my web config.

View 2 Replies

Dynamically Get The All Pages Urls From Website?

Mar 17, 2010

In my VS2005 Standalone application, it is a tool kit to retrieve all the url from a particular website.

Ex:

http://www.mywebsite.com

and i want the all the url including querystring url's

like

1. http://www.mywebsite.com/search.aspx?id=10

2. http://www.mywebsite.com/itemsearch.aspx?id=10

so i know only the main url only and i would like to know all the url's name.

using c# code.

View 2 Replies

Way To Design A Website In Which Every Pages Are Given Connection With SQL Server

Sep 6, 2010

I heve designed a website in which every pages are given connection with SQL server by writing the codes in each page.

View 1 Replies

C# - IIS Not Serving Website Pages On Remote Client

Dec 28, 2010

I am new to IIS and asp and i am having a problem. I am creating a asp.net website in physical folder wwwrootSharePage and virtual directory SharePage When i visit the site on local host or using my ip address or through dyndns proxy on my own computer , the page is served fine, But when any one else from any other computer access my website it takes a long time in loading and finally his browser throws an error (may be page not found error,not sure, see for yourself). I have even changed Authentication mode to none and tried with firewalls closed , still page is not served.

You can have a look here

[URL]

(hosted on my home computer so can be unavailable at times when i have switched off my computer)

or try with my ip address

updated http://117.205.103.192/SharePage/ (can change ,i have a dynamic ip address)

Info:
IIS version 7.5
OS : Windows 7
.Net 4 (even in IIS)

View 3 Replies

Security :: Restrict And Allow User To Pages Of Website?

Aug 23, 2010

i have 4 pages of website 2 pages are authorized to used by USER and 2 pages are restricted for useradmin can authorized to go all 4 pagesi need coding for Login window from which Admin/User Login

View 1 Replies

Finding Free Website For Uploading Testing Pages?

Feb 3, 2010

what free website can i upload my asp.net pages for testing?

View 4 Replies

Installation :: Running Aspx Pages To An Existing Php Website?

Mar 3, 2010

I have a client that currently has a comprehensive php website (with a huge amount of functionality built in).

We have been requested to link into our c#/SQL server application and pull information from the SQL database and display this on the existing website.

I would like to do this as aspx pages. However, I do not want to re-create the complete existing website. I would like to add the aspx functionality onto the current website.

View 1 Replies

Restrict User For Saving Website Pages In His Machine?

Nov 26, 2010

if we open any website and from File menu of the internet explorer we can save that page on the client pc

and it will save page images ,stylesheet file and scripting file on the client side. But some web site wont allow to save their web pages

just i want to know how to implement that feature in the aspx pages

and how to restrict the client for saving web pages layout and images into their machines.

View 5 Replies







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