Moss Errors And Their Fixes

Some microsoft office sharepoint server errors and their fixes or workarounds. Hopefully these make a few lives easier….. Apologies for the crudeness of the writing, these are just coming straight from my personal ‘moss errors and their fixes’ database……with a very little or no editing at all……….

In order to go directly to the error/fix that you are looking for, press Cntrl+F, put your keywords in the “Find” text box and press “Next”…

Your backup is from a different version of Windows SharePoint Services and cannot be restored to a server running the current version. The backup file should be restored to a server with version ‘’ or later.

Install Infrasturcture update for wss.
(if done check for infra update for moss). sp1 for both moss and wss.

Configuration wizard Fails at the very end on 8th task.

check upgrade log and most importantly event viewer. event viewer gives good info. My problem was resolved using event viewer. It told me that it was looking for assemblies in GAC which were deployed using solutions but could not be found. I had retracted the solution. So I redeployed and the assemblies were in place and configuration wizard ended successfully.

Solution is not being deployed or retracted. It says scheduled but do nothing although you selected deploy NOW as the option.

go to command prompt and run stsadm -o execadmsvcjobs, it will retract or deploy what ever was waiting and doing nothing.

Create Hierarchies option for language variation doens’t work.

Do not run variation simply logging into site using browser (may it be an administrator). You must be directly logged into the machine or should be using remote session like mstsc (Remote Desktop Connection).

Content Type Mismatch error while running sharepoint language variations.

First check if it is a default.aspx page or not. If default page, then it should fail since anything related with site definition like default page should not have custom content type for variation to run successfully. If it has a custom content type then you must provided custom site definition.

If it is not a default.aspx page then this should not stop variation from running since the page is not the part of the site definition.

A broken kind of page is displayed with error message ‘An unexpected error has occured’.

you might be typing an incorrect url e.g. instead of, you might be typing i.e. intl is missing. This is when a site is extended from the other. Look for the difference of https and http.

ssl site is not being restored.

Always restore ssl on a non ssl web application. Then you can extend it to an ssl port. Experience says ssl sites are not restored on ssl web applications.

Error in red on right hand top corner of Central Administration page saying “Server Farm Configuration Not Complete”.

go to central admin->app mgmt->under Office Sharepoint Server Shared Services->click Check services enabled in this farm. Enable everything here. To enable search give full user name i.e. domain\username or machine\username.Then you also need to create SSP. then go again to check services enabled in this farm. One more task to enable search for ssp would appear. enable it and error will go.

A broken kind of page is displayed with error message ‘File not found’.

You may have just enabled SSL and trying to access your site using new https url but you forgot or havent set alternate access mapping for SSL url in Central Admin for your site. Go to Cental Admin and App Mgmt and Alternate Access Mapping. Edit public urls, select your web application and add the ssl url along with ssl port in any of the internet, extranet or custom boxes.

The content was not being crawled. Error shown in crawl log was “SSL certificate sent by the server was invalid and this item will not be crawled”.

Go to Central Administration->Application Mgmt->under Search->click Manage search service. On the page click “Farm-level search settings. On this page at the bottom fill the check box saying “Ignore SSL certificate name warnings”.

Explorer view not working. My network place not working (creating new network place for a document library). IE->file->open->’open as a web’ folder not working. Upload multiple files not working. Open with windows explorer in document library not working. Edit in Datasheet view not working.

Install office 2003. All started working instantly.

Approve or publish in bulk. Approve publish items together in one go.

Use Site Content and Structure. Select items together, cilck Actions and perform whatever you like.

Search is not working.

Make sure pages are published, approved and checked In (if you have made some changes to them and want to search based on those changes eg. properties), run incremental crawl and search!

Assuming that scopes are already created and they show crawled items in them (if using scopes).

If images are not displayed on sharepoint site.

Make sure images are checked In, Published and approved. (and ofcourse have permissions to access them).

The site collection could not be restored. If this problem persists, please make sure the content databases are available and have sufficient free space.

The error was due to the size problem of database. The sql server was not fully licensed version, like sql express or something. The site we were trying to restore was bigger than 4096 MB. And the error we caught from Event Viewer said:

