Skip to content

Commit

Permalink
adds ms.custom and move articles
Browse files Browse the repository at this point in the history
  • Loading branch information
sevend2 authored May 7, 2024
1 parent 930a129 commit 51eb808
Show file tree
Hide file tree
Showing 71 changed files with 173 additions and 86 deletions.
15 changes: 15 additions & 0 deletions .openpublishing.redirection.developer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4924,6 +4924,21 @@
"source_path": "support/sql/general/setup-data-collection-diagnostic-tool.md",
"redirect_url": "/troubleshoot/sql/tools/sql-support-troubleshooting-diagnostic-tools",
"redirect_document_id": false
},
{
"source_path": "support/developer/visualstudio/general/vbs-type-mismatch-error.md",
"redirect_url": "/troubleshoot/developer/visualstudio/visual-basic/language-compilers/vbs-type-mismatch-error",
"redirect_document_id": true
},
{
"source_path": "support/developer/visualstudio/general/release-management-not-have-https-protocol.md",
"redirect_url": "/previous-versions/troubleshoot/visualstudio/general/release-management-not-have-https-protocol",
"redirect_document_id": true
},
{
"source_path": "support/developer/dotnet/framework/general/warning-add-service-reference-silverlight.md",
"redirect_url": "/previous-versions/troubleshoot/dotnet/framework/warning-add-service-reference-silverlight",
"redirect_document_id": true
}
]
}
2 changes: 0 additions & 2 deletions support/developer/dotnet/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,6 @@
href: ./framework/general/timeout-when-application-calls-poll-method.md
- name: Use AssemblyVersion and AssemblyFileVersion
href: ./framework/general/assembly-version-assembly-file-version.md
- name: Warning when service references are added
href: ./framework/general/warning-add-service-reference-silverlight.md
- name: Windows Forms applications don't release memory
href: ./framework/general/winform-app-use-settooltip-not-release-memory.md
- name: WCF net.tcp services stop responding
Expand Down

This file was deleted.

6 changes: 0 additions & 6 deletions support/developer/visualstudio/general/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,7 @@
href: ./cannot-sign-in-javascript-disabled.md
- name: Error when you build applications
href: ./not-transform-license-file-to-binary-resource.md
- name: Error when you use HTTPS protocol
href: ./release-management-not-have-https-protocol.md
- name: Files can't be saved when you use Resource Editor
href: ./resource-editor-cannot-save-file.md
- name: Subscriptions administrator migration
href: ./subscription-administrator-migration.md
- name: VBScript runtime error when you do a numeric comparison
href: ./vbs-type-mismatch-error.md
- name: Workarounds for Visual Studio 2022 on unsupported operating systems
href: ./visual-studio-2022-unsupported-operating-systems.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@
href: ./start-process-as-another-user.md
- name: Validate an XML document by using DTD, XDR, or XSD
href: ./validate-xml-document-by-dtd-xdr-xsd.md
- name: VBScript runtime error when you do a numeric comparison
href: ./vbs-type-mismatch-error.md
- name: Write CGI applications
href: ./write-cgi-applications.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
---
title: VBScript type mismatch error
description: Describes a problem that when using VBScript to perform a numeric comparison or calculation on an adNumeric (131) field type, type mismatch error occurs.
ms.date: 04/13/2020
ms.reviewer: estraley, jayapst
ms.custom: sap:Language or Compilers\Visual Basic .NET (VB.NET)
---
# VBScript runtime error (Type Mismatch) when you perform a numeric comparison on an adNumeric field type

This article helps you to resolve an error (type mismatch) that occurs when you use Visual Basic Scripting Edition (VBScript) to perform a numeric comparison or calculation on an `adNumeric` (131) field type.

_Original product version:_   Visual Basic Script
_Original KB number:_   306916

## Symptoms

When you use VBScript to perform a numeric comparison or calculation on an `adNumeric` (131) field type, you may receive the following error messages:

- Error message 1

> Microsoft VBScript runtime error '800a000d'
> Type mismatch
- Error message 2

> Microsoft VBScript runtime error '800a01ca'
> Variable uses an Automation type not supported in VBScript
## Cause

These error messages occur because VBScript cannot properly convert `adNumeric` values to a valid numeric type. This behavior is by design.

## Resolution

You can use one of the following two possible workarounds:

- Use the `CDbl` or `CInt` function to convert the `adNumeric` field.
- Use JScript, which does not exhibit this behavior.

You can reproduce this behavior in an Active Server Pages (ASP) page or through a simple Visual Basic Script (.vbs) file. The following steps demonstrate how to reproduce the problem in a simple .vbs file.

## Step 1 to reproduce the behavior: Create the Oracle table

Run the following script on your Oracle server to create the sample table:

```sql
DROP TABLE Cust;
CREATE TABLE Cust (CustID NUMBER(22,6) PRIMARY KEY, Name VARCHAR2(50));
INSERT INTO Cust VALUES(222,'Kent');
INSERT INTO Cust VALUES(333,'Sally');
COMMIT;
```

## Step 2 to reproduce the behavior: Create the VBS file

1. In Notepad, create a new text document named *Test.vbs*, and paste the following code into test.

```vbs
Set oConn = CreateObject("ADODB.Connection")
oConn.open "Provider=MSDAORA;user id=User;" & _
"password=password;data source=Oracle816Server;"

set oRS = oConn.Execute("Select CustID FROM Cust")
MsgBox "Numeric field type is 131." & vbcrlf & _
"Field Type = " & ors.fields("CustID").type

MsgBox "Numeric field * 100 = " & oRS("CustID") * 100
MsgBox "Numeric field * 100 = " & cdbl(oRS("Custid")) * 100
```

2. Modify the connection string so it points to your Oracle server and provides a valid user name and password.

3. Save *Test.vbs* to your desktop. You should receive a warning that changing the extension may make the file unstable. Click **OK** to continue. If you do not see this warning, you may want to ensure that you are showing extensions for known file types.

4. Close *Test.vbs*.
5. On your desktop, double-click *Test.vbs* to run the code. You receive the **Type Mismatch** error message.

6. Uncomment the following line of code, which converts the `adNumeric` field to a double data type:

```vbs
MsgBox "Numeric field * 100 = " & cdbl(oRS("Custid")) * 100
```

7. Comment the following line of code:

```vbs
MsgBox "Numeric field * 100 = " & oRS("CustID") * 100
```

