PRB: "File Modified Outside Source Editor" Message when Saving

Last reviewed: December 15, 1997
Article ID: Q174942
The information in this article applies to:
  • Microsoft Visual InterDev, version 1.0

SYMPTOMS

One of the following dialog boxes appears whenever you open or save a file in Visual InterDev:

   This file has been modified outside of the source editor. Do you want
   to reload it?

   -or-

   A more recent version of the file 'Yourfile.htm' has been saved to the
   Web by '' on '<datetime>'.

   Do you want to replace this version with your file? <Yes> <No>

CAUSE

This behavior is usually caused by locating your project files on the Web server and not in a separate working directory (see the InfoView topic, "Microsoft Visual InterDev Architecture" for information on project files vs. Web files). For example, when creating a new Web project, typing "c:\inetpub\wwwroot\" into the "Location" text box in the "New\Web Project Wizard" dialog box puts the project files in the same location as the Web files. To determine if this is the case, select the "FileView" tab to see if you have any files with a .dsp, .dsw, or .opt extension. If these files show up in your project, your project files are in the same location as your Web.

RESOLUTION

Create a new project and enter a local folder in the "Location" dialog box (for example, "C:\my VID Projects"). After Visual InterDev creates the new project, add the Web files from the original project to the new project, using the "Add Files ..." command.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Choose "Web Project Wizard" from the "File\New\Projects" menu.

  2. Enter a project name (for example, xxx) into the "Project Name:" text box of the "New" dialog box.

  3. Enter the path to your Web server in the "Location" text box. For example, if Visual InterDev is installed on the same machine as your Web server, you might enter "c:\InetPub\WWWRoot" as the location.

  4. Click OK to enter Step 1 of the Project Wizard.

  5. In the "Web Project Wizard -- Step 1 of 2" dialog box, select your Web server in the drop-down box and click Next to move to Step 2 of 2.

  6. In the "Web Project Wizard -- Step 2 of 2" dialog box, make sure the "Create a New Web" option is selected and the "Name:" entered is the same as that given in step 2 above. Click Finish to create the Web.

  7. Create a new .htm file and add it to the project.

    You should see a dialog box that states the file already exists and asks if you would like to replace it.

  8. Make an edit to the file created in the previous step and save the file.

You will see the dialog box mentioned in the SYMPTOMS section of this article.

REFERENCES

For the latest Knowledge Base articles and other support information on Visual InterDev and Active Server Pages, see the following page on the Microsoft Technical Support site:

   http://support.microsoft.com/support/vinterdev/

Keywords          : VIProject kberrmsg
Technology        : kbInetDev
Version           : WINDOWS:1.0
Platform          : WINDOWS
Issue type        : kbprb


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: December 15, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.