Skip to main content

MCPblog

Go Search
Home
  

 Archive

TSWA 2008 error - Attempted to read or write protected memory
SharePoint alerts not working after restore
How to connect to the SharePoint Services Integrated Database with SQL Server Management Studio Express
TFS 2008 convert Workgroup license to Standard
“Contains” is missing from SharePoint Advanced Search
Installing Team Foundation Server 2008 on Windows 2008 and SQL 2008
Activate Site Directory in Sharepoint Server 2010
“allowInsecureTransport” error during installation Sharepoint 2010 Beta
Active Directory Lightweight Services (ADAM) and ADSIEDIT ports
PageTest your Internet facing SharePoint site
BDC step by step
Do you have MOSS SP2? Then type your PID key again
Install & upgrade localized SharePoint farm to SP2 - part 2
Install & upgrade localized SharePoint farm to SP2 - part 1
How to archive your Business Email on Sharepoint
SharePoint Best Practices Conference
Increase size of site templates
How to disable ADMIN$
How To Reset the Directory Services Restore Mode Administrator Account Password in Windows Server 2003
How To perform offline defragmentation of the Active Directory database
How to create Anonymous Receive (Relay) Connector Exchange Server 2007
How to install WSS 3.0 Tools for VS 2005 on Windows Server 2003 64-bit
Sharepoint site with FQDN host header login prompt in IE7
How to prevent disable action on LAN connection?
Once again: Moss vs Wss
How to clear auto completed addresses in Outlook?
How to install and uninstall SQL Server 2005 Express from Windows Server 2008 x64
How to convert IPv4 to IPv6 (easy way)
How to remove disconnected mailboxes in Exchange Server 2007
Using Active Directory Form Based Authentication with Windows Sharepoint Services
Slooooooooow Vista RDP to some computers?
How to solve problem with Windows Login prompt when you log on to Sharepoint 3.0 site
Am I having problems with Exchange 2003 and LCS 2005 on the same box?
Exchange Server 2007 Component Architecture poster
SP1 for Exchange 2007 is Final
Installing Exchange 2007 SP1 on Windows Server 2008 problem
Deploying updates for Windows SharePoint Services 3.0 automatically on new server in server farm
Microsoft Solution Accelerator for Business Desktop Deployment 2007
Read MCPblog on your mobile phone
Error message when you try to open a help window from a SharePoint Server 2007 site or from a Windows SharePoint Services 3.0 site: "Cannot display help"
Change working hours on Pocket PC
Pocket PC Error Code Table
VMRC Plus is here
To enable tracing on Microsoft CRM 3.0 server you need to add values to windows registry manually.
Windows Server 2003 help service is missing
How to call CRM XML Web Service from JScript
How to publish sharepoint site with ISA 2006
Backup and Restore with Office Sharepoint Server 2007
Exchange 2007 demo
Windows Server 2008 Core Guide
Change Exchange 2007 sending and receiving message size
Unable to create mailbox on Exchange 2007
If you want to chat within sharepoint
PeopleEditor Control
Pocket PC Emulator
Proofing Tools for Office 2007
Adminpack & Windows Vista
Setting up Your System for ASP.NET 2.0 using WinXp pro, IIS and VS Web Developer 2005 Express Edition Part II
Setting up Your System for ASP.NET 2.0 using WinXp pro, IIS and VS Web Developer 2005 Express Edition Part I
When can we expect Language Pack for WSS3 or MOSS2007
List of updates in Windows Server 2003 Service Pack 2
List of admins must have apps for PocketPC
Microsoft Exchange 2007 SP1 is around the corner!
The Web Part has timed out.
TSWA 2008 error - Attempted to read or write protected memory
If you experience following error accesing TFS web access, don't worry there is a solution.
 
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below."
 
Go to TFS cache folder "C:\Program Files\Microsoft Visual Studio 2008 Team System Web Access\Cache" and add NETWORK Account Change Permission.
 
Note!!!
If this doesn't work, go to web.config of TFSWA and modify location of cache to new location.
 
<configuration>

<appSettings>
<add key="WorkItemTrackingCacheRoot" value="C:\newlocation" />
....
</appSettings>