8. Close and save *Test.vbs*.
9. On your desktop, double-click *Test.vbs* to run the code again, then you receive two message boxes and no error messages.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Format DateTime and Date Values in XML by VB .NET
description: Describes how to format DateTime and Date values of DataTable columns in the XML extracted from an ADO.NET DataSet by using Visual Basic .NET.
ms.date: 05/12/2020
ms.custom: sap:Active Server Pages
ms.custom: sap:General Development
---
# How to format DateTime and Date values in the XML extracted from an ADO.NET DataSet by using Visual Basic .NET

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Application configuration in ASP.NET
description: This article describes how to use ASP.NET to make application-specific and directory-specific configuration settings.
ms.date: 04/03/2020
ms.custom: sap:Development
ms.custom: sap:General Development
ms.topic: how-to
---
# Make application and directory-specific configuration settings in an ASP.NET application
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Can't print COM objects called from ASP
description: This article provides a resolution that a COM object sends output to a printer fails when called from Active Server Pages.
ms.date: 02/27/2020
ms.custom: sap:Development
ms.custom: sap:General Development
---
# COM objects fail to print when called from ASP

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: ASP.NET 2.0 and 3.5 not working
description: This article describes an issue in which uninstalling ASP.NET 4.5 from Windows 8 or Windows Server 2012 causes ASP.NET 2.0 and ASP.NET 3.5 to not work.
ms.date: 04/07/2020
ms.custom: sap:Development
ms.custom: sap:General Development
ms.reviewer: meyoun
---
# ASP.NET 2.0 and 3.5 not working after you uninstall ASP.NET 4.5 in Windows 8 or Windows Server 2012
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Build cascading drop-down list in ASP.NET
description: This article describes that how to build a cascading drop-down list by using the standard DropDownList control in ASP.NET together with the ASP.NET AJAX framework.
ms.date: 04/09/2020
ms.custom: sap:Development
ms.custom: sap:General Development
ms.reviewer: v-zhiqni
ms.topic: how-to
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Cache trimming occurs in an ASP.NET web application
description: This article provides resolutions for the problem of cache trimming in an ASP.NET web application running in IIS.
ms.date: 12/11/2020
ms.custom: sap:Development
ms.custom: sap:General Development
---
# Cache trimming occurs in an ASP.NET web application running in IIS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Cannot debug ASP.NET web applications
description: This article provides resolutions for the problem that you can't debug an ASP.NET application in Microsoft Visual Studio .NET.
ms.date: 04/07/2020
ms.custom: sap:Development
ms.custom: sap:General Development
---
# Cannot debug ASP.NET web applications

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Unable to use session state server
description: This article provides resolutions for the error that occurs when you add the setting <httpRuntime enableVersionHeader ="false"/> to the state server web.config.
ms.date: 08/06/2020
ms.custom: sap:Development
ms.custom: sap:General Development
---
# Unable to use session state server because this version of ASP.NET requires session state server version 2.0 or above

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Work with code-behind class files
description: This article describes how to develop .aspx pages that use code-behind class files in Microsoft ASP.NET applications.
ms.date: 07/28/2020
ms.topic: how-to
ms.custom: sap:General Development
---
# Use Visual C# .NET to work with code-behind class files in an ASP.NET application

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: ASP.NET Code-behind model overview
description: This article provides information about the code-behind model that is introduced in ASP.NET.
ms.date: 04/02/2020
ms.custom: sap:Development
ms.custom: sap:General Development
ms.topic: article
---
# ASP.NET Code-behind model overview
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Store ASP.NET SQL Server mode session state
description: This article describes how to configure ASP.NET SQL Server mode session state management.
ms.date: 03/26/2020
ms.custom: sap:FTP authentication and authorization
ms.custom: sap:General Development
ms.topic: how-to
---
# Configure SQL Server to store ASP.NET session state
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Create custom error reporting pages
description: This article describes how to use Visual Basic .NET code to trap and respond to errors when they occur in ASP.NET.
ms.date: 07/28/2020
ms.topic: how-to
ms.custom: sap:General Development
---
# Create custom error reporting pages in ASP.NET by using Visual Basic .NET

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: DataGrid controls display incorrectly in pages
description: This article provides resolutions for the problem that data grid may not appear when you view an .aspx page that contains a DataGrid control.
ms.date: 04/07/2020
ms.custom: sap:Development
ms.custom: sap:General Development
ms.reviewer: joelrewe, anandh
---
# DataGrid control doesn't display correctly in .aspx page
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Disable ASP session state in ASP.NET
description: This article demonstrates how to disable session state in ASP.NET.
ms.date: 04/03/2020
ms.custom: sap:Development
ms.custom: sap:General Development
ms.topic: how-to
---
# Disable ASP session state in ASP.NET
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Disable debugging for ASP.NET application
description: This article discusses how to disable debugging for ASP.NET applications.
ms.date: 03/27/2020
ms.custom: sap:FTP authentication and authorization
ms.custom: sap:General Development
ms.topic: how-to
---
# Disable debugging for ASP.NET applications
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Edit configuration of an ASP.NET application
description: This article describes how to edit the Web.config file of an ASP.NET application.
ms.date: 03/27/2020
ms.custom: sap:FTP authentication and authorization
ms.custom: sap:General Development
ms.topic: how-to
---
# Edit the configuration of an ASP.NET application
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Can't write to event log from ASP.NET
description: This article describes that you fail to write to the Windows event log from an ASP.NET or ASP application.
ms.date: 04/10/2020
ms.custom: sap:Development
ms.custom: sap:General Development
ms.reviewer: Isha
---
# Fail to write to the Windows event log from an ASP.NET or ASP application
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Use ASP.NET forms-based authentication
description: This article demonstrates how to implement forms-based authentication in ASP.NET applications by using a database to store the users.
ms.date: 03/27/2020
ms.custom: sap:Development
ms.custom: sap:General Development
ms.reviewer: ARTHURYA
ms.topic: how-to
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: ASP.NET HTTP modules and handlers
description: This article provides information about the HTTP modules and HTTP handlers.
ms.date: 04/03/2020
ms.custom: sap:Development
ms.custom: sap:General Development
ms.reviewer: mdunner
ms.topic: how-to
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Impersonation in ASP.NET applications
description: This article introduces how to implement impersonation by modifying Web.config and running a particular section of code.
ms.date: 03/26/2020
ms.custom: sap:FTP authentication and authorization
ms.custom: sap:General Development
ms.reviewer: jallen
ms.topic: how-to
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: ASP.NET inline expressions
description: This article introduces the usage of ASP.NET inline expressions in the .NET Framework.
ms.date: 03/26/2020
ms.custom: sap:Development
ms.custom: sap:General Development
ms.reviewer: wawang
ms.topic: article
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: MVC 3 installation fails
description: This article describes the problem that a fatal error occurs when you install ASP.NET MVC 3 or ASP.NET Web pages.
ms.date: 04/07/2020
ms.custom: sap:Development
ms.custom: sap:General Development
---
# Installation of ASP.NET MVC 3 or ASP.NET Web pages fails with a fatal error

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: MVC3 NuGet Package Manager is missing
description: This article provides resolutions for the problem that you might receive the error message that could not create a new ASP.NET MVC project because the required component NuGet Package Manager is missing or out of date. Install it and try again.
ms.date: 04/07/2020
ms.custom: sap:Development
ms.custom: sap:General Development
ms.reviewer: mlaing
---
# ASP.NET MVC 3 NuGet Package Manager is missing or out of date
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Perform Fragment Caching by Using Visual C# .NET
description: This article describes how to perform Fragment Caching in ASP.NET by using Visual C# .NET.
ms.date: 08/06/2020
ms.topic: how-to
ms.custom: sap:General Development
---
# Perform Fragment Caching in ASP.NET by Using Visual C# .NET

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Permissions of connect to a remote Access database
description: This article describes the permissions to connect to a remote Access database.
ms.date: 12/11/2020
ms.custom: sap:Development
ms.custom: sap:General Development
---
# Permissions to connect to a remote Access database from ASP.NET

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Register assembly to use custom control
description: This article explains how to register an assembly in a WebForm to use a custom control.
ms.date: 03/25/2020
ms.custom: sap:Development
ms.custom: sap:General Development
ms.reviewer: pattim
ms.topic: how-to
---
Expand Down
Loading

0 comments on commit 51eb808

Please sign in to comment.