Felipe Ferreira

MCT, MCPD: Web Developer, MCTS SQL Server 2005, MCTS SharePoint Services 3.0: Configuration
SQL Champ

English
Portuguese

SQLChampLogo

A nice SQL Server 2005 quiz created by Software Architecs. The quiz has 7 technical questions about SQL Server 2005. My Results?

  sqlchamp

Quiz link: http://www.software-architects.com/TechnicalArticles/Quiz/tabid/82/language/en-US/Default.aspx

Source: Cristian Lefter blog

Rebuild TFS Full Text Index

English
Portuguese

Just to remember myself in the future. This script rebuild the full text index in the TfsWorkItemTracking database of TFS.
Without this full text index, you're not able to run queries in the History or Description fields of the work items.
use TFSWorkitemtracking

GO
declare @dbname as sysname
declare @tblName as sysname
set @dbname = 'TFSWorkitemtracking'
set @tblName = 'WorkItemLongTexts'
declare @LCID as int
set @LCID = convert(int, (SELECT COLLATIONPROPERTY(
convert(nvarchar,DATABASEPROPERTYEX(@dbname,'collation')), 'LCID')))
select @lcid
-- if exists drop the index
if OBJECTPROPERTY(OBJECT_ID(@tblName),N'TableFulltextCatalogId') <> 0
begin
exec(N'DROP FULLTEXT INDEX ON ' + @tblName)
end
-- Default to Neutral if Language resource not available for Full Text
if not exists(select * from sys.fulltext_languages where lcid = @LCID)
begin
set @LCID = 0
end
declare @lcidChar nvarchar(128)
set @lcidChar = cast(@LCID as nvarchar)
-- create the index
exec (N'CREATE FULLTEXT INDEX ON ' + @tblName + '(
Words --full-text index column name
LANGUAGE '+ @lcidChar + ' --LCID for the language
)
KEY INDEX UQ_WorkItemLongTexts_ChangedOrder --Unique index
WITH CHANGE_TRACKING OFF --Population type')
Posted: Mar 31 2008, 11:55 AM by Felipe Ferreira | with no comments
Filed under:
Fixing Sharepoint 401.1 HTTP errors

English
Portuguese

Occasionally after you install Sharepoint you can get the 401.1 HTTP error when you try to navigate to Sharepoint on the same domain, but when you try to access for an external network, everything seems to work fine. This happens 'cause when you are on the same domain IIS believe that you should be authenticating using Kerberos Authentication, and, for external machines, IIS try to use NTLM first. Both Kerberos and NTLM Authentication are part of the "Integrated Windows Authentication" option on IIS. As you probally didn't want to use Kerberos authentication, you haven't edited the IIS metabase to configure the SPN (service principal name) account, and, because of this, the Kerberos Authentication will always fail. To solve this issue, you can disable the Kerberos for the website, and use just the NTLM authentication for both internal and external requests. To do so follow this steps:
  1. Open the IIS Manager
  2. Expand the local computer and then click on Web Sites
  3. On the sites list, find the web site you want to change and take note of the Identifier column
  4. open the command prompt and navigate to the following folder: "C:\inetpub\adminscripts"
  5. run the following command:
    adsutil GET W3SVC/YOURID/Root/NTAuthenticationProviders

    change YOURID for your the ID of the website you want to change
  6. If the command returns "Negotiate,NTLM" then Kerberos is active for the website, to change this, just run the same command again, but with the SET parameter instead of GET and with the NTLM parameter:
    adsutil SET W3SVC/SEUID/Root/NTAuthenticationProviders NTLM
Uninstall .net 3.5 Beta

English
Portuguese

I've saw on some forums that there's some cases, when you try to uninstall .net 3.5 beta (is there anyone using it yet?) and it simple doesn't work! It simple doesn't uninstall throught the control panel. So...here are the "hard" way to uninstall it:
  • Open the command prompt, as an administrator
  • type the following command:
    MsiExec.exe /X{C1EDC2C9-9A6B-4140-A2B9-5D624E2FD6D4}
and It's done.
Posted: Mar 03 2008, 06:54 PM by Felipe Ferreira | with no comments
Filed under:
Visual Studio 2008: project creation failed

English
Portuguese

If you install the GAX ( Guidance Automated Extensions ) package on a machine running Visual Studio 2008, you can see the Projet Creation Failed message on the Visual Studio status bar every time you try to create a new project, or to add a new object on a existing solution.

Apparently this is a problem with a dll redirection that GAX adds to the devenv.exe.config file on the installation. To solve this, we only have to remove this redirection. To do this:

- Open the C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe.config file on the notepad.( don't forget to open the notepad as administrator, otherwise you'll not be able to save the file on this directory )

- Press Control+F and search for "Microsoft.VisualStudio.TemplateWizardInterface"

- Comment this item or delete it from the file. The piece where this line is found, should look like this:

<dependentAssembly>
<!-- assemblyIdentity name="Microsoft.VisualStudio.TemplateWizardInterface" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" / -->
<bindingRedirect oldVersion="0.0.0.0-8.9.9.9" newVersion="9.0.0.0" />
</dependentAssembly>

 - Save the file, and open Visual Studio 2008 again. And no more excuses not to be working! =)

error MSB6006: "Light.exe" exited with code -532459699

English
Portuguese

Another Wix 3.0 error, this one happens if you are running the v3.0.2925.0 or earlier, on Windows Vista.

This error seems to be some problem on Wix 3.0 itself, and to solve this you'll need to install one of the nightly builds versions, that you can find on the following address: http://wix.sf.net/releases.

But, before you leave my blog, and run away to download the latest build, there's one little detail, there's a specific version you'll need to install. I've tested all avaliable versions ( on 11/13/2007 ) and the only working version is the v3.0.3307.0 version, dated from 09/07/2007.

Don't ask me why, this is one of those errors that you simple don't understand.

Posted: Mar 03 2008, 06:22 PM by Felipe Ferreira | with 9 comment(s)
Filed under: ,
light.exe : error LGHT0217 : An unexpected external UI message was received: The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2738

English
Portuguese

This error happens 'cause of some validation scripts written in vbscript that Wix runs, and, for an unknow reason, the vbscript dll is not registered on some Windows Vista installations.

So, to solve this, we have only to register the correct dll. To do this, open the command prompt, as an administrator and type:

C:\>regsvr32.exe C:\Windows\System32\vbscript.dll

And it's done! This will solve an installation error of some of the ADOBE's products on Windows Vista too. But I really don't remember the error code on those products.

Posted: Mar 03 2008, 05:08 PM by Felipe Ferreira | with no comments
Filed under: ,
Thanks to Joe

English
Portuguese

Well.. off course that on my first post here at http://weblogs.asp.net/felipeferreira I'll thank Joe Stagner for the opportunity to be posting here at weblogs.asp.net. I'm still making some adjustments and getting familiar with this blog, but will try to publish some tips that I've on my old blog today.

More Posts