Tips for Microsoft Visual InterDev 6.0


Install Visual SourceSafe™ (VSS) and the latest FrontPage® Server Extensions (FPSE)

Microsoft® Visual InterDev® (VID) version 6.0 uses the same mechanism as Microsoft FrontPage to communicate with the Web server. These extensions (known as FrontPage Server Extensions, or FPSE) will also be required on your local computer if you use Local Mode editing.

In order for VID to add your project to source control, Visual SourceSafe (VSS) must be installed on the Web server where your VID projects are located. You cannot check files in or out using FPSE unless VSS is installed on the server.


How to Start from Existing Projects

To view and edit BDG files using Visual InterDev

  1. Copy the source files from the server to your local computer's Inetpub\wwwroot directory.
  2. Create a new Web project from within VID. You can use Master or Local mode, since the files exist on your local machine.
  3. Ignore any errors related to global.asa that VID generates, and DO NOT REPLACE global.asa if asked to do so.
  4. If necessary (and it usually is), you'll also need to add a Data Connection to global.asa, as described in the sample application's documentation. For BDG samples, consult the Deployment section for installation details.

To ship a BDG application that has been developed with VID, we do the following:


Setting up Web Permissions

Connecting to your Visual SourceSafe server properly depends on VSS knowing who you are. Also, you'll need to identify yourself to the server when debugging ASP. Also note that working across Windows NT® domains can produce unexpected results when passwords are not changed together.

To set up Web Project Permissions

  1. On the Visual InterDev Project menu, click Web Project and then click Web Permissions.
  2. Click the Use unique permissions for this Web application option button, and click Apply. You will not be able to change to the Users tab or the Groups tab until you have applied this setting.
  3. Click the Users tab. Click Add. Select Windows account name from the Names list and add them to the Add names list by clicking the > button. Select the type of access (browse, author, or administer) and click OK.

Note  Do not grant access to the Everyone account, or to any group containing the anonymous IIS user (IUSR_<computername>) account. Doing so will allow anonymous users to access your source files. You also risk losing changes to files because files can be checked out of VSS by the anonymous user account.


Precautions for Adding a Project to Visual SourceSafe


Visual InterDev and Active Server Pages

In order for you to get the most from the drag-and-drop HTML editing that VID provides, you must be careful how you add ASP script to your HTML.

For example, the following HTML mixed with valid ASP prevents you from switching to the editor's Design mode.

<INPUT VALUE="<%= Request.ServerVariables("SERVER_NAME") %>">

Likewise, if you type the ASP value directly into the Design window, VID will insert the following invalid HTML when you switch back to Source mode:

VALUE="'" <% = Response.QueryString("Test") %>'

In order for VID to display HTML that contains ASP correctly in Design mode, you must not use double-quotes inside ASP delimiters. The following ASP will display properly in both Design mode and in your browser:

<% sServerName = Request.ServerVariables("SERVER_NAME") %>
<INPUT VALUE="<%= sServerName %>">


Saving Unicode Files with Visual InterDev

Drag-and-drop and text editing of Unicode files is problematic with Visual InterDev. When you are adding a Unicode file to the Web project, it will often be created as an UTF-8 text file. If this happens, the Unicode character encoding will be lost, and the XML parser will report the following error:

Invalid at the top level of the document. 

It doesn't seem to matter if you overwrite an existing Unicode file, nor does Visual InterDev seem to remember that you were editing a Unicode file.

To save a file as Unicode

  1. Select the file you want to save in the Project Explorer window of Visual InterDev.
  2. On the Visual InterDev File menu, click Save File As (where File is the file you have selected).
  3. Select Unicode Text from the Save as type drop down list box. Click OK.