.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Why isn't my Views/Home/Home.Master file published when I publish my website?

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net

Hi All,

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?

Thanks for any suggestions on this!


View Complete Post

More Related Resource Links

Sharepoint 2007 publishing site home page displays unknown file type security message


I am using sharepoint 2007 sp2, it has been workig fine for the past 8 months but since one of the developers installed .net 4.0 framework, every time we create a new sharepoit publishng site or extend and existing application the home url displays an "Unknown File Type" security warning message and asks users to download the file.  If i manually tupe in the full url http://www.mysite.com/pages/default.aspx it is displayed correctly. I have uninstalled .net 4 from the server but i still have the same  error. I have tried to replicate this error on a development server but sharepoitn works fine on that even with .net 4.0 installed.

Has anyone had the same issue ? I would appreciate  any suggestios or help with troubleshootig this issue.


ConfigurationManager.OpenExeConfiguration returns wrong config file on Home Server


I'm having an issue with
ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel) where it
opens the wrong .config file when running our app on Windows Home Server.
For example, say my application is installed to:

C:\Program Files\My Application Name\myapp.exe

...and there's a corresponding config file in that directory called:

C:\Program Files\My Application Name\myapp.exe.config

...under w2k, XP, and Vista,
returns myapp.exe.config. However, under Windows Home Server, using the
exact same codebase, I get the following path:

C:\Program Files\My Application Name\myapp.config

...which is a file that doesn't exist, and doesn't contain any of our
published application configuration details.

I've seen other issues people have had issues with
ConfigurationManager.OpenExeConfiguration, but it's typically with it adding
an extra ".config", so the returned file ends up being
"myapp.exe.config.config". Our issue is slightly different; our returned
file ends up being "myapp.config"; I've looked through the code for
ConfigurationManager.OpenExeConfiguration in reflector, but I'm still not
sure why it's return

Error: Cannot determine security.config file path for SQL2008R2 development version on Vista home pr


The installation gets past the check for the windows installer and .net 3.5 but fails here finding the security.config path.  I've turned off the anti-virus, uninstalled and reinstalled .net 2.0 and 3.5.  I'm running as an administrator.  Nothing else that I've found addresses this specific error. The install start properly on an XP machine but not Vista.

What can I try next?

11/25/2010 06:58:25.951 Local setup.exe not found, so continuing to run setup.exe from media.
11/25/2010 06:58:25.970 Attempt to initialize SQL setup code group
11/25/2010 06:58:25.994 Attempting to determine security.config file path
11/25/2010 06:58:26.076 Error: Cannot determine security.config file path
11/25/2010 06:58:26.109 Error: InitializeSqlSetupCodeGroupCore(32bit) failed
11/25/2010 06:58:26.135 Error: InitializeSqlSetupCodeGroup failed: 0x80004005
11/25/2010 06:58:26.159 Setup closed with exit code: 0x80004005

how can i set the home page of my website .. i have deploy it


helo every body

it is my first time deploy a website to real production environment

this is the URL of my website


i want to set the home page to


where can i do that?

from IIS ? or from Web.config file? or somewhere else?

any help is appreceated..


Changing the graphics on the home page of a SharePoint site

When you create a site in Microsoft Windows SharePoint Services by using the default Team Site template, the home page includes two default graphics. A Windows SharePoint Services graphic appears in the body of the page, and a picture of a house in a circle appears near the site title. You can change these graphics to customize your site. Changing the smaller graphic requires a Windows SharePoint Services compatible Web page editor

Windows Authentication for IIS in Windows 7 Home Premium Edition - for ASP Websites.


How to create a virtual directory and get benefit of the IIS. Is there a workaround to accomplish this without the Windows Authentication for Windows 7 Home Premium Edition?

Thanks in advance, 

Cutting Edge: Master-Detail Views with the ASP.NET Ajax Library


When you think of data-driven Web pages, most of the time what you really have in mind is a master-detail view of some cross-related data. Dino builds an example with ASP.NET AJAX 4 and jQuery.

Dino Esposito

MSDN Magazine January 2010

{ End Bracket }: Customize Windows Home Server


Chris Gray discusses custom applications he's developed for Windows Home Server and explores applications for energy savings.

Chris Gray

MSDN Magazine July 2008

Viewing your In-Box from the Home Page


I have a user request to access the user's Outlook In-Box from the home page in SP 2010.  The OWS In Box web part requires a hard-coded email address.  Is there any way to have the web part accept a variable?  That way I could pass the email address from AD.


Tom C.


My site link on my home page.



One of the user got My owa link in place of my site on the my home page ( go to my site --> my home --> top right corner shows My owa insead of my site ) and he wants to edit that my owa link now. first of all i dont know how he got that My owa link in the place of my site on my home page. When he surfs any other page than he is getting my site on all other pages. so he is just getting My owa link in place of my site only on the my home page.

At the first glanse, i think it would be master page issue but if that would be the case than it shold apply all the users but this is happening just for one user and we are not using custom master page.

Please help.


Excel file published on Sharepoint


I want to use ExcelServices of MOSS to publish few XLS files.
The problem is if i want to open up the excel file it will not open in the web browser as I expected, altough i already click "Display as web page".
My MOSS instance is on a server without MS Excel installed on it.
The excel file was created using Excel 2003.
Any idea how to fix it?
Thank you very much,

Connecting to Sharepoint Using Windows XP Home




I'm new in using sharepoint and tried to use my windows xp home computer to connect on the company's network. However, when I am trying to join sharepoint as a client computer, I come up with the following message:

Run the wizard to complete networking setup

Problem however, is that the wizard doesn't run.

While I found info describing this issue for win 7 and vista, http://support.microsoft.com/kb/926505, I can't find any regarding XP home.

Can someone kindly assist?

Programmatically delete a .webpart file from wpcatalogs folder from an IIS website


We are using a third party wsp in our solution which directly adds the web parts into the web application store rather than the web part gallery(References to them are present in IIS site's wpcatalog directory). We want to remove these web part files so that the users will not be able to add these web parts to pages directly. Or any other modification so that users will not be able to add these directly. Is there a way we can do this programmatically?

SQL Server Reporting Services not able to install on Windows Vista Home Premium


Recently I had a weird problem while trying to install SQL Server Reporting Service in my local PC. I am using Windows Vista Home Premium and I wanted to configure SSRS in my PC. During the installation, the setup wizard listed all the services that we want to install and I found that only Reporting Server checkbox option was disabled and I wondered why??? I thought it may be becuase of some installation problem and tried again and its useless... I googled lot of sites for 3 days and finally found that due to some IIS issues, it is not possible to install Reporting Server in Vista Home Premium version. Reporting Server needs some specific IIS features to be installed in the machine.

But unfortunately those features are not available for Home Premium users which in term restricts users not to install reporting server in our PCs... Also, Microsoft has accepted it as an issue and its not possible to get it install in Home Premium...just wanted to share and might be useful for someone like me.

Reference: http://support.microsoft.com/kb/920201/en-us

Report viewer problem in Publish Website

hi all,          I have done website designing and i published that website in vs2005 after that i transfer to iis webroot. when i open the report viewer page i got the below error,An error occurred during local report processing.    The definition of the report 'Main Report' is invalid.      The report definition is not valid. Details: Data at the root level is invalid. Line 1, position 1.the same reportviewer page opened when i was upload to webroot without publishing website..i added all report dll file, but i got the above error (published website)Thank You,Arunabathan.G  
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend