Posts

Showing posts from April, 2011

Wix Build Error - Nant

error MSB4019: The imported project "C:\Program Files\MSBuild\Microsoft\WiX\v3.x\Wix.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

Update your wix projects to newer version when you upgrade wix on the machine.

Context 0x1b64e0' is disconnected : DirectoryEntry

Image
I started getting the exception below everytime I close my vb.net application.To fix this I had to either dispose the directory entry object after calling the ProcessDirectoryEntry in the for loop OR change "byval" to "byref" in the ProcessDirectoryEntry de parameter.

 For Each de As DirectoryEntry In delist
            ProcessDirectoryEntry(de)
    ''fix - de.dispose
Next
Sub ProcessDirectoryEntry(ByVal de As DirectoryEntry)
        ..
            ..
            ..
            ..
End Sub


Context 0x1b64e0' is disconnected.  Releasing the interfaces from the current context (context 0x1b6370). This may cause corruption or data loss. To avoid this problem, please ensure that all contexts/apartments stay alive until the application is completely done with the RuntimeCallableWrappers that represent COM components that live inside them.

SQL Profiler and Management Studio batch files for launching

SQL Profiler
Sometimes you want to run your profiler as a different user than the user that is logged onto the machine and uses a template of your choice then the following lines in a batch file can help you.

SET SSMSEXE=C:\Program Files\Microsoft SQL Server\100\Tools\Binn\PROFILER.EXE
C:\WINDOWS\system32\runas.exe /user:Domain\otheruser /savecred "%SSMSEXE% /S spa /T mytemplate"

--
Launching Management Studio with Domain\OtherUser,windows authentication and dv_dev as default database.

SET SSMSEXE=C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Ssms.exe
C:\WINDOWS\system32\runas.exe /user:Domain\OtherUser /savecred "%SSMSEXE% -s spa -d DB_Dev -E -nosplash"
Tested under SQL Server 2008R2 only.

AT&T DSL Setup

OK, I switched from Uverse to DSL and opted for getting my own modem.But what I didn't realize is that only some modems are supported by AT&T.I bought Zyxel Prestige 600 Series 645 and tried to make it work with AT&T with no luck.Tried to logon to the device using telnet and set the user name and password,vci,vpi,multicasting and encapsulation.All the settings seems ok, I can see the modem stats but couldn't connect to at&t.

After days of struggling with the help of at&t representatives, I gave up and got SpeedStream 5100 modem along with Linksys WRT54g and was able to get on to the internet.Make sure you set the router to ppoe and set the username and password, plug the ethernet cable from the speedstream modem into the wan port and you should be able to get to the internet.