February 27, 2004
@ 10:24 PM

Follow the instructions in the following Microsoft article and it should do the job.


HOW TO: Enable Extensions Used by Visual Studio .NET in IIS 6.0

The information in this article applies to:
Microsoft Internet Information Services version 6.0
Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
Microsoft Visual Studio .NET (2002), Professional Edition
Microsoft Visual Studio .NET (2002), Academic Edition

 

This article was previously published under Q329473

SUMMARY

If you install Microsoft Visual Studio .NET with Internet Information Services (IIS) 6.0 to host Web applications or XML Web services, you must also enable Active Server Pages (ASP) and FrontPage Server Extensions (FPSE). ASP and FPSE are installed with IIS. By default, ASP and FPSE are disabled, and you must enable them by using IIS Manager, the IIS administration tool.

If you install Visual Studio .NET 2002, you must also map an application extension for .tmp files.

Note You do not have to map an application extension for .tmp files when you install Visual Studio .NET 2003.

Enable the Correct Web Service Extensions in IIS 6.0

After you install Visual Studio .NET, follow these steps to enable the Web service extensions:

  1. Click Start, click Administrative Tools, and then click Internet Information Services (IIS) Manager. IIS Manager opens.
  2. Expand the computer name, and then click Web Service Extensions. The Web Service Extensions window appears on the right side of IIS Manager.
  3. Under Tasks, click Add a new Web service extension. The New Web Service Extension dialog box appears.
  4. For Extension name, select ASP.NET v1.0.3705.
  5. Add the Aspnet_isapi.dll file to the list of required files. To do this, click Add, click Browse, click the v1.0.3705 version of Aspnet_isapi.dll (found in C:\Windows\Microsoft.NET\Framework\v1.0.3705), and then click Open. Click OK.
  6. Click to select the Set extension status to Allowed check box, and then click OK.
  7. Click OK.

Map .tmp Files

  1. Click Start, click Administrative Tools, and then click Internet Information Services (IIS) Manager.
  2. Right-click your Web site, click Properties, and click HTTP Headers.
  3. Click MIME Types, and then click New.
  4. For Extension, type .tmp.
  5. For MIME type, type text/plain.

Important You must repeat these steps for any Web site where Web projects will be created with Visual Studio .NET 2002.

 

Another Cause

Another cause might be that ASP.NET mappings are not correct. If so, try this:

  • Run the Aspnet_regiis.exe utility: Click Start, and then click Run.
  • In the Open text box, type cmd, and then press ENTER.
  • 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 you installed on your server. You must replace this placeholder with the actual version number when you type the command.

If you reinstalled IIS, you must also do this:

  • Register the Aspnet_isapi.dll: Click Start, and then click Run.
  • In the Open text box, type the following, and then press ENTER: regsvr32 %windir%\Microsoft.NET\Framework\version\aspnet_isapi.dll
    Regsvr32 returns the results of the registration.

 
Categories: ASP.NET

February 25, 2004
@ 05:09 PM

This update contains Microsoft XML (MSXML) functionality that will allow applications using MSXML to continue to function correctly after security update 832894, Security Update for Internet Explorer, has been applied. After you install this item, you may have to restart your computer. Once you have installed this item, it cannot be removed.

 

4.0 Service Pack 2: http://www.microsoft.com/downloads/details.aspx?familyid=341caf5f-0cdd-47a8-af5d-91e14fcf7a0d&displaylang=en

 

2.6: http://www.microsoft.com/downloads/details.aspx?familyid=2b0505c3-8509-4cae-865f-e29a41fe65bf&displaylang=en

 

2.5: http://www.microsoft.com/downloads/details.aspx?familyid=4a14fca1-5c2f-4cf1-993e-5e156c33c083&displaylang=en


 
Categories: XML

All licensed users of earlier English-language versions of WinZip may download a FREE upgrade to WinZip 9.0. First-time users can download a fully functional evaluation version of WinZip. Individual licenses of WinZip are US$29, and attractive volume licensing discounts are available. Download links and ordering information can be found on the WinZip web site at www.winzip.com.

WinZip is the data-compression utility of choice for thousands of organizations, government agencies and Fortune 500 companies, as well as millions of home users. More than 110 million copies have been downloaded from CNET's download.com web site alone. Combining power and flexibility with ease of use, WinZip appeals to the entire spectrum of data-compression users. First-time users are comfortable with the intuitive WinZip Wizard, while power users appreciate WinZip's seamless Windows Explorer interface and choose the award-winning WinZip Classic interface for their most sophisticated compression needs.

WinZip's encryption capabilities, included at no extra charge, support 128- and 256-bit Advanced Encryption Standard (AES) encryption for state-of-the-art data security. The National Institute of Standards and Technology (NIST) selected AES as the standard for both U.S. government and private data encryption. WinZip's implementation of AES encryption is FIPS-197 certified by NIST. Additionally, WinZip 9.0 supports decryption of AES password-encrypted files that were encrypted by PKZIP® for Windows Professional Edition.

Other enhancements in WinZip 9.0 include support for 64-bit extensions to the Zip file format, which eliminate all practical restrictions on Zip file capacity, and support for the "enhanced deflate" compression method, which compresses data better than ever.