</configuration>
 
And reconfigure NTFS permissions for NETWORK account.
 

 
SharePoint alerts not working after restore

Yesterday, I've completed yet another successful restoration of SharePoint backup. Today users reported that they haven't received alerts from multiple sites. Soooo phone started ringing.

After troubleshooting SharePoint logs (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\LOGS), I've figure it out that I'm able to create new alerts and confirmation mail comes to user mailbox, but any modification to list or library is not being sent. Log stored information that OWSTIMER.EXE is unable to find specific file (modified one)

So I manually configured the alerts using set of STSADM commands.

  • Go to "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN"
  • stsadm.exe -o getproperty -url http://yoursite-pn alerts-enabled
  • Stsadm.exe -o setproperty -url http:// yoursite -pn alerts-enabled -pv Yes
  • Stsadm.exe -o setproperty -url http:// yoursite -pn job-immediate-alerts -pv "Every 5 minutes between 0 and 59"
  • stsadm.exe -o setproperty -url http:// yoursite -pn alerts-enabled -pv "Everyday between 12:00:00 and 05:00:00"
  • net stop sptimerv3
  • net start sptimerv3
  • Stsadm -o execadmsvcjobs

After that my colleague called to tell me "Something wrong with our SharePoint, I'm flooded with notifications" :)

How to connect to the SharePoint Services Integrated Database with SQL Server Management Studio Express

Yesterday I've installed WSS 3.0 (for houndret and one time) and wanted to connect to WSS 3.0 integrated SQL engine (basic install) with SQL Server Management Studio Express (free) and I got error mesage. Actualy you can't connect to WSS database remotely because network connectivity is disabled by default.

But after some late night digging I've found magic connection string \\.\pipe\mssql$microsoft##ssee\sql\query (for Sharepoint 2007) or \\.\pipe\mssql$sharepoint\sql\query or <servername>\sharepoint (for Sharepoint 2010) that you can use to connect to the Microsoft##SSEE instance.

TFS 2008 convert Workgroup license to Standard

If you have installed Team Foundation Server 2008 Workgroup edition than you may or may not know that you are eligible to only 5 licensed users. To unlock full potential of TFS for > 6 users you need to convert your product to Standard Edition.

Of course you need to have Standar Edition license, or if you have MSDN subscription, you can get it from there. Technet user, don't bother to look on technet since TFS is not available via technet. Microsoft Partners (Regular or Gold) will have to browse their DVD's or MSDN.

If you have key keep reading.

Go to add/remove programs, find TFS and select Change/Remove button:

Maintenance mode Options page will appear and you'll find that PID field is been prepopulated with some key. Don't be happy, because this is workgroup edition key!!! Silly, isn't it.

Problem is that setup.sdb file is been prepopulated with this key, and you need to delete PID section from this file. File can be found at:

C:\Program Files\Microsoft Visual Studio 2008 Team Foundation Server\Microsoft Visual Studio 2008 Team Foundation Server - ENU\Setup.stb

Open it with Notepad, find and delete section Product key (both rows), and save changes.

Restart maintenance mode via "change/remove" and the fields are enabled. Type new product key, and press Next.

To verify version of TFS open registry (regedit.exe) and browse to:
HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > VisualStudio > 9.0 > TeamFoundation > Registration

You'll find a value named, "Edition_CT", Here's the table of available values to determine which edition you have:

  • "Full" = Team Foundation Server ("Standard Edition")
  • "Trial" = Team Foundation Server 180-day Trial Edition
  • "Workgroup" = Team Foundation Server Workgroup Edition
“Contains” is missing from SharePoint Advanced Search

Last night I was setting up SharePoint Advanced Search Box in Enterprise Search and I was puzzled for a couple of seconds. For all text fields that I had in metadata mappings, I had no option "Contains" and "Does not contain"!!!

But I had couple of technical documentation for "old" implementation, and had no single word about this needed to be set explicitly. "New" implementation of Search has also been slightly modified but I had no clue what happened. So I decided to investigate and luckily I've found problem/solution.

