Microsoft Knowledge Base Email Alertz

(831684) - When you try to create a Microsoft ASP.NET Web Application project or an ASP.NET Web Service project, you may receive the following error message: Cannot create the offline cache in 'C:\Documents and Settings\ UserName \VSWebCache\ ServerName \...

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 831684 - Last Review: December 22, 2003 - Revision: 1.3

"Cannot create the offline cache" error message when you try to create an ASP.NET Web Application project

On This Page

SYMPTOMS

When you try to create a Microsoft ASP.NET Web Application project or an ASP.NET Web Service project, you may receive the following error message:

Cannot create the offline cache in 'C:\Documents and Settings\UserName\VSWebCache\ServerName\ProjectName'. Unable to create a disk-based web at "C:\Documents and Settings\UserName\VSWebCache\ServerName\ProjectName" because its parent web would not be a disk-based web. Create the disk-based web elsewhere, outside of your web server's document hierarchy.
Note UserName is a placeholder for your user name, ServerName is a placeholder for the name of your Web server, and ProjectName is a placeholder for the name of your project.

Note The word "web" should be "Web" in this error message.

CAUSE

If the root folder of your hard disk drive (such as drive C) that contains the Microsoft Windows folder contains Microsoft FrontPage Server Extensions (FPSE) folders (such as _vti_pvt and _private), FPSE assumes that the whole hard disk drive is a server-based Web. Therefore, you cannot create any disk-based Webs in the hard disk drive with FPSE.

RESOLUTION

To resolve this problem, delete all FPSE folders (such as _vti_pvt and _private) from the root folder of your hard disk drive (such as drive C).

STATUS

This behavior is by design.

MORE INFORMATION

Steps to reproduce the behavior

  1. Verify that the root folder of your hard disk drive (such as drive C) that contains the Windows folder contains FPSE folders (such as _vti_pvt and _private).
  2. If the root folder of your hard disk drive does not contain FPSE folders, copy the _vpi_pvt folder and the _private folder from the C:\Intepub\wwwroot\ folder to the root folder of your hard disk drive.
  3. Try to create an ASP.NET Web Application project. To do this, follow these steps:
    1. Start Microsoft Visual Studio .NET.
    2. On the File menu, point to New, and then click Project.
    3. Under Project Types, click Visual Basic Projects or click Visual C# Projects.
    4. Under Templates, click ASP.NET Web Application.
    5. In the Location box, type http://ServerName/ProjectFPSE1.

      Notes
      • ServerName is a placeholder for the name of your Web server.
      • ProjectFPSE1 is a sample ASP.NET Web Application project.
    6. Click OK.

      You may notice the error message that is mentioned in the "Symptoms" section of this article.

REFERENCES

For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
206154  (http://kbalertz.com/Feedback.aspx?kbNumber=206154/ ) F000: Some FrontPage components do not work on disk-based Webs
205696  (http://kbalertz.com/Feedback.aspx?kbNumber=205696/ ) How to install FrontPage 2000 Server Extensions for Internet Information Server
305140  (http://kbalertz.com/Feedback.aspx?kbNumber=305140/ ) INFO: ASP.NET roadmap

APPLIES TO
  • Microsoft ASP.NET 1.1
  • Microsoft ASP.NET 1.0
  • Microsoft FrontPage 2002 Server Extensions
  • Microsoft FrontPage 2000 Server Extensions
  • Microsoft Web Services Enhancements for Microsoft .NET 1.1
  • Microsoft Web Services (included with the .NET Framework) 1.0
Keywords: 
kberrmsg kbwebforms kbconfig kbprb KB831684
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Anonymous User Reported as Irrelevant  
Written: 11/30/2004 11:28 AM
Help me more. For days find the problem and finally in that article find the solution. Deleting the folders _vti_pvt and _private the error disappeared Thank you very much

Cameron Reported as Irrelevant  
Written: 2/28/2005 1:18 PM
Hey Scott thanks for the info, fixed my problem right away :) Thank you!

Cannot create the offline cache - nv_thien NOSPAM-AT-NOSPAM yahoo.com Reported as Irrelevant  
Written: 3/3/2005 11:28 PM
Cannot create the offline cache in'C:\Documents and Settings\Jerry's Computer\VSWebCache\THIEN\WebApplication1' Invalid character in web name in'C:\Documents and Settings\Jerry's Computer\VSWebCache\THIEN\WebApplication1'

Kim - kim.jones NOSPAM-AT-NOSPAM syngenta.com Reported as Irrelevant  
Written: 4/12/2005 8:41 AM
thank you so much!!!!! This fixed my problem immediately. :)

First_major Reported as Irrelevant  
Written: 6/15/2005 2:24 PM
it didnt work for me :(

Santhosh - santhosh0123 NOSPAM-AT-NOSPAM yahoo.com Reported as Irrelevant  
Written: 7/5/2005 2:20 AM
I had faced similar issue with my asp.net web project. I solved it by tools->options ->Project->web setting check offline projects path is correct or not

GD Reported as Irrelevant  
Written: 9/22/2005 7:35 PM
This knowledge base article fixed my problem .... thanks

Stonefish Reported as Irrelevant  
Written: 4/5/2006 9:05 AM
In my case, I didn't have any of those _vt folders so I looked elsewhere for the cause, which turned out to be due to the fact that my C drive had run out of space. When I freed some space up (by compressing the HTML Help folder) everything worked fine. Thus, I suspect that your suggestion may have worked in some people's case because of the same reason.

Anonymous User Report As Irrelevant  
Written: 3/4/2009 11:59 PM
If I have a decimal in the URL of my web service, it gives me an error [cannot create an offline cache in "C:\path\to\drive.1" invalid character in url "/C:/path/to/drive.1"]

Anonymous User Report As Irrelevant  
Written: 3/5/2009 12:14 AM
Contd. 3/4/2009 11:59 PM entry this is the case when the project path and virtual path are not same. e.g. Path is C:\CodeBase\Module1.1\Server1.5 and Virtual path is http://localhost/MyApps/1.5/Server/... If the actual path and virtual path are in sync, there will be no issue.