Blog

Weird dashBlog Error

Every now and then when I am going to add an entry to dashBlog I get an error. When I look in the event log I see the following:

 

Error:
System.NullReferenceException: Object reference not set to an instance of an object.
at FreeTextBoxControls.Support.ResourceManager.LoadResource(Hashtable target, String language, String cacheKey)
at FreeTextBoxControls.Support.ResourceManager.GetResources()
at FreeTextBoxControls.Support.ResourceManager.GetString(String name)
at FreeTextBoxControls.Support.Helper.PopulateDefaultDropDownList(ToolbarDropDownList toolbarDropDownList, FreeTextBox freeTextBox, ResourceManager resourceManager)
at FreeTextBoxControls.FreeTextBox.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain()
while processing http://blog.project84.net/EditEntry.aspx.

Has anyone else had this problem or know how to fix it??

Read more

Microsoft release an updated Solutions Accelerator for Desktop Deployment

I just noticed that Microsoft have again updated their Solution Accelerator for Business Desktop Deployment(BDD). If you are interested in automating a deployment of windows xp take a look as it is really very good. You can find the BDD over here.

Read more

New site theme

Well I got sick of that ugly brown theme and created a new theme based off of one that was included with the new version of dashBlog. The theme was originally coded by James Snape which i then altered to come up with the theme you currently see here. What do you think?

Read more

C# Reserved Words

Ever wondered what all the reserved words are in C#….well I did. Head on over to http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/vclrfcsharpkeywords_pg.asp to find out. I’ve copied them below.

abstract event new struct
as explicit null switch
base extern object this
bool false operator throw
break finally out true
byte fixed override try
case float params typeof
catch for private uint
char foreach protected ulong
checked goto public unchecked
class if readonly unsafe
const implicit ref ushort
continue in return using
decimal int sbyte virtual
default interface sealed volatile
delegate internal short void
do is sizeof while
double lock stackalloc
else long static
enum namespace string
Read more

Moved to DasBlog

I got sick of trying to get my blog working with Community Server so I’ve migrated over to DasBlog. The installation was painless and making skins is significantly easier than with CS. Now that I’ve got this working correctly, stay tunned for some exciting new posts.

Read more

Pasting in a DOS Windows

I was wondering the other day while at work why when I right-click in a command window that windows pastes whatever is in the clipboard and doesn’t show the context menu. I tried it at home and all I got was the right-click menu. Now I’ve grown very attached to this quick pasting feature so started to dig around to find out how I could get me home PC to do the same thing. As it turns out it is really very easy. Here are the steps involved:

 

  1. Go to Start->Run
  2. Type cmd and click Ok.
  3. Right-click on the title bar and go to properties
  4. Then select QuickEdit Mode on the right.
  5. Click Ok and choose to change the default settings.
Read more

Cool Tools

After some cool tools, check this out http://www.hanselman.com/blog/ScottHanselmans2005UltimateDeveloperAndPowerUsersToolList.aspx

Read more

Asp.net Agony

Ever seen this before:
Exception Details: System.Data.OleDb.OleDbException: Syntax error in INSERT INTO statement.

 

Well 7 hours later after reading and debugging and then reading and debugging some more I finally found a solution. What I was trying to do was something like this

 

Sub addData(sender As Object, e As EventArgs)
Dim objConn As OleDbConnection
Dim objCmd As OleDbCommand
Dim objRdr As OleDbDataReader

objConn = new OleDbConnection(“xxxx”)

objCmd = new OleDbCommand(“INSERT INTO MyTable(Name, Email, Password)VALUES (@Name, @Email, @Password);”,objConn)

’add all our parameters
objCmd.Parameters.Add(“@Name”, “UserID”)
objCmd.Parameters.Add(“@Email”, “no@no.com”)
objCmd.Parameters.Add(“@Password”, “hardpassword”)

objConn.Open()
Dim blnReturn as Boolean = objCmd.ExecuteNonQuery()
objConn.Close

If blnReturn THen
lblError.Text = “Success”
End If
End Sub

 

The database being used was Microsoft Access 2003. The insert statement would run perfectly in Access but via ADO.net..nope…Invalid Synatax! As it turns out all the different implementations of SQL have a different set of reserved words, password being one of them. Simply placing [] around the value in question fixes the problem. So what are all these reserved words?

 

http://office.microsoft.com/en-au/assistance/HP010322491033.aspx – for Access 2003
http://office.microsoft.com/en-au/assistance/HP010322481033.aspx – Access Data Types
http://doc.ddart.net/mssql/sql70/ra-rz_8.htm –  SQL Server / MSDE

Read more

Online Bookmarks

Ever think it would be really handy to take all your favorites with you where ever you go?? Personlly I hate it when I find a link to a really great site when at work, place it in my favorites and then wonder where it is when I get home. If you can relate to this then check out this http://del.icio.us. The site allows you to sign up and then store your favorite sites online. There are a couple of good links you can use to easily add new links as well. Very simple idea, very useful Web App.

Read more

Symantec Antivirus 10 bug

I Found out something interesting about Symantec’s latest Antivirus product the other day which I thought may be of interest to some.

 

Apparently when a machine boots the DoScan.exe uses a large amount of memory and CPU. When the DoScan.exe completes RTVScan is using about 40MB of RAM.

 

The solution from Symantec is as follows:

 

One possible workaround is to create a reg key and import it to each user before running the SAV 10 install. Creating and setting CreatedUserQuickScan to 1 before running the SAV install should prevent the creation of the Auto-Generated QuickScan for that user.

 

[HKEY_CURRENT_USER\Software\Intel\LANDesk\VirusProtect6\CurrentVersion\CustomTasks] “CreatedUserQuickScan”=dword:00000001

Read more
Page 9 of 10« First...678910