SQL and MOSS best practices

I came across the following article :
 
 
Thanks to 'Blog do Ezequiel'

Tags: ,

Add your proxy settings to the web.config

To allow external RSS feeds on your internal Sharepoint site add your local proxy setting to the web.config. Change the following lines:
 
<system.net>
  <defaultproxy>
     <proxy autodetect="true" />
  </defaultproxy>
</system.net>
 
to:
 
<system.net>
  <defaultproxy>
     <proxy usesystemdefault="false" proxyaddress="http://YOURPROXYSERVER:PORT" bypasslocal="true />
  </defaultproxy>
</system.net>
 
Run a iisreset after saving the web.config file.

Tags: , ,

Howto save a site template in MOSS

Sharepoint 2003 used to have a 'save site as template'menu option. An easy way to save a site as a template in MOSS is to add
 
/_layouts/savetmpl.aspx
 
right after your site name. This will open the page where you can save your site as a template.

Tags:

Seven-Winds is available on CodePlex

CodePlex is Microsoft's open source project hosting web site. You can use CodePlex to create new projects to share with the world, join others who have already started their own projects, or use the applications on this site and provide feedback.
 
Seven-Winds created a CodePlex project site for the release of our Outlook Categories Migration Tool.
 

Tags:

Sharepoint Error Details

Anyone developing on MOSS or WSS v3 is aware of how frustrating the useless error messages received in the interface can be ("Unknown Error Occurred"), and often these are not at all accompanied by a message in the ULS logs.

Here is how you enable more detailed error messages for your portal:

  1. Open up your sites web.config, and make the standard custom errors edit. You want it to be < customerrors mode="Off"/>
  2. Then, something a bit less obvious, search for the CallStack="False" and change it to CallStack="True", you should find this in the "<safemode>" node.

Thanks to Stefan Keir Gordon at www.keirgordon.com

Tags:

Enable OCS presence in MOSS

To enable OCS presence in MOSS the Communicator client needs te be installed on the machine you are viewing the Sharepoint site. This site has to be in the list of trusted sites on that computer.

Tags:

MOSS 2007 CSS Reference chart

Problems with branding / modifying your Sharepoint site?
Check Heather's Reference Chart.
 
Still stuck? Install the IE developer toolbar to trace styles directly from your MOSS pages.
 

Tags:

Code blocks are not allowed in this file

If you want to add some inline code in a masterpage or pagelayout file... you probably get the following error message:

An error occurred during the processing of <PAGENAME>.aspx. Code blocks are not allowed in this file.
 
To get this working you need to modify the web.config of your web application. Add the following code to the web.config in the <sharepoint> section:
 
<SafeMode MaxControls="200" CallStack="false" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false">
    <PageParserPaths>
     <PageParserPath VirtualPath="/*" CompilationMode="Always" AllowServerSideScript="true" IncludeSubFolders="true" />
    </PageParserPaths>
   </SafeMode>
 
Run a IISRESET to reload the web.config
 

Tags:

Change Application Pool IIS 7

As we all know the design of IIS 7 had some drastic changes.
One of them is the location where you can bind or change application pools. These settings a simply hard to find some times. To change a specific application pool follow these steps.
 
1. Open IIS admin console
2. Expand the website folder
3. Click the website you want to change
4. On the right side of your sceen a menu appears
5. Click 'Basic Settings'
6. Select the Application Pool you would like to bind in the pull down menu
7. Click OK
8. Run IISRESET

Tags:

Access Denied - When trying to Enable the Publishing Feature

Recently I had to activate the publishing infrastucture on a new MOSS 2007 site. On other sites this always worked before, but now I was getting ‘Access Denied’ when activating the ‘Server Publishing Infrastructure’ at this client.

To solve the ‘Access Denied’ problem I found you need to elevate the permissions of the AppPool of the web application on which you are trying to activate the Publishing Infrastructure feature.

One way to achieve this is to temporarily change the AppPool of the web application.

1. Open IIS Admin.
2. Location the Web Site for your web application.
3. Goto to the properties and select the ‘Home Directory’ tab.
4.
Change the AppPool to be the same as Central Administration.
5. IISRESET
6. Activate the Publishing Infrastructure feature on your site.
7. Change to AppPool back to the original.
8. IISRESET.

This should allow you to enable the feature and use the publishing features within MOSS.

Tags: