SharePoint Designer 2010 Can't open Page Layout in Edit Mode - sharepoint

Every time I try to open any page layout in my site collection SharePoint Designer 2010 throws the the following error at me.
Can't figure out what's wrong. I've used it fine with other site collections before.
Any ideas?

when opening your site collection, try to specify the full name for this collection.
for example, instead of http://localhost, try something like this:
http://fullname.domain.com
Or, probably a better way to fix it: go to Central Administration (/_admin/AlternateUrlCollections.aspx) and check your alternative access names. When you open your collection in Designer you have to use exactly the same URLs.

I have since found out what caused this issue.
I was missing the following handler for asmx within my web.config file
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

Related

Overcome/ignore compatibility view IE11 for particular page/site

I have a sharepoint site and loading an external website in a content page. I have enabled compatibility mode for my sharepoint site, and the external site will not work in IE lower versions. Since i have enabled compatibility view for the site, the external site not loading in iFrame of my content page.
Is it atleast possible to turn off or bypass the compatibility view setting for the particular page? Since i have enabled the compatibility view for the domain, the meta tags are ignored.
I tried to modify the user agent string in URL rewrite also.
Any advise?
I've never tested this with an iframe that has an external reference,
but if you are talking about one of your site pages, Try to add the follwoing to your config file
<location path="Your_Page_Path">
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="X-UA-Compatible" value="IE=Edge" />
</customHeaders>
</httpProtocol>
</system.webServer>
</location>

Specify "Excel Only" in the manifest file

I submitted an Excel add-in several days ago. Today, I received a change requirement:
1.2 Your app or add-in must work according to your description, and must not be in an unfinished state.`
Your add-in claims to work in the Word, PowerPoint and Project clients however it does not appear to be fully functional as there appears to be no interaction between your add-in and the mentioned clients, except for the Excel client. Please ensure your add-in works in all declared applications.
If you do not intent to support the Word, PowerPoint and Project clients, please make the relevant changes in your add-in manifest.
I don't know where (in the manifest file) to specify this add-in is for Excel only. Could anyone help?
In your manifest, there will be a section like:
<Hosts>
<Host Name="Workbook" />
<Host Name="Presentation" />
<Host Name="Project" />
<Host Name="Document" />
</Hosts>
Remove all the <Host ... /> lines except the one containing "Workbook", and you'll be all set.
See https://dev.office.com/docs/add-ins/overview/add-in-manifests for more information.

Can you turn off Visual Studio 2013 Browser Link on a page by page basis

I like the inspector feature of Visual Studio 2013 Browser Link. However, I have a small number of pages, mostly custom audio/video Media Players, which cause the browser to make an exorbitant amount of signalr requests per second... in the range of 200 per second. So, I would like to disable the feature on those particular pages.
I know it can be disabled accross the entire application or a section of the application by putting the following key in the web.config file.
<add key="vs:EnableBrowserLink" value="true" />
Is there a way to disable it on a single page?
Put all of your Media Players in one folder. Add a custom web.config for the folder. Add the key to the web.config.
<appSettings>
<add key="vs:EnableBrowserLink" value="false" />
</appSettings>

Different Default Document Type in Subfolder on IIS 6

I've never worked on an IIS server with PHP before, but my question is can I set a default document type for a subfolder in the web.config, this is what I have in mind (its a bbPress forum):
<location path="forum">
<system.webServer>
<defaultDocument>
<files>
<add value="index.php" />
</files>
</defaultDocument>
</system.webServer>
</location>
Thanks and a virtual beer to the person who answers :D
If you're using IIS7, the configuration you suggest will indeed change the default document for just the subfolder forum to index.php.
If this is IIS 6 then it won't work for a non-administrative user. IIS 6 stores these settings in the metabase and can only be edited using:
IIS Management Console
Programmatically, but the modifying application requires Administrator rights
Direct metabase editing
The <system.webServer> xml web.config settings are only applicable to IIS 7 and above, IIS 6 will completely ignore these.
I'm not sure if this will work, but if you know what the default document is for your site, you could try to override it with a UrlMapping. For example:
<system.web>
<urlMappings>
<add url="~/forum/Default.aspx" mappedUrl="~/forum/index.php" />
</urlMappings>
</system.web>
Let me know if that works for you. You might have to create a dummy Default.aspx that's simply blank in that directory for it to work.
EDIT: Also, for what it's worth, you can simply just add "index.php" to the list of Default Documents for your whole site. I'm not sure if you knew that. Just put it at the bottom of the list and it won't break any other sections of your site.

How to change the default page for a site in Sharepoint using Team Definition?

I am using the SharePoint extensions 1.1 for Visual Studio 2005 to deploy my website in SharePoint 2007. When you create a new site, there is a new default page with the ContenType: Welcomelinks.... I would like to change this to include my own ContentType and PageLayout in the onet.xml. I am deploying this using Team Definition.
Could someone give me some suggestions, please?
Did you try applying your module to the onet.xml file?
in
<Project...>
<Configurations...>
<configuration...>
<Modules>
Create a module element:
<Module Name="Default"/>
Then in
<Project..>
<Modules>
have something like this for the definition:
<Module Name="Default" Url="" Path="">
<File Url="default.aspx" NavBarHome="True">
</File>
</Module>
I think that will at least put you on the right track. I hope.

Resources