SharePoint 2010 Beta Install: Application Server Role: Web Server (IIS) Role

/* Posted August 11th, 2009 at 8:19am [Comments: 2] */
/* Filed under Microsoft, Reference, SharePoint, Windows */

102708 1356 SharePoint11 SharePoint 2010 Beta Install: Application Server Role: Web Server (IIS) Role

I was trying to install SharePoint 2010 and what i found was that it was restarting over and over again. It restarted the server 8 times before i decided to look at the logs, it seems like it was having problems configuing the IIR Roles:

“Multiple Server restarts on Error with Configuring Application Server Role, Web Server”
and
“Application Server Role: Web Server (IIS) Role: configuration error – pending restart of the computer”

Solution:
It seems that you CANNOT have Visual Studio 2010 Beta 1 installed before you install SharePoint 2010. I rolled back to a previous VM where i did not install VS2k10 and then ran in prereq install and everything worked.

  • Twitter
  • Digg
  • del.icio.us
  • Propeller
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Mixx
  • Yahoo! Buzz
  • NewsVine
  • Facebook
  • Google Bookmarks

SharePoint Template Error: The template you have chosen is invalid or cannot be found.

/* Posted February 11th, 2009 at 1:17pm [Comments: none] */
/* Filed under Microsoft, Programming, SharePoint */
sharepoint logo

sharepoint logo

The template you have chosen is invalid or cannot be found. at Microsoft.SharePoint.Library.SPRequestInternalClass.ApplyWebTemplate(String bstrUrl, String& bstrWebTemplate, Int32& plWebTemplateId)
at Microsoft.SharePoint.Library.SPRequest.ApplyWebTemplate(String bstrUrl, String& bstrWebTemplate, Int32& plWebTemplateId)

How to solve?

Go to CodePlex and find then download STP Inspector. Unzip and then run that app with the STP file you are trying to debug on the server you are trying to deploy the template file to

“STPInspectorWin.exe” will tell you the error. If it says you are missing a feature, export the stp file, then rename it to a CAB file and modfiy the manifest.xml file inside the CAB. Use the STP Inspector to find the missing GUID and do a search then remove that line from the xml manifest.

Repack up all the files in the STP file and the new manifest.
You should google and then use CABARC.EXE. Its a free ms tool. What I did was extract everything in the cab into a folder called test, then go to the command prompt and type in
cabarc N

Example:
C:\stp\BIN>cabarc N test1.cab C:\stp\BIN\Test\*.*

If your Template file is too large, you can change the size limit by using this command:
stsadm -o setproperty -propertyname max-template-document-size -propertyvalue 524288000

  • Twitter
  • Digg
  • del.icio.us
  • Propeller
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Mixx
  • Yahoo! Buzz
  • NewsVine
  • Facebook
  • Google Bookmarks

Steps to Rename SharePoint Servers

/* Posted February 3rd, 2009 at 9:32am [Comments: none] */
/* Filed under Microsoft, SharePoint */

Steps to Rename SharePoint Servers:

Run stsadm command after the server has been renamed:
stsadm -o renameserver -oldservername -newservername

Recreate Central Admin:
psconfig -cmd adminvs -provision -port 22222 -windowsauthprovider “onlyusentlm”

Go into Central Admin and Rename AAM’s

  • Twitter
  • Digg
  • del.icio.us
  • Propeller
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Mixx
  • Yahoo! Buzz
  • NewsVine
  • Facebook
  • Google Bookmarks

SharePoint: The following users do not have e-mail addresses specified

/* Posted January 22nd, 2009 at 3:19pm [Comments: none] */
/* Filed under Microsoft, SharePoint */

In practice it would be invalid to pick someone to whom you have not granted access to the site. Although the alert setting would be created, nothing would ever be sent to a user that has no rights to a site except for a notice that the alert was created.

People (site collection users) and profiles are not the same thing, but there is synchronization. If you add a user to a site and they were not previously in the site collection, they get added to people on that site collection and I’m not sure when their email address is looked up from the profiles (I think it depends – immediate if you send them a welcome email, and slightly delayed if you don’t).

If you try to set up an alert for someone who has not been previously added to a site collection (or for any other reason does not have an email address – like most administrator accounts, many temporary accounts, etc.) you will get the message (trapped error):

The following users do not have e-mail addresses specified: Username, David. Alerts have been created successfully but these users will not receive e-mail notifications until valid e-mail addresses have been provided

Set my e-mail address...
Troubleshoot issues with Windows SharePoint Services.