If you don't have Microsoft Office Servers Infrastructure Update in your SharePoint farm than you have this problem (Or if you have SP2).

Don't panic!!!

Simply add following piece <Option Name="AllowOpContains" Value="True"/> underneath root node.

  • Go to Advanced Search page and click Site Actions, and Edit Page.
  • On the Advanced Search Web Part, click Edit in upper right corner of web part, and then click Modify Shared Web Part.
  • In the Properties text box, click the small rectangle Builder.

  • In the Builder dialog box, under the root node create <Option Name="AllowOpContains" Value="True"/> and click OK.

Why has this been removed from SharePoint?

This option has been removed from the Advanced Search page, because setting this restriction can issue a very extensive SQL query, such as "CONTRACT". This causes a huge load on SQL server and such queries often timeout!!!

So take care with this option.

Installing Team Foundation Server 2008 on Windows 2008 and SQL 2008

Today I have decided to deploy Team Foundation Server 2008 into my production environment, and imagine what? Yeeeees I run into a lot of problems. But you can presume, as I'm writing this post, I've managed to solve them.

So, if you want to do straightforward installations of TFS follow these steps:

Environment

  • Account <domain>\tfsadmin in as regular user
  • Platform: Windows Server 2008 with SP2 x86
    • .NET 3.5 installed
    • IIS installed
    • Add <domain>\tfsadmin into local admins
  • SQL 2008 Standard (WITHOUT SP1 !!!!)
    • Services are running under <domain>\tfsadmin
  • Log in as different user with local admin privileges

TFS SP1 slipstreaming

Than simply run setup from TFSwithSP1. From there you'll find that installation is pretty much simple. Keep in mind that you have to use TFSADMIN account during installation.

After you finish you can create new projects from some other workstation that has VS2008. Of course you need Team Explorer 2008 (http://www.microsoft.com/downloads/details.aspx?familyid=0ed12659-3d41-4420-bbb0-a46e51bfca86) and FINALLY you'll have to reinstall SP1 for VS after you install Team Explorer if you want to avoid this error (http://www.thejoyofcode.com/TF03177_Team_Project_Creation_Failed.aspx).

Another guideline I can give you when setting permissions developers is:

  • Set permissions on http://<tfsserver>/reports (from workstation as admin)
    • Click Orange Properties on Home location
    • New Role Assignment > Content Manager (One that will create project)
  • Site Settings in upper right corner
    • Click Security in left side
    • New Role Assignment > System Administrator (One that will create project)
  • If you are using Workgroup edition add users to Licensed Users group on TFS

Happy Teaming :)

 

Activate Site Directory in Sharepoint Server 2010

If you are playing with enterprise features of Sharepoint 2010 you have probably noticed that Site Directory template is missing. Site directory has been intentionally hidden because of compatibility issues with upgrade process between 2007 and 2010.

If you want to "enable it" simply follow these steps.

  • Browse to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\1033\XML
  • Open webtempsps.xml
  • Find section for Site Directory and change Hidden value
    <Template Name="SPSSITES" ID="34">
    <Configuration ID="0" Title="Site Directory" Type="0" Hidden="FALSE" ImageUrl="/_layouts/1033/images/template_site_dir.png" Description="A site for listing and categorizing important sites in your organization. It includes different views for categorized sites, top sites, and a site map." DisplayCategory="Enterprise" VisibilityFeatureDependency="5F3B0127-2F1D-4cfd-8DD2-85AD1FB00BFC">
  • After that open command prompt and browse to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN
  • Run following command:
    stsadm.exe -o activatefeature -id 5F3B0127-2F1D-4cfd-8DD2-85AD1FB00BFC –url http://yoursite

After that go to your site URL and create new site and you'll see "Site Directory"

 

“allowInsecureTransport” error during installation Sharepoint 2010 Beta

If you run into problem during running of Sharepoint 2010 Configuration wizard that reports error:

Failed to create sample data.
An exception of type Microsoft.Office.Server.UserProfiles.UserProfileException was thrown. Additional exception information: Unrecognized attribute 'allowInsecureTransport'. Note that attribute names are case-sensitive. (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\WebClients\Profile\client.config line 56)

