Thursday, June 19, 2008

Namespace Manager or XsltContext needed. This query has a prefix, variable, or user-defined function.


Dim ListItemsNamespacePrefix As String = "z"
Dim ListItemsNamespaceURI As String = "#RowsetSchema"

Dim PictureLibrariesNamespacePrefix As String = "s"
Dim PictureLibrariesNamespaceURI As String = "uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882"

Dim WebPartsNamespacePrefix As String = "dt"
Dim WebPartsNamespaceURI As String = "uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"

Dim DirectoryNamespacePrefix As String = "rs"
Dim DirectoryNamespaceURI As String = "urn:schemas-microsoft-com:rowset"

'now associate with the xmlns namespaces (part of all XML nodes returned
'from SharePoint) a namespace prefix which we can then use in the queries
Dim NamespaceMngr As XmlNamespaceManager
NamespaceMngr = New XmlNamespaceManager(Document.NameTable)

NamespaceMngr.AddNamespace(SharePointNamespacePrefix, SharePointNamespaceURI)
NamespaceMngr.AddNamespace(ListItemsNamespacePrefix, ListItemsNamespaceURI)
NamespaceMngr.AddNamespace(PictureLibrariesNamespacePrefix, PictureLibrariesNamespaceURI)
NamespaceMngr.AddNamespace(WebPartsNamespacePrefix, WebPartsNamespaceURI)
NamespaceMngr.AddNamespace(DirectoryNamespacePrefix, DirectoryNamespaceURI)

'run the XPath query and return the result nodes
Dim xNodeList As XmlNodeList
xNodeList = Document.SelectNodes("//z:row[@ows_Title]", NamespaceMngr)

Thursday, April 10, 2008

2005 setup project: Another version of the product is already installed. Installation of this version cannot continue

I have created windows installer application, now when I upgrade the same I get following error “Another version of the product is already installed. Installation of this version cannot continue. To configure or remove the existing version ...use add remove program in control panel”.



it appears that if a version number is less than 1, removePreviousVersion won't work...I changed my version number to 1.x.x.x (changing product code and keeping version code the same) and it works great.

Labels:

Wednesday, March 12, 2008

Removing Content DB of Central Admin caused this error:

Failed to provision the SharePoint Central Administration Web Application.
An exception of type System.IO.FileNotFoundException was thrown. Additional exception information: The site http://xxx:999 could not be found in the Web application SPAdministrationWebApplication Parent=SPWebService Name=WSS_Administration.

I have used stsadm command to restore it back:
stsadm -o addcontentdb -url http://xxxx:999 -databasename Sharepoint_AdminContent -databaseserver databaseservername

http://www.whitworth.org/Blog/CommentView,guid,fa4f11e2-221a-4321-a01e-cd466016d534.aspx

Labels:

Thursday, November 22, 2007

BIDS Analysis services fails after installing Excel 2003

http://support.microsoft.com/default.aspx/kb/926421


You install Microsoft Office Excel 2007 on a computer that has SQL Server 2005 Analysis Services installed.

Labels:

Saturday, April 21, 2007

svchost.exe 100% cpu

It's simply the Service Hoster with the configuration at:

HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\Svchost

read more at:http://support.microsoft.com/kb/314056/en-us

after reading the above article, i found maybe, it is something to do with net monitor 3.0 i have installed recently. I have uninstalled it, wait and see if the problem persists.

Powered by Bleezer

Friday, September 29, 2006

access denied while consuming webservice

use:
com.w3schools.www.TempConvert o = new Websvc1.com.w3schools.www.TempConvert() ;
o.Credentials = System.Net.CredentialCache.DefaultCredentials ;
o.Url = "http://localhost/SampleApps/TempConvert/Service1.asmx";

Tuesday, September 12, 2006

NANT BUILD FAILED Primary Interop Assembly "stdole",

Couldn't find Primary Interop Assembly "stdole", referenced by project "CSP".


Copy stdole.dll on your build machine
regasm /codebase stdole.dll
and
gacutil stdole.dll