This page has moved. You will be automatically redirected to its new location in 10 seconds. If you aren't forwarded to the new page, click here.

Search This Blog

Wednesday, December 31, 2008

SPQuery & CAML


 http://shaiju-sp.blogspot.com/

http://aravindrises.blogspot.com/

http://blogs.msdn.com/pranab/archive/2008/02/14/how-to-set-item-level-permission-for-sharepoint-2007-moss-wss-list-document-library-programmatically-part-2.aspx

http://www.developerfusion.com/community/blog-entry/8389447/how-we-did-it-automating-service-requests-using-infopath-forms-services/

http://www.windows-tech.info/6/5a56eccf1e58a850.php

http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/076c57b1-a780-4b86-b00b-849fa8789318/

http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/597f48ed-6824-4bca-bca4-870e45bc59b4/

http://www.codeplex.com/SPCamlViewer

http://www.dailycode.net/blog/post/SPQuery-One-or-more-field-types-are-not-installed-properly.-Go-to-the-list-settings-page-to-delete-these-fields.aspx

http://www.stum.de/2008/02/06/querying-the-person-or-group-field-using-spquery/

http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/4c37919f-f4e3-4e42-95d4-a810bdc6a71a/

http://www.beyondweblogs.com/post/SharePoint-Using-Queries-for-List-Data-with-CAML-in-WSS-30.aspx

http://www.zimmergren.net/archive/2008/05/05/how-to-easily-construct-your-caml-queries-with-spquery.aspx

http://aidangarnish.net/blog/post/2007/11/Using-SPQuery-and-CAML-to-filter-and-order.aspx

http://it.toolbox.com/blogs/sharepoint-blog/using-and-in-spquery-16956

http://www.sharepointblogs.com/ssa/archive/2007/06/15/using-quot-and-quot-in-spquery.aspx

Thursday, December 25, 2008

Unable to Copy file during Build

http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/68648642-08d8-4cff-b0c3-c2782f010589/

Sunday, December 21, 2008

Thursday, December 18, 2008

SharePoint Alert Timer Job

http://www.niral.net/blog/sharepoint-delay-activity-timer

Getting HTTP 404 error on SharePoint site

All of a sudden my power went out while I was working on my SharePoint site and my server went down. After power supply was restarted I could not open my sharepoint site and it was giving errors like:

Unknown error
an unknown error has occurred
and finally the HTTP 404 page not found error

When I checked the event viewer I could see the error as:

Event Type:    Error

Event Source:    Windows SharePoint Services 3

Event Category:    Database

Event ID:    3760

Date:        12/18/2008

Time:        3:52:30 PM

User:        N/A

Computer:    ***-******

Description:

SQL Database 'WSS_Content_8ddc90d116d0456a92bbf1934103b6f1' on SQL Server instance '***-******\OfficeServers' not found. Additional error information from SQL Server is included below.


 

Cannot open database "WSS_Content_8ddc90d116d0456a99bbf1914103b8f1" requested by the login. The login failed.

Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.


 

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


 

When I opened my SQL Server; I saw the above mentioned database had a (suspect) keyword associated with it. I performed a search for resolving suspect databases and finally I got this set of queries that resolved my problem:

EXEC sp_resetstatus 'yourDBname';
ALTER DATABASE yourDBname SET EMERGENCY
DBCC checkdb('yourDBname')
ALTER DATABASE yourDBname SET SINGLE_USER WITH ROLLBACK IMMEDIATE
DBCC CheckDB ('yourDBname', REPAIR_ALLOW_DATA_LOSS)
ALTER DATABASE yourDBname SET MULTI_USER

http://blog.cybner.com.au/2007/10/your-sql-2005-database-is-suspect.html

http://www.codeproject.com/KB/reporting-services/SQL_2005_Suspect_Database.aspx

Wednesday, December 17, 2008

“Collect Feedback” workflow not starting

I was activating a SharePoint built-in workflow on a document library but I got this error:


 

The workflow failed to start due to an internal error.

Troubleshoot issues with Windows SharePoint Services.

This error creates an event in the event viewer which goes like this:


 

The Execute method of job definition ScheduleAlertJob.ScheduleAlertJobDefinition (ID 73212e15-2ea1-4e19-8724-213e37e39f81) threw an exception. More information is included below.


 

Error saving file, access is denied or invalid path.

I resolved this issue by going to the top level website and in site collection features, activated "Routing workflows" feature.

More about SharePoint Workflows & Scheduling

http://office.microsoft.com/en-us/sharepointdesigner/HA101005871033.aspx

http://parkesy.wordpress.com/2008/07/18/sharepoint-incoming-emails-automatic-workflows-sorted-3/

http://blogs.interknowlogy.com/rodneyguzman/archive/2007/03/20/12405.aspx

http://www.articlealley.com/article_661904_10.html

http://stackoverflow.com/questions/349387/workflow-auto-cleanup-timer-job-does-not-run

https://www.surfgroepen.nl/_layouts/help.aspx?lcid=1033&cid0=MS.OSS.manifest&tid=MS.OSS.HA10154424

http://www.finalcandidate.com/en/tandp/Pages/SharePointWorkflow.aspx

http://groups.google.com/group/microsoft.public.sharepoint.portalserver.development/browse_thread/thread/73e1802ac9b4ae18

http://www.devx.com/webdev/Article/34032/1954

How to troubleshoot mysterious SharePoint errors

http://paulgalvin.spaces.live.com/Blog/cns!1CC1EDB3DAA9B8AA!154.entry

Wednesday, December 3, 2008

Troubleshooting SharePoint SMTP

I was getting this error when I sent an email using an SPD workflow:

"The e-mail message cannot be sent. Make sure the outgoing e-mail settings for the server are configured correctly"

When I checked the event viewer I found this error:

"An error occurred while talking to SMTP host"

I tested the SMTP by creating a simple aspx page which sent an email. This page was working correctly.

Following steps resolved the issue:

  • Use the IP address instead of the pc name in SharePoint SMTP settings
  • IIS Manager > SMTP Server > Properties > Access > Connections > Allow all except the following (make sure the list below is empty)
  • Also make sure that your SMTP defined in Central Admin > Operations and your SMTP defined in Central Admin > Application Management > Outbound SMTP Settings do not conflict with each other.

http://social.technet.microsoft.com/Forums/en-US/sharepointadmin/thread/7a6a8718-d1c7-490b-95d1-f3b74c5b0f3d/