Wednesday, July 2, 2008

How to delete a windows service

If you are having issues deleting a windows service simply run this command in the dos prompt:

sc delete _service name_

Be sure to close the "services" windows management window as it gets confused and thinks it needs a reboot if the service is to be re-installed.

If using Windows 2000 then you will need to reinstall.

Sunday, June 22, 2008

Google App Engine - "'DatabaseWrapper' object has no attribute '_rollback'"

: 'DatabaseWrapper' object has no attribute '_rollback'
args = ("'DatabaseWrapper' object has no attribute '_rollback'",)
message = "'DatabaseWrapper' object has no attribute '_rollback'"

Thursday, May 22, 2008

ASPENCRYPT - Object Already Exists

If you get this error re-install Aspencrypt.

Object already exists.

Server Error in '/' Application.

Object already exists.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: Object already exists.


Source Error:

Line 66:     Public Shared Function Encrypt(ByVal UserID As String) As String Line 67:         Dim CM As New CryptoManagerClass Line 68:         Dim Context As ICryptoContext = CM.OpenContext("mycontainer", True) Line 69:         Dim key As ICryptoKey = Context.GenerateKeyFromPassword("elphantswanderingacr0ssapl14n", ASPENCRYPTLib.CryptoAlgorithms.calgSHA, CryptoAlgorithms.calg3DES) ' use defaults Line 70:         Dim Blob As ICryptoBlob = key.EncryptText(UserID)

Source File: Line: 68

Stack Trace:

[COMException (0x800a0001): Object already exists. ]    ASPENCRYPTLib.CryptoManagerClass.OpenContext(String Container, Int32 bMachineKey, Object CreateNew) +0    security.Encrypt(String UserID) in C:\Shared\Projects\Schriaz_TMF\SourceControl\Source\Admin.2005\App_Code\security.vb:68    ucontrols.forms.login.LoginAdmin(Boolean blnPersist) in C:\Shared\Projects\Schriaz_TMF\SourceControl\Source\Admin.2005\controls\forms\login.ascx.vb:278    ucontrols.forms.login.CheckLogin() in C:\Shared\Projects\Schriaz_TMF\SourceControl\Source\Admin.2005\controls\forms\login.ascx.vb:223    ucontrols.forms.login.btLoginCen_Click(Object sender, ImageClickEventArgs e) in C:\Shared\Projects\Schriaz_TMF\SourceControl\Source\Admin.2005\controls\forms\login.ascx.vb:584    System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +86    System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +115    System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11    System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746 


Version Information: Microsoft .NET Framework Version:2.0.50727.1434; ASP.NET Version:2.0.50727.1434

Saturday, May 3, 2008

Could not load file or assembly '' or one of its dependencies. Access is denied.

Standard Solution
This is one of the most irritating build errors a developer might see, especially while setting up an existing .NET application on a fresh machine. I have found one solution that works always. Go to:

"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files"
( Modify the framework version, root directory etc according to your environment. )

Now, right-click and open up the Security tabs for this folder. Grant "Full control" to the 'users' group. (Modify will also work, thought I didn't try it out) However, it this is a security problem for your environment to grant full control to all users in Users group, another Solution could be to put the concerned assemblies lo GAC which I avoided as it was not logical to put the assemblies into GAC in my scenario. Hope this helps.

My Experience
In reality I did the above and it didn't fix the problem so I had to right click each dll that had the problem in the projects bin folder (not temporart asp.net folders) and add group everyone and give it full permissions.

Wednesday, April 23, 2008

Seven Great CMS Plugins for Wordpress

Save some time, I have found some great Wordpress Plugins if you are using this package as a CMS, or sometimes even if you are not.

1) All in One SEO Pack 1.4.6.8
Out-of-the-box SEO for your Wordpress blog. By uberdose.

2) Contact Form 7 1.7.7
Just another contact form plugin. Simple but flexible. By Takayuki Miyoshi.

3) CyStat 0.9.0
Statistik-Plugin By Michael Weingärtner.

4) Google XML Sitemaps 3.0.3.1
This plugin will generate a sitemaps.org compatible sitemap of your WordPress blog which is supported by Ask.com, Google, MSN Search and YAHOO. Configuration Page By Arne

5) NextGEN Gallery 0.94
A NextGENeration Photo gallery for the WEB2.0(beta). By NextGEN DEV-Team.

6) TinyMCE Advanced 3.0.1
Enables advanced features and plugins in TinyMCE. By Andrew Ozz.

7) Wordpress Automatic Upgrade 1.1
Wordpress Automatic Upgrade allows a user to automatically upgrade the wordpress installation to the latest one provided by wordpress.org using the 5 steps provided in the wordpress upgrade instructions. Go to Wordpress Automatic Upgrade to upgrade your installation Thanks to Ronald Huereca for making the plugin run in automatic mode. By Keith Dsouza.

Thursday, April 3, 2008

Vista - Unable to Start Debugging on the Wer Server - Vista Home Premium Edition

There is an excellent guid here on how to get IIS 7 and Vista Home premium web server debugging working.

http://mvolo.com/blogs/serverside/archive/2006/12/28/Fix-problems-with-Visual-Studio-F5-debugging-of-ASP.NET-applications-on-IIS7-Vista.aspx

This also includes a link for Home Premium users for a download that enables Windows Authentication in IIS 7.

http://support.microsoft.com/kb/937523

Thursday, November 1, 2007

Ajax Control Toolkip Collapsible Panel Not Collapsing

In the Ajax Control Tool kit there is a funky collapsible panel which is demonstrated here:
http://www.asp.net/AJAX/AjaxControlToolkit/Samples/CollapsiblePanel/CollapsiblePanel.aspx

If your panel opens but then when you click to close it, it sort of half closes then re-opens. The error is because your web page does not contain the correct doc type heading.

[DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"]

is the kind of thing that should be at the top. I am having trouble displaying the actual code here because it will affect this web page. however look for this line in the collapsible panel header.