Solved

Error when trying to access website in Default website on IIS?

Posted on 2014-09-10
3
294 Views
Last Modified: 2014-09-30
I added my ASP.net website published folders to C:\inetpub\wwwroot.
I converted it to application(right click on the folder in IIS Manager).
I copied my first page in the website to C:\inetpub\wwwroot and made it default page from IIS.
Now when restart and browse it, my firstpage is looking for the master page and it throwing an error.
Server Error in '/' Application.
--------------------------------------------------------------------------------

Parser Error 
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 

Parser Error Message: The file '/Master.master' does not exist.

Open in new window

These exact same steps worked when I created a sample project with test.html page. I was able to access it.
What should I do to have the first page be able to find the master page.
0
Comment
Question by:Raj G
3 Comments
 
LVL 28

Assisted Solution

by:sammySeltzer
sammySeltzer earned 167 total points
ID: 40315731
Hi,

Here are a few things you could try.

1, change from codeBehind to CodeFile
2, if that doesn't work, try this link:

http://stackoverflow.com/questions/8670899/parser-error-message-the-file-site-master-does-not-exist

it might be a port conflict and this link shows how you can resolve it.
0
 
LVL 40

Assisted Solution

by:Kyle Abrahams
Kyle Abrahams earned 166 total points
ID: 40315761
Does the Page declarative use a Masterfile?

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Site.master" AutoEventWireup="true"    CodeFile="Default.aspx.cs" Inherits="_Default" Async="true" %>

Try removing the masterpagefile if it does and see if that works.

The other thing you could do is create a blank master page file (or copy from your website assuming you  had one?)
0
 
LVL 16

Accepted Solution

by:
Vikram Singh Saini earned 167 total points
ID: 40316088
I would like to see your Default.aspx page and also Master.master file from your web application project.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question