Where “Username, David” was my demo user. The “set my email address” won’t work for non-administrators and the “troubleshooting” won’t be much help, but the main part of the message is correct – the alert is created. If the user has a profile with an email address, the system will set it up in the background and the user WILL get alerts IF there is anything they can access (but clearly the user still needs access to the site). If you had previously added the user to your site, you don’t see this message after the email address has been synced.

  • Twitter
  • Digg
  • del.icio.us
  • Propeller
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Mixx
  • Yahoo! Buzz
  • NewsVine
  • Facebook
  • Google Bookmarks

SharePoint: Deep Diving with Cross Forest, Multi Forest Configuration and Additional Info

/* Posted January 22nd, 2009 at 10:00am [Comments: 1] */
/* Filed under C#, Microsoft, SharePoint */

Deep Diving with Cross Forest, Multi Forest Configuration and Additional Info

From Joel Oleson’s Blog URL: http://blogs.msdn.com/joelo/archive/2007/03/08/cross-forest-multi-forest-configuration-additional-info.aspx:

Background
The people picker works in cross domain or cross forest environment. It works in both-way trust and one-way trust environment.
Out of the box, if the admin does not do any configuration, the people picker will issue queries to all two-way trusted domains and two-way trusted forests to search people & groups.
The people picker uses the application pool account to search the target domains and forests. If the application pool account does not have permission to the target domains or forests, or the admin want to use different account to search the target domains or forests, the admin could should use
How to Configure
Don’t forget to run stsadm.exe –o setapppassword –password on all machines in the farm where SharePoint is installed

1. Run on every WFE.
stsadm.exe -o setapppassword -password

2. Run on one WFE
stsadm.exe -o setproperty -url ...

What we have found:

Read more »

  • Twitter
  • Digg
  • del.icio.us
  • Propeller
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Mixx
  • Yahoo! Buzz
  • NewsVine
  • Facebook
  • Google Bookmarks

SharePoint Search Web Service Error: Attempted to perform an unauthorized operation

/* Posted January 9th, 2009 at 8:29am [Comments: none] */
/* Filed under C#, Microsoft, SharePoint */

Server was unable to process request. —> Attempted to perform an unauthorized operation


queryService.Credentials = new System.Net.NetworkCredential(“username”,“password”,“domain”);

or you may want to try different passing

queryService.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials;

or

NetworkCredential networkCredential = CredentialCache.DefaultCredentials.GetCredential(new Uri(queryService.Url), “NTLM”);

or

queryService.Credentials = networkCredential;

queryService.Credentials = System.Net.CredentialCache.DefaultCredentials;
queryService.PreAuthenticate = true;

What we found the error to be was:
1. Check to make sure account you are logging in with has authority to do so.

2. Make sure that you are able to connect to the sites search service (IE, make sure its working properly) Try to connect to other search services to debug issue – Most times default credentials so not work and you will need to login.

You can try to use the Search Service tool here:
http://www.mosssearch.com/searchwebservice.html
But that only allows you to login with default credentials and may fail some of the time.

  • Twitter
  • Digg
  • del.icio.us
  • Propeller
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Mixx
  • Yahoo! Buzz
  • NewsVine
  • Facebook
  • Google Bookmarks

SharePoint Site Templates by name for code and stsadm use

/* Posted January 8th, 2009 at 4:19pm [Comments: none] */
/* Filed under Microsoft, SharePoint */

SharePoint Site Templates by name for code and stsadm use

WSS Templates

Team Site: STS#0

Blank Site: STS#1

Document Workspace: STS#2

Wiki Site: WIKI#0

Blog Site: BLOG#0

Basic Meeting Workspace: MPS#0

Blank Meeting Workspace: MPS#1

Decision Meeting Workspace: MPS#2

Social Meeting Workspace: MPS#3

Multiple Meeting Workspace: MPS#4

MOSS Templates

Document Center: BDR#0

Site Directory: SPSSITE#0

Report Center: SPSREPORTCENTER#0

Search Center with Tabs: SRCHCEN#0

My Site Host: SPSMSITEHOST#0

Search Center: SRCHCENTERLITE#0

Personalisation Site: SPSMSITE#0

Collaboration Portal: SPSPORTAL#0

Publishing Portal: BLANKINTERNETCONTAINER#0

Publishing Site: CMSPUBLISHING#0

Publishing Site with Workflow: BLANKINTERNET#2

  • Twitter
  • Digg
  • del.icio.us
  • Propeller
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Mixx
  • Yahoo! Buzz
  • NewsVine
  • Facebook
  • Google Bookmarks