The WinZip Command Line Support Add-On is a free download for registered users of WinZip, and now also offers AES encryption. The add-on is ideal for quick zipping and unzipping from the command line, and for automating repetitive tasks using batch files or scripts.


 
Categories: Development

February 20, 2004
@ 10:16 PM

The kit contains step-by-step instructions for getting started with ASP.NET, free controls from third party vendors, access to great ASP.NET hosting deals and more.

http://www.microsoft.com/downloads/details.aspx?familyid=aef6aa76-ab88-4264-87b4-8e946ef584d7&displaylang=en


 
Categories: ASP.NET

Using its built-in features, you can do the following from Microsoft Internet Explorer or your favorite Web browser:

  • Create and edit databases in SQL Server 2000 or Microsoft SQL Server 2000 Desktop Engine (MSDE 2000)
  • Perform ad-hoc queries against databases and save them to your file system
  • Export and import database schema and data
  • Manage users and roles
  • View, create and edit stored procedures

Whether you are doing Microsoft Windows or Web development, or just need remote access to data for yourself or your clients, the Web Data Administrator is the perfect complement to your toolbox.

 

http://www.microsoft.com/downloads/details.aspx?familyid=c039a798-c57a-419e-acbc-2a332cb7f959&displaylang=en


 
Categories: ADO.NET

February 11, 2004
@ 06:05 PM

If you use a higher screen resolution than your users, your forms could be partially hidden or even completely off the screen.

 

There are a few different ways to center your Forms and this tip is by far the best one. It’s very useful because you can center your form over any other form. It’s good to center status Form over your applications mail form instead of the Screen. It just looks nicer. This object can be another Form or the Screen.

Code

Sub CenterForm(objChild As Object, objParent As _
           Object, Optional vLeftTopOffset As Variant, _
           Optional vTopOffset As Variant, Optional vMode _
           As Variant)
     Dim iLeft As Integer
     Dim iTop As Integer
     Dim iMode As Integer
     Dim iLOffset As Integer
     Dim iTOffset As Integer
     Dim I As Integer
     If TypeOf objParent Is SysInfo Then
           iLeft = objParent.WorkAreaLeft + _
                 (objParent.WorkAreaWidth - objChild.Width) / 2
           iTop = objParent.WorkAreaTop + _
                 (objParent.WorkAreaHeight - objChild.Height) / 2
     ElseIf TypeOf objParent Is MDIForm Then
           If objChild.MDIChild = True Then
                 iLeft = (objParent.ScaleWidth - _
                       objChild.Width) / 2
                 iTop = (objParent.ScaleHeight - _
                       objChild.Height) / 2
           Else
                 iLeft = objParent.Left + (objParent.Width - _
                       objChild.Width) / 2
                 iTop = objParent.Top + (objParent.Height - _
                       objChild.Height) / 2
           End If
     ElseIf TypeOf objParent Is Screen Then
           iLeft = (objParent.Width - objChild.Width) / 2
           iTop = (objParent.Height - objChild.Height) / 2
     ElseIf TypeOf objParent Is Form Then
           If objParent.MDIChild = True Then
                 iLeft = objParent.Left + (objParent.Width - _
                       objChild.Width) / 2
                 iTop = objParent.Top + (objParent.Height - _
                       objChild.Height) / 2
                 For I = 0 To Forms.Count - 1
                       If TypeOf Forms(I) Is MDIForm Then
                             iLeft = iLeft + (Forms(I).Width - _
                                   Forms(I).ScaleWidth) / 2 + _
                                   Forms(I).Left
                             iTop = iTop + (Forms(I).Height - _
                                   Forms(I).ScaleHeight) / 2 + _
                                   Forms(I).Top
                             Exit For
                       End If
                 Next I
           Else
                 iLeft = objParent.Left + (objParent.Width - _
                       objChild.Width) / 2
                 iTop = objParent.Top + (objParent.Height - _
                       objChild.Height) / 2
           End If
     Else
           Exit Sub
     End If
     If IsMissing(vMode) Or objChild.MDIChild = True Then
           iMode = vbModeless
     Else
           iMode = Int(vMode)
     End If
     If IsMissing(vLeftTopOffset) Then
           iLOffset = 0
     Else
           iLOffset = Int(vLeftTopOffset)
     End If
     If IsMissing(vTopOffset) Then
           iTOffset = 0
     Else
           iTOffset = Int(vTopOffset)
     End If
     objChild.Move iLeft + iLOffset, iTop + iTOffset
     objChild.Show iMode
End Sub

Examples

Example 1

Center the Form on the Screen.

CenterForm objChild:=Me, objParent:=Screen

Example 2

Center the Form as Modal on the Screen.

CenterForm objChild:=Me, objParent:=Screen, vMode:=vbModal

Example 3

Center the Form on the Windows 95 viewing area (takes into account the TaskBar). This requires that a SysInfo control (which comes with Visual Basic) be placed on the Form.

CenterForm objChild:=Me, objParent:=SysInfo

Example 4

Centers the Form on a Parent Form.

CenterForm objChild:=Me, objParent:=frmMain

You can also use the vTopOffset and vLeftOffset parameters to center the Form and then add or subtract from the X and Y coordinates.

 

This tip is reprinted from the VB Tips & Tricks Volume 1 book.

Compatible With Visual Basic 4.0
Parts of this tip were submitted by: C.G. Ouimet


 
Categories: VB