Home » .Net FrameworkRSS

Deploy Master Page as a Feature

Hello,

i want to deploy a Master Page as a Feature in Sharepoint 2010.
I followed the Steps in this Article, but i get some Errors.
http://www.sharepointchick.com/archive/2010/03/26/deploying-a-custom-master-page-in-sharepoint-2010.aspx

When i deploy the Solution in VS2010 and enter my SP Site, i get an Error: File not found.
I discover, that my sample.master File were not copied into the _catalogs/masterpage Directory.
When i copy the File manuell into this Directory, i can open my Site correctly, but in the Feature Overview my Feature is deactivated.
When i try to activate it, i get an Errormessage:
The specified File in this Modul section is already in place.
I renamed my sample.master File but is still the same Error.

Can anyone help me?

 

3 Answers Found

 

Answer 1

Hi Flaty,

use SPContext.Current.Web.Url to get the url of the web application

 

Answer 2

Hi Destin,

please can you give me an example?

thx. Markus

 

Answer 3

How you find out the Current web URL?

Some more thinks to check are

Check if that web site is accessible from browser?If not may be you didnt created a site collection .Create it

Check you have permission in the site

Thanks

Destin

 

 
 
 

<< Previous      Next >>


Microsoft   |   Windows   |   Visual Studio   |   Tech Videos   |   Follow us on Twitter