Error ‘String cannot have zero length’ when install ASP.NET starter kit

Sometimes when you download the .vsi starter kit installer file , you might get the following error message:

A problem occurred while running the installer. Please contact the content author for problems with the content.
Error Message:
Strings cannot have zero length.

The reason is because you might had installed Visual Studio 2005 and VWD 2005 Express , but later you uninstalled one of the two (for example you uninstall VWD 2005 Express) and a couple string values got deleted in the registry. 

Solution:

Try the following to see if it works for you:

   1.Click START then RUN then type REGEDIT and Enter.
   2. Go to this location on the registry: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSEnvCommunityContent\ContentTypes\VSTemplate]
   3. On the right side of the screen right click –> New –> String Value and add the following two string values

 Value Name = “ClassName”    Value Data = “VSContentInstaller.VSTemplateInstallerPage”
 Value Name=  “DisplayName”  Value Data = “#VSTemplateContentDisplayName”

Close the registry and try to install .vsi starter kit again, it should work.

-->

Sometimes when you download the .vsi starter kit installer file , you might get the following error message:
A problem occurred while running the installer. Please contact the content author for problems with the content.Error Message:Strings cannot have zero length.
The reason is because you might had installed Visual Studio 2005 and VWD 2005 Express , but [...]

Read More » »

Installing Sitefinity using Blank Project without IIS

How to use Sitefinity if you don’t want to install IIS or your IIS doesn’t work well ?

You aren’t required to run the Sitefinity install.  Sitefinity is also distributed via a blank project zip file.  This empty Sitefinity project can be opened in Visual Studio and does not require IIS.

Please read a guide here: Installing Sitefinity using Blank Project

-->

How to use Sitefinity if you don’t want to install IIS or your IIS doesn’t work well ?
You aren’t required to run the Sitefinity install.  Sitefinity is also distributed via a blank project zip file.  This empty Sitefinity project can be opened in Visual Studio and does not require IIS.
Please read a guide here: Installing [...]

Read More » »

Install SiteFinity on Vista or Windows 7

 Bullet Proof Guide to Installing Sitefinity 3.x– content from sitefinitywatch.com
If you wanto to install Sitefinity on your local machine.  Because Sitefinity is intended to be a server product, installing on an non-server computer can be challenging.
Above link provided a video & blog which describe to  designed to be a guide to installing Sitefinity on Windows [...]

Read More » »

IIS: The service did not respond to the start or control request in a timely fashion

After we installed IIS 5 or IIS 6 in Windows XP pro SP2, we might get the following error message when we try to start IIS service.
“The service did not respond to the start or control request in a timely fashion.”
One of the reason is because that you might have installed ASP.NET 2.0 or [...]

Read More » »

PayPal will be the first and only global payments platform open to third-party developers

Paypal’s develop team is going to use X.com to be a new platform to provide API to be the first and only global payments platform open to third-party developers.
All detail information please read the following content and Links:
July 6, 2009Yes It’s TrueDamon HouglandDamon Hougland
You may have heard some breaking news that PayPal will be the [...]

Read More » »

Paypal’s X.com

Paypal have owned the domain X.com since 1993 (or earlier) but few people knew it because seems Paypal never gotten good idea to use it. Recently PayPal announced Paypal “will become the first and only global payments platform open to third-party developers”. their “new set of APIs will offer unlimited possibilities for (developer) to easily [...]

Read More » »

Rob Howard: 10 tips for Writing High-Performance Web Applications

This article discusses:
    * Common ASP.NET performance myths    * Useful performance tips and tricks for ASP.NET    * Suggestions for working with a database from ASP.NET    * Caching and background processing with ASP.NET
ContentsPerformance on the Data TierTip 1—Return Multiple ResultsetsTip 2—Paged Data AccessTip 3—Connection PoolingTip 4—ASP.NET Cache APITip 5—Per-Request CachingTip 6—Background ProcessingTip 7—Page Output Caching and [...]

Read More » »

Cannot convert type ‘ASP.login_aspx’ to ‘System.Web.UI.WebControl’

If you have used a Page that effectively uses a codebehind classname that is the same as say the Login control, that is Login, e.g. your page was called Login.aspx, then when you pre-compile (publish) the web site as an updateable web site, the aspx is retained and tries to compile against a type called [...]

Read More » »

how to get aspx page username ?

in vb its system.environment.username – whats the equivalent in aspx with code behind (VB) ?
——————————————————————————–
In the codebehind of your aspx code, you could use:
Page.User.Identity.Name ;
In a custom class, you could use:
HttpContext.Current.User.Identity.Name;
——————————————————————————–
thanks but niether seems to work – aspx accepts it but it does nothing!
——————————————————————————–
It depends how you would like to use it.
If you want to [...]

Read More » »

ASP.NET: how to get page name, visiting user name, function name, form name

1: string username = Me.Page.User.Identity.Name2: string username = System.Environment.UserName()
1: string pagename = Me.Page.GetType().Name()2: string pagename = Request.Path.Substring(Request.ApplicationPath.Length + 1)
1: string functionname = System.Reflection.MethodBase.GetCurrentMethod().Name
1: string formname = Request.Path.Substring(Request.Path.LastIndexOf(”/”)+1);

Read More » »

How To Create an ASP.NET Application from Multiple Projects for Team Development

How To Create an ASP.NET Application from Multiple Projects for Team Development
A nice article from Microsoft:
How To Create an ASP.NET Application from Multiple Projects for Team Development
(from: http://support.microsoft.com/kb/307467)
Here just copy their Summary and give the left to redirect their site. 
SUMMARY
loadTOCNode(1, ’summary’); This article describes how to make multiple ASP.NET projects participate in the same [...]

Read More » »

.NET loads PHP functions

Is it possible a .NET project load the functions from a PHP project ?
Here is a greate OpenSource project named Phalanger project . It allows to compile whole PHP projects into .NET assembly. And thus you can load the PHP functions in your ASP.NET project !
IntroductionPhalanger is a new PHP implementation introducing the PHP language [...]

Read More » »

Eliminate SQL Injection Attacks Painlessly with LINQ

An article by Jason Schmitt. Please check it here.
Summary:
Microsoft’s LINQ to SQL technology offers .NET developers the chance to eliminate the possibility of SQL injection security vulnerabilities in their web applications.
by Jason SchmittMay 24, 2007 
As web application security breaches and attempts rise, developers are increasingly being asked to take more responsibility for the [...]

Read More » »

How to add a Uninstall option in Visual Studio Setup project

Did you try to set an uninstall option in a VS studio setup project ? How did you get it ?
Actually  you don’t need to write any code to add a uninstall option for a Setup project using Visual Studio 2005/2008.
1) In the Setup Project –> File System windows –> Right Click “File System on [...]

Read More » »

Create a page in WordPress to display posts under a specified category

You might always has this question: How to add a new page in WordPress to display posts under a specified category ? A WP blogger has already posted his answer  his blog link :
1: Go to WP Administrate control panel -> Designe -> Theme Editor;2: Open “Main Index Template (index.php)”, copy its all content;3: Open [...]

Read More » »

Both PHP 4 and PHP 5 applications run on the same Godaddy hosting account

If you bought a Linux hosting from Godaddy, you are able to build your site on either of PHP 4 or PHP 5.
As long as your site runs Hosting Configuration 2.0, both PHP 4 and PHP 5 applications can run on your site. By default, PHP 5 files require the .php5 extension, whereas the [...]

Read More » »

A professional wordpress theme site

I found a professional wordpress theme site, looks they are providing some very nice theme for free.
http://www.darrenhoyt.com/2007/08/05/wordpress-magazine-theme-released/
And, a nice Chinese wordpress site is just using a theme from them

Read More » »