Wednesday, March 29, 2006

 

Debugging in Visual Studio .Net 2003

Am i stupid? No i´m not! But now and then i make stupid mistakes. This is defenitily one off those which costed me an awfull lot of time!
What happened? Suddenly, without any obvious reason, i could't debug in Visual Studio .Net 2003 anymore. I didn't do anything, it just happened. (that's what i thought. Yes i know; nothing ever just happens, but ...)
When i started debugging i saw for the system dll´s "No symbols loaded".
For my own dll's "No native symbols in symbol file" appeared. This didn't ring a bell!
So i started looking on the net, couln't find anything that helped me. ...
And then, after ... i don't want to tell you how much time i lost with this, despite all, i started debugging again, looked at the popup that you get when you press attach to a proces, and saw that only "Native" was checked and not "Common Language Runtime".
Aaaaahhhh! In the beginning i was really desperate, but now, five fingernails later, i'm glad i found it! Finally i will sleep again tonight!

Wednesday, March 22, 2006

 

Problems with querying sharepoint doclib

I have some bizare results when i query the database.
This is the query :

"SELECT \"DAV:href\", \"DAV:displayname\", \"DAV:contentclass\", \"urn:schemas-microsoft-com:office:office#ows_Publicatiedatum\" FROM ( TABLE Portal_Content..Scope() UNION ALL TABLE Non_Portal_Content..Scope() ) WHERE (\"urn:sch
emas.microsoft.com:sharepoint:portal:isdocument\" = 1) AND (\"urn:schemas-microsoft-com:office:office#ows_Publicatiedatum\" > '2006/3/20') AND (\"urn:schemas-microsoft-com:office:office#ows_Publicatiedatum\" <= '2006/3/21') "

Although there are documents that match the criteria, no documents are found. ... There seems to be something on with searching on date fields! Has it something to do with GMT? I haven´t found a solution yet.

Tuesday, March 21, 2006

 

Microsoft SharePointPSSearch SQL Syntax

Syntax kan via deze link gevonden worden : http://www.microsoft.com/downloads/details.aspx?FamilyID=d6a10783-a4e4-4463-8444-f88be48760b3&displaylang=en

of via : http://tinyurl.com/4sddn

Thursday, March 16, 2006

 

SharePoint impersonation using COM+ Components

I found an interesting article of Raphael Londner on impersonation in sharepoint. You can find it here.

steven

 

Sharepoint and portal listings

Aaahh, portal listings. I´ve written a custom search on the 'portal listings' lists. In the results page i wanted to show the associated image. This wasn't as easy as i thought! Finally i found how i can access this list through code :

using Microsoft.SharePoint.Portal.SiteData;

Microsoft.Area currentArea = AreaManager.GetArea(PortalContext.Current, rootWeb.ID);
foreach(AreaListing al in currentArea.Listings)
{
//Do something
}

Hope this can help anyone!

steven

 

Sharepoint Portal Server 2003 security problem after reinstallating the server.

After installing sharepoint portal server 2003 i get the following error when i try to open the default page : "You are not authorized to view this page".

It took me quite some time to find the solution for this problem.
It had all to do with security settings in IIS.

In IIS :
Open properties of the site.
Directory Security tabpage
Authentication and access control / Edit
select 'Integrated Windows authentication!!!'

cheers!

This page is powered by Blogger. Isn't yours?