Simply do the following:

  • Uninstall Sharepoint 2010 and anything you installed regarding Sharepoint after (Sharepoint will remove SQL 2008 Express, not full SQL).
    • In case you used full SQL check for any additional databases
  • Run the install again, but STOP at the Configuration Wizard step!!!
  • On Windows Server 2008 right click Notepad and run it as Administrator,
  • Navigate notepad to "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\WebClients\Profile\",
  • Choose All files as file type,
  • Open file "client.config",
  • Delete two instances of "allowInsecureTransport" tag (mind the spaces and containing tag).
  • Proceed with Configuration Wizard.

I'm not sure what thing does but Wizard manages to complete successfully :)

20.11.2009 - FIXED by Microsoft:

http://blogs.msdn.com/sharepoint/archive/2009/11/19/installation-notice-for-the-sharepoint-server-public-beta-on-microsoft-windows-server-2008-r2-and-microsoft-windows-7.aspx?utm_source=feedburner&utm_medium=email&utm_campaign=Feed%3A+sharepointteamblog+%28Microsoft+SharePoint+Products+and+Technologies+Team+Blog%29

Active Directory Lightweight Services (ADAM) and ADSIEDIT ports

As you may know or may not know Exchange's EDGE role requires operating server that is not member of active directory. So how EDGE server knows info about recipient, configuration, and schema? One of the requirements before installing EDGE role is to install ADAM (on Windows Server 2003) or Active Directory LightWeight Directory Service Role (on Windows Server 2008). Btw, ADAM is short for Active Directory Application Mode and its kind a special mode of Active Directory service designed to store information for directory-based applications. Yes, the one that can read and speak LDAP.

After you're done with installation you have ADSIEDIT utility to examine data stored in partitions of this special AD. With regular AD you have data in "NTDS.DIT", here data is stored in "<EXCHANGE LOCATION>\TransportRoles\data\Adam\ADAMNTDS.DIT".

Open ADSIEDIT (from administrative tools or from MMC) and as a port number type 50389. You can choose between following partitions:

  • Configuration
  • Domain
  • Schema
PageTest your Internet facing SharePoint site

Page testing utilities are more and more popular. There even companies specialized in Site optimization. If you want to know how Microsoft managed to speed up their http://sharepoint.microsoft.com visit http://blogs.msdn.com/sharepoint/archive/2009/09/28/how-we-did-it-speeding-up-sharepoint-microsoft-com.aspx

Couples of web sites where you can test yours site performance:

Test results for www.mcpblog.net :)

1 - 10 Next
  
MSforge community
 

 Authors

Bojan Buhač

Bojan Buhač works as a Senior Expert at Smart d.o.o. Serbia. He is certified as a TS for MOSS 2007, and Exchange 2007. Beside this, He has wast amount of certifications in collaboration technologies, from MCT, MBS and MCSA Messaging to MOS instructor.


Daniel Popović

Daniel Popović works as a Senior developer at Smart d.o.o. He is specialized in Microsoft Office Sharepoint Server 2007 solutions and customizations. He has been participating in many successful projects as a lead developer.


Nikola Simonović

Nikola Simonović works as at Smart d.o.o. as a Messaging Specialist. He is specialized in Exchange 2003 and 2007, OCS 2007 and Sharepoint as Hosted solutions.


Sergej Kešelj

Sergej Kešelj works as a Solutions Architect and MCT. He is certified as a MCAD, MCSD, and MCTS for .NET Fx. Beside this, He has Master Degree in Informatics. At this moment Sergej spend a lot of his time on MS CRM and SharePoint Technologies. He has worked on number of projects, and some of them where published in leading IT magazines. Sergej does not miss opportunity to speak on IT conferences where he has opportunity to ‘spread the word’ about newest technologies.


Radovan Ostojić

Radovan Ostojić is Senior Consultant at Spinnaker New Technologies, Belgrade. He's main area of expertize is development and implementation of Sharepoint technologies. He's proud owner of MCAD for .NET. Also, he's been a lecturer at many Microsoft Events in Serbia.


 ‭(Hidden)‬ Admin Links