“CREATE DATABASE or ALTER DATABASE failed because the resulting cumulative database size would exceed your licensed limit of 4096 MB per database.”

So our license did not allow creating databases larger than 4096 MBs.

Steps if publishing infrastructure is not getting enabled (this may not be an error, jus the way to do it)

go to iis and change the application pool of the web application to the one for Central Admin. Do iisreset. Go to the site and enable publishing infrastructure feature. Go back to iis and change app pool back to the original and iisreset.

Exception from HRESULT: 0x80040E14

It means the SQL server has run out of space for either the logs or the data file. Simply delete some un-needed files from the Hard Disk Drive that the SQL server is writting to and it fixes the problem.

Code Block 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 abcd.aspx. Code blocks are not allowed in this file.

To get this working you need to modify the web.config of your web application. For instance, if you want to allow server side script on pages from the masterpage & pagelayout gallery you have to modify the PageParserPaths into:

<.pageparserpath virtualpath=”/_catalogs/masterpage/*” compilationmode=”Always” allowserversidescript=”true” includesubfolders=”true”.>

To find out version of SharePoint:

Go to Site Settings, it is displayed on that page. You can also go to control panel, select MS Office Sharepoint Server, and click “Click here for support information” on it, this will also show you the version number, but note this could be the old one……in site settings the latest version is displayed…like the updated version after infra update.

SSP gives error:

The following error occurred while querying database ‘SharedServices1_Search_DB’ on server ‘sydsrvprod0003\sql2005’: (4060) Cannot open database “SharedServices1_Search_DB” requested by the login. The login failed. Login failed for user ‘SYDNEY\mossadmin_49’.

Use a different databse name…sql server could be shared and same database name may already exist there and your login obviously do not have rights on it.

“I need to” web part generates following error when put on a master page:

Error “Value cannot be null. Parameter name: webNode” occured processing your request. Review the error message and correct the problem….

Site Directory is not created for the web part. Site Directory has a list named “Sites” which is used by “I need to” web part which is not available to the web part. Create site directory and the error should disappear….

Configuration wizard failed with “system error code 122″ and then with “system error code 997″. “Error during encryption or decryption”.

Fix25 (Click Here):

Title field is set as required in one of the Content Types used in a doc lib. However, when you open the document in Office and save it without providing any value for Title field, the document is saved, then Office will ask if you want to “check in” the doc, you will say Yes and select Major Version: At this point you receive an error message saying:

“Cannot perform this opertation. The file is no longer checked out or has been deleted.”


“This file could not be checked in because the original version of the file on the server was moved or deleted. A new version of this file has been saved to the server, but your check-in comments were not saved………To save comments with the new version of this file on the server, you must delete the local copy of this file, check out the file from the server again, and then check in the file with any comments you want to add.”

Fix26 (Click Here):

A link was provided in the site that pointed to something. This link had “/_layouts/….” in it. So there was something under “/_layouts/…..” it was pointing to. Users received IE errors saying: “the Website declined to show this web page…….the website requires you to log in.”

Fix27 (more or less 🙂 (Click Here):

Sharepoint generates an error message that you “cannot create the database” while creating a new web application.

Even if you are a DBO, you do not have rights to CREATE a new database. Get dbcreator rights on SQL Server and you should be good to go (at server level……Server Roles->dbcreator). Remember, these rights should be granted for the user account being used to create the web application (i.e. the current windows user and not the service account………assuming that you will be authenticated against your windows account on the SQL Server).

A DBO has full permissions on his own database, but creating a new database is a server level task and needs server level permissions.

In content query web part you are applying a filter on a yes/no field. Its not working.

Fix:If its a yes/no field, it will not work using ‘Yes’ or ‘No’ in the filter……..use 1 for ‘yes’ and 0 for ‘no’. This is only for content query web part, it wont work in Settings of a list e.g. Calendar.

copy items from one list to another.

Best way is to use Manage Content and Structure option, all metadata also moves with the items. If content and structure view is not available (may be you are working with a team site or something), copy the URL of “content and structure” from some where and use it for your site, content and structure page will appear.

List templates does not appear on the ‘create page’, though they are available in the list template gallery.

May be you took the list template from one site collection (e.g. SiteCol1) and moved it to the another (e.g. SiteCol2). Look KB Article here:

Workaround: Create any list in SiteCol2 e.g. ‘My Issues List’ using ‘Issue Tracking Template’ which is available by default. Now create a template of ‘My Issues List’. Now go to template gallery. You will see every template has a Name and a Feature ID. Note the Name and Feature ID of the template that is not appearing on the ‘create page’. Go back to the ‘create page’ and click the newly created template i.e. ‘My Issues List’ template. Do NOT create a list using this template. In the address bar above, you have to edit the URL. you will see that name and Feature ID of the template are given in the URL, change these with the template that is not appearing on our ‘create page’. Now copy the URL and paste it in a new window and press enter. Make sure the name and Feature ID remains the same (i.e. the changed ones, sometimes it will absurdly change the name back to original, so be careful). Create your list. This will be the list created using the template that does not appear on the ‘create page’.

I had to move data from an issue list to a different issue list in a different web app and a different site collection. Include Content option was freezed. Even if it was enabled, it may well have said that you cannot included content since the list is too large. So, saving list as template was useless. Save the whole site as template didnt work either as the list still came without content. DontSaveInTemplate flag was perhaps set as TRUE for the list see here: and here:, a little difference in what the two say. Anyway, Manage Content and Structure was not an option as these were different web apps. Though, I was able to restore the full source site collection in my new web app under /sites but still Manage Content and Structure will show only one site collection at one time i.e. either the one at the root or the one under /sites….so copy/paste between lists was not possible. Export/import from spreadsheet didnt work accurately. copy/paste from Datasheet view also failed generating errors. Content Deployment failed because I already had a different site collection in place and content deployment will need exactly the same site collection or a blank one.

So, what I did was to use stsadm export/import command:

stsadm -o export -url http://..... -filename "c:\abc.exp" -versions etc etc.

Once you have the exp file, create a blank site on the destination and run import command:

stsadm -o import -url http://...... -filename "c:\abc.exp"

The only other way to backup/restore a subsite (web) was through sharepoint designer (Site Menu->Administration->Backup/Restore). I backed it up and it was successful but didnt try restore as export/import through stsadm already worked for me. This should also work I think.

Timer Job not running……

Restart the Timer Service. My job started running.

Timer Job doesnt run updated code….

Restart Timer Service.

Restored a site……and workflows doesnt start……

They wont start like this. Go to deisgner, some fields will be showing IDs, just click and double click on them and they wil be auto recognized……still workflow will not start…… do exactly as said……delete all workflows on the list……….come back to designer and open workflow and click finish….it will be deployed to the list……remain here and open the workflow again and click finish to deploy again……… if you go to list u’ll see that one of the workflow will have the Full Name and the other with Full Name and “Previous Version……..” specified………..delete the previous version one and u shd be good to go……………..Remember it is not like YourWorkflow and YourWorkflow(1)……in this condition it will fail…..the one with (1) will work…….the workflow shd have “Previous Version………” specified on the right in brackets……

If javascript is not working …..and gives error that init.js is not registered…..

You might be using IE 32 bit instead of IE 64 bit………go to Start Menu and fine IE 64 bit and run and all should be running fine……search it over the internet and u’ll find a very nice blog with all details to fix it for 32 bit.

You are trying to update a list item or creating/adding a new one programmatically…….and you get the error “security validation for this page is bla bla bla….click back to refresh your browser…..

web.allowunsafeupdates = true;

U2U Caml builder query doesnt work properly.

dont use <query> attribute at the start and end. Also, if you copied query from the builder, it may not have copied it correctly… happened to me… missed one </And> and i was miserable… make sure your query is correct……u need to double check….

“object reference not set to an instance of an object”

could be a data problem….highly likely…..could be missing data in some field…….Always put validation on user inputs

The workflow doesnt start automatically. Following error in the event log:

“Error loading and running event receiver Microsoft.SharePoint.Workflow.SPWorkflowAutostartEventReceiver in Microsoft.SharePoint, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c…..Additional information is below.
: The Web application at could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application….”

The problem was with the URL. From the VM, we had to use the prefix of to access the site. This was not being liked by the workflow. I went to the server itself, there we didnt need the prefix and created the workflow using URL address as http://wswv01:8888, it started automatically.

gacutil /i “$(TargetPath)” as a post build event doesnt run……exited with code 9009 or code 1.

if code is 9009, add gacutil in PATH variable. if code is 1, then are not running Visual Studio “run as administrator”. Close visual studio, right click and “run as administrator”, open ur project and build again and it should be fine, the post build event for gacutil should run.

“The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again.”

foreach (SPListItem listItem in itemCol)
m_web.AllowUnsafeUpdates = true;
StopOldWorkflow(listItem, m_web);
StartWorkflow(listItem, wfName);
m_web.AllowUnsafeUpdates = false;

first and last lines solved the problem (i.e. allowunsafe……), however, note that before i had put them in stopworkflow….and not in startworkflow…..and the error message came…..i removed from stopworkflow…..and added as in the loop above and was fixed…..

The DataSourceID of ‘QuickLaunchMenu’ must be the ID of a control of type IHierarchicalDataSource. A control with ID ‘QuickLaunchSiteMap’ could not be found OR DataSourceID of ‘TopNavigationMenu’ must be the ID of a control of type IHierarchicalDataSource…

Resotre and old web.config. there are backups of web.config in inetpub/virutaldirectories/wss/…..Just restore an old one.

The EXECUTE permission was denied on the object ‘proc_GetWebFeatureList’, sp_admin ……………

ur app pool account has not proper permissions…………try using Local System, it has max permissions, once its working, so u know ur problem……..then give proper permissions to ur app pool account…….usually a problem with permissions on stored procedures……….I used Local System and it worked………its a bit tricky, coz IIS changes it back even if u change it……..i had to change it many times, iisreset etc……at the end had to fix Local System then restart machine and then it worked……

503 Service Unavailable in IIS 7 – watch those Application Pools
The farm is unavailable
Object reference not set to an instance of an object.
the farm is unavailable

So you’ve set-up your account to be a farm admin, and you’re trying to deploy your solution. But you get the message above.
That is because, even though you are a farm admin, your account does not have the proper permissions to the SQL database.
Check that first. Keep in mind, in 2007 certain update could cause this behavior, in which case just restart the DB service.
………u dont have permissions on the db server even if u r machine admin!, wont let u install feature………so use
service account to keep it easy…..The following permissions are required to allow you to deploy a solution:

Farm Administrator (Central Admin)
db_owner and db_securityadmin on the config database
Local admin on the servers

Error: cannot connect to performancepoint services

Here is what worked for me:
Go to Central Admin > Application Management > Configure service application associations > click default.
You should see that PerformancePoint Services will be unchecked. Check that box and you should be good to go.

failed to create receiver object System.ArgumentNullException: Value cannot be null.Parameter name: type

Make sure there are no typos in the feature.xml. IISRESET fixed it for me.

The operation that you are attempting to perform cannot be completed successfully. No content databases in the web application were available to stor
e your site collection. The existing content databases may have reached the maximum number of site collections, or be set to read-only, or be offline
, or may already contain a copy of this site collection. Create another content database for the Web application and then try the operation again.

You are trying to restore a site on a path for which no content database exist e.g. an explicit managed path……no content db exists for a managed path until you create an additional one……..content db for the root will not be used for the managed path if you are restoring a site collection on that path, u’ll need to provide a separate new content db…..go create a new one in CA…then restore and it will automatically be picked up.

The term ‘Get-SPWeb’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Get_SPWeb is not a builtin command for powershell, load sharepoint assembly. put the following in your script:
Add-PsSnapin “Microsoft.SharePoint.PowerShell”

If your error is “The term xxxxxxx.ps1 is not recognized………………”, you could be getting this error coz you are not running your script from the directory it resides in………two things to do here: 1. you should go to the path where script resides 2. load powershell e.g. PS C:\MyScripts> ……….. which means that you are on powershell command prompt and your script resides in MyScripts directory.

In powershell: Cannot complete this action, please try again later.

$web = Get-SPWeb $URL
$spView = $web.GetViewFromUrl(“/Lists/Report Catalog/AllItems.aspx”)

Remove the first slash in the URL:

$web = Get-SPWeb $URL
$spView = $web.GetViewFromUrl(“Lists/Report Catalog/AllItems.aspx”)

when u deploy ur solution u get error saying feature is already installed………

uninstall the feature using stsadm command and try installing ur solution again…if solution is deleted or removed without retracting……it will leave features behind…….u can delete a solution using stsadm without retracting it when it was an Errored deployment of the solution or something like this……which is bad….thats why features remain in there…….retracting i.e. remove all the features, web parts etc then delete.
Solutions are added, deployed and deleted (stsadm)
Features are installed and uninstalled (stsadm)

Feature deployment error : parameter:type value cannot be null………..

it was again IISRESET…….clean everything, proper retract, remove, uninstall all the features, clear gac and NOW do an IISRESET and run the deployment, u shd be ok inshaAllah……..make sure your Assembly and Assembly class in ur feature xml are correct, if class is mentioned but u mentioned only upto namespace in that attribute, u get this error. so add full namespace dot classname and no .cs in the class attribute.

Error occurred in deployment step ‘Activate Features’: Feature with Id ‘9d070bbb-7b79-4374-a64f-ff4afe36cb6e’ is not installed in this farm, and cannot be added to this scope.

In visual studio, Feature ID in properties window is different from Feature Id mentioned in feature xml (in visual studio). Also could be that feature id is different in Visual Studio UI than in the physical repository of the project on the file system .

“content type publishing” link missing:

the TaxonomyFeatureStapler feature does not include the Blank Site template.
You probably don’t want to go back and recreate your site collection again, so you can activate the feature manually by typing the following stsadm command:
stsadm -o activatefeature -id 73EF14B1-13A9-416b-A9B5-ECECA2B0604C -url http://toplevelsiteurl

Programmatically You are upating list item…….and you get the error “Save conflict Your changes conflict with those made concurrently by another user. If you want your changes to be applied, click Back in your Web browser, refresh the page, and resubmit your changes”.

While updating at one place, the item is also being updated at another place. For ex, you are updating the item, due to which the item updated event handler is called, which also tries to update the item, so conflict………e.g. i had the item , then i deleted the attachment from the item in another func….so item is changed/updated, remem item.update() is not called when attachment is deleted, just attachment.delete() is enough, however, the item got updated/changed, now if u’ll try to update the item again using the same splistitem, it will give u above error…….so remove such update from somewhere above, let ur update run and may try to run the above update afterwards……or get splistitem again from scratch.

bidWeb.CreateDefaultAssociatedGroups(siteOwner != null ? siteOwner.LoginName : “”, “NT Authority\\Authenticated Users”, bidWeb.Title); bidWeb.Update(); does not create visitors group, creates only owner and members group

use this:
bidWeb.AssociatedVisitorGroup = null;
bidWeb.CreateDefaultAssociatedGroups(siteOwner != null ? siteOwner.LoginName : “”, “NT Authority\\Authenticated Users”, bidWeb.Title);

Custom people picker browse button doesnt work

There’s a space in the field name, when the page is rendered the javascript generated by sharepoint doesnt work due to that space….remove the space from the field name.

soap:ServerServer was unable to process request. —> A Web Part or Web Form Control on this Web Part Page cannot be displayed or imported because it is not registered as safe on this site. You may not be able to open this page in an HTML editor that is compatible with Microsoft SharePoint Foundation, such as Microsoft SharePoint Designer. To fix this page, contact the site administrator to have the Web Part or Web Form Control configured as safe. You can also remove the Web Part or Web Form Control from the page by using the Web Parts Maintenance Page. If you have the necessary permissions, you can use this page to disable Web Parts temporarily or remove personal settings. For more information, contact your site administrator. OR

A Web Part or Web Form Control on this Web Part Page cannot be displayed or imported because it is not registered as safe on this site………while trying to add your custom webpart on the page.

1. Open the site, for example http://mossportal/site/default.aspx
2. add “?contents=1” to the end of url, like this: http://mossportal/site/default.aspx?contents=1
3. You have a Web Part Page Maintenance and if you have some web part error delete it
4. Open the page with SharePoint Designer and all work correctly

Or did you change the namespaces of your artefacts e.g. visual web parts…..make sure you change it everywhere i.e. .webpart .designer .ascx .cs etc etc…………it happened to me because of this.

Not able to connect term store with a user profile property, you attach but it does not appear in Edit Details page. Cannot modify a term set.

Go to your Managed Metadata Service, clicking it will open Term Store Mgmt Tool, add your administrator account or any account you wish in Term Store Administrators section……..this should be done while “Managed Metadata Service” is selected on the left hand side. Now login with the just added account and you should be able to add term sets etc. Now make sure that your term set appears here as well, or create here, coz you might have created your term set at site collection level by going in Site Actions, site settings, term store mgmt………those terms will work only within the site collection…properties are outside of site collection, unfortunately they can see this term set, connect to it but will not appear on Edit Details page of user profile. so connect with term set that is created at service level, it shd work. (not tested: see if some pushing is required.)

you are missing ispostback property i.e. Page.IsPostBack from a page or user control or visual web part. you type page. and do not get all page properties, just three stupid properties…

your function could be using “static” parameter i.e. private static void myfunc()………remove static and you should get all the properties including ispostback.

Some fields are installed improperly…

could happen if you are using spquery and using incorrect column name…….remember spquery needs internal column names………..either the query has wrong name or the field really is corrupted……the easiest check probably is to use U2U and run a query, see if it works, if it doesnt it means something really is wrong, figure out on the list column or the query……..try to run the same query in another environment on the list of same kind… on and so forth……Deleted the column and recreated it…it was number, i deleted and recreated as text, put values back in and it fixed the issue… see deleting and recreating fixes it……….if not try changing column type as well…..It could be that if you create Number field programmatically, it creates a problem………known issue may be…….changing to Text worked for us……

Both ‘CustomDocuments’ and ‘CustomDocuments’ contain a file that deploys to the same Package location: CustomDocumentsListInstance\CustomDocuments\Elements.xml

First check all features in design view, ur artefact may be present in more than one features…..happened to me……if not then keep reading ……….This is confusing since I only see one file listed. Why is it saying the same item is trying to deploy to the same location, as if it were two different files? Turns out that when you add an item to a SharePoint item (sucn as a module, list definition, list instance, etc.) it adds a reference to it to the .spdata file in that folder. (If you can’t see the spdata file, click on the “Show all files” button in the toolbar of your Solution Explorer.) You’ll most likely find duplicate entries in there, or the wrong folder name if you changed the folder name to something else. Make your changes to the spdata item and your solution should package properly.

type is not registered as safe

It could be that you have an extended web app to which u are deploying, check its web.config………..also more importantly, it could be that you have multiple front ends………..check ur package in VS in xml view and u might not find the safe control in there……add it using designer, if its not a webpart, just add another safe control to an existing web part…..u can do that using desinger……..check spellings……make sure safe control exists in all web front ends and is registered on the page as well as <@regisgter…………..If you updated a web parts namespace, you need to update all the files manually in the webpart, in visual webpart they are 6 in visual studio and one (.spdata) on the file system…..this spdata has a namespace reference and THAT reference is written to web.config… make sure you change it as well…..

Stop an item from being added on ItemAdding, you go to error page when you use the following code:
properties.Cancel = true;
properties.ErrorMessage = “Only ” + Config.ListItemLimit + ” items are allowed in this list. Remove old items to add new.”;

Switch ON custom error mode and CallStack should be off in web.config…..

Pages library exists but it says in Logs: The site is not valid. The ‘Pages’ document library is missing. at Microsoft.SharePoint………….When you try to create a page using content type, it throws an exception on the page……

SharePoint uses __PagesListId to access lists i.e. list Ids…….a pages library may be called Seiten in german language sharepoint, so names cant be used………list id is lost by sharepoint internally in this scenario……fix the list id, run the powershell below………

# Load SharePoint DLL
Add-PSSnapin “Microsoft.SharePoint.Powershell”
$web = Get-SPWeb http://uwsp2010dev-1/my
$correctId = $web.Lists[“Pages”].ID
$web.AllProperties[“__PagesListId”] = $correctId.ToString()

Item updated not firing, item added firing……

make sure item added and updated has different sequence numbers when they are added……..overall if you have four event handlers i.e. added/adding and updated/updating….keep one set 10001 and other set as 10002….
AddListEvent(list, SPEventReceiverType.ItemAdding, asmName, className, 10001, null);
AddListEvent(list, SPEventReceiverType.ItemUpdated, asmName, className, 10002, null);

assign documenttemplate to a content type and u get “value does not fall within the expected range”………

myContentType.DocumentTemplate = “/_cts/MyCVTemplate/template.docx”…………….must give it a relative url……http:// should not be in the url……..also if latter doesnt work, try using docx instead of dotx……also try going to document properties and clean it, u can do that in word……

Hope this helps–

  1. March 10, 2009 at 7:00 am

    all in one search engine

  2. March 10, 2009 at 10:41 pm

    welcome back bro!

  3. Saurabh Kumar Singh
    May 15, 2009 at 8:32 pm

    I am just associating a custom Event handler feature with SharePoint “User Information” list, for creating a copy of newly added user in another sharepoint custom list with the help of “ItemAdded” event handler, which will maintain user profile but it doesn’t seems to fire ItemAdding event with “User Information” list.
    I have read this article: “”.
    So, can you please suggest me that how can i handle events for “User Information” list?

    Thank you,
    Saurabh Kumar Singh

  4. Umar
    December 8, 2009 at 3:01 pm

    BRAVO . Nice Job . One of the best Blogs I have ever read .

  5. December 9, 2009 at 1:43 am

    Thanks Umar!

  6. Gautam
    December 9, 2009 at 1:35 pm

    Great and useful post.

  7. December 9, 2009 at 2:54 pm

    Thanks Gautam!

  8. TT
    February 12, 2010 at 8:04 am

    Tried to fix Error13: but nothing happened. I installed Office 2003 in server. Should I restart server?

  9. April 12, 2010 at 1:48 am

    yep, worth trying, should work though in my opinion.

  10. May 17, 2010 at 1:56 am

    Im new here . I want to say hello for everyone.

  11. AfriBuilder
    September 10, 2010 at 5:31 pm

    I was customizing the Content Query Web Part (CQWP) in SharePoint Designer but might have accidentally altered something in the code. I get the following error message when I try to add the CQWP to my page:
    Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Windows SharePoint Services-compatible HTML editor such as Microsoft Office SharePoint Designer. If the problem persists, contact your Web server administrator.

    I have read all sorts of advice from blogs and forums but yet to solve this problem.

    Does anyone know what I need to do just to restore the CQWP to its original, factory default.
    Thank You.

  12. shaik
    May 11, 2011 at 2:52 pm

    Nice Blog for error in moss….Thank you rehman

  13. June 19, 2011 at 10:04 am

    2nd try I won. It’s just a black background with a big white checkmark at the end.

  14. December 16, 2011 at 6:37 am

    Thank goodness some bloggers can still write. Thank you for this writing…

  15. August 1, 2012 at 4:24 am

    Where can I get good templates for my weblog?

  16. August 5, 2012 at 11:39 am

    Hi there, of course this post is actually good and I have learned lot of things from
    it on the topic of blogging. thanks.

  17. myfavoritelines
    November 9, 2012 at 10:56 am

    There must be thousands of us fixing Sharepoint problems like this all the time – a band of brothers … my latest issue is not being able to create a Search crawl schedule anymore – I get a security box and a ‘The Security validation for this page is not vaild’ error which is why I ended up here.

  18. stevenkor
    July 20, 2013 at 2:33 pm

    Just wanna add for other errors I use Long Path Tool ” useful in situations where you see these error messages: Cannot read from source file or disk, there has been a sharing violation, cannot delete file or folder, the file name you specified is not valid or too long, the source or destination file may be in use and many other file managing errors .

  1. January 4, 2010 at 9:27 am
  2. January 9, 2010 at 7:16 am

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: