Pages

Search This Blog

Thursday, February 28, 2008

Visual Studio 2005: publish website error - target folder empty

Do you have experience that after you have successfully published your application but the target folder is empty?

  1. Click "Publish Web Site", enter "Target Location", and click OK
  2. Site builds successfully
  3. files in destination directory are deleted
  4. IDE shows "publish succeeded"
  5. Go to check target directory, it's empty.

In my case, it caused by mispell an HTML tag. Fix the tag help to fix the published problems.

If this not work for you, try this alternative suggested by other developers.

Fix IIS mappings for ASP.NET, run the Aspnet_regiis.exe utility:

  1. Click Start, and then click Run.
  2. In the Open text box, type cmd, and then press ENTER.
  3. At the command prompt, type the following, and then press ENTER:
    "%windir%\Microsoft.NET\Framework\version\aspnet_regiis.exe" -i
    In this path, version represents the version number of the .NET Framework that installed on server. Must replace this placeholder with the actual version number when type the command.

4 comments:

donnaG said...

I'm getting this problem - publishing my website, the IDE says its published successfully, but my target folder is empty. How did you figure out it was an html misspell? I really do not know where to look for this - my website has many, many pages and to hand look over each page would be an impossible task. Any help would be greatly appreciated.

Anonymous said...

The reinstall fixed this problem for me... Thanks for your posting!!!!

It nearly drove me crazy, I and I still don't know what I did that broke it.

Unknown said...

THANK'S MAN!!!!

YOU SAVE MY LIFE!!!!!!!

Unknown said...

ok!!!

It's work for me!!!

Thank's and Thank's