SharePoint Error and Resolution: SharePoint, Failed to connect to the configuration database.

/* Posted December 24th, 2008 at 11:25am [Comments: none] */
/* Filed under Microsoft, Programming, SharePoint */

I was getting this error in SharePoint and tried searching on it with no answers.

12/23/2008 14:41:17 6 ERR Failed to connect to the configuration database.
An exception of type Microsoft.SharePoint.Upgrade.SPUpgradeException was thrown. Additional exception information: An error has occurred on the server.http://go.microsoft.com/fwlink?LinkID=96177
Microsoft.SharePoint.Upgrade.SPUpgradeException: An error has occurred on the server.http://go.microsoft.com/fwlink?LinkID=96177
at Microsoft.SharePoint.Administration.SPContentDatabase.ValidateDatabaseSchemaCompatibility()
at Microsoft.SharePoint.SPSite.PreinitializeServer(SPRequest request)
at Microsoft.SharePoint.SPWeb.InitializeSPRequest()
at Microsoft.SharePoint.SPWeb.EnsureSPRequest()
at Microsoft.SharePoint.SPWeb.get_Request()
at Microsoft.SharePoint.SPListCollection.EnsureListsData(Guid webId, String strListName)
at Microsoft.SharePoint.SPListCollection.EnsureListsData(String strListName)
at Microsoft.SharePoint.SPListCollection.Undirty()
at Microsoft.SharePoint.SPBaseCollection.System.Collections.IEnumerable.GetEnumerator()
at Microsoft.SharePoint.Administration.SPAdministrationWebApplication.get_AdministrativeTasks()
at Microsoft.SharePoint.Administration.SPAdministrationWebApplication.EnsureSystemTask(String title, String description, Int32 priority, String actionTitle, String actionUrl, String service, String systemId)
at Microsoft.SharePoint.Administration.SPWebApplication.Provision()
at Microsoft.SharePoint.Administration.SPWebServiceInstance.Provision()
at Microsoft.SharePoint.Administration.SPFarm.Join()
at Microsoft.SharePoint.PostSetupConfiguration.ConfigurationDatabaseTask.CreateOrConnectConfigDb()
at Microsoft.SharePoint.PostSetupConfiguration.ConfigurationDatabaseTask.Run()
at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()

If you are in a Server Farm, make sure all SharePoint Servers are updated to the same level.
(Add/Remove Programs, Check the show updates on the top)

If not find SharePoint Updates.

  • Twitter
  • Digg
  • del.icio.us
  • Propeller
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Mixx
  • Yahoo! Buzz
  • NewsVine
  • Facebook
  • Google Bookmarks

SharePoint C# – SecurityException: WebPermission Request Error

/* Posted June 16th, 2008 at 1:47pm [Comments: 6] */
/* Filed under C#, Microsoft, Programming, SharePoint, Windows */

Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application’s trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type ‘System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′ failed.

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.

If you care getting the error above in SharePoint, there is a simple work around to get your code to work.

1. Open the wss_minimaltrust.config located: “C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\CONFIG”

2. Under the XML section <namedpermissionsets> and under the last <permissionset> add


<ipermission>
class="WebPermission"
version="1"
Unrestricted="true">
</ipermission>

3. Save the file and you are good to go!

  • Twitter
  • Digg
  • del.icio.us
  • Propeller
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Mixx
  • Yahoo! Buzz
  • NewsVine
  • Facebook
  • Google Bookmarks

Create ID Field in SharePoint List

/* Posted June 2nd, 2008 at 4:45pm [Comments: none] */
/* Filed under Microsoft, Programming, SharePoint */

This seams to be a common problem, and one that I get many calls from users about:

I have a query with our Sharepoint site and was advised that you were probably the best person to ask.

I have created a list under:

http://sharepoint/sites/department/Lists/ListName/AllItems.aspx

I need the first column (Issue ID) to be an automatically generated number but can’t seem to get it. Would it be possible for you to take a look and advise?

You can’t add a new unique auto-generated ID to a SharePoint list, but there already is one there! If you edit the “All Items” view you will see a list of columns that do not have the display option checked.

There are quite a few of these columns that exist but that are never displayed, like “Created By” and “Created”. These fields are used within SharePoint, but they are not displayed by default so as not to clutter up the display. You can’t edit these fields, but you can display them to the user. if you check the “Display” box beside the ID field you will get a unique and auto-generated ID field displayed in your list.

  • Twitter
  • Digg
  • del.icio.us
  • Propeller
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Mixx
  • Yahoo! Buzz
  • NewsVine
  • Facebook
  • Google Bookmarks