Ir al contenido principal

Instalacion Windows 2008 y SQL 2008

Aspectos a tener en cuenta con IIS7.5

Instalar ASP.NET

ow to install ASP.NET 1.1 with IIS7 on Vista and Windows 2008

Posted: Jun 02, 2008 21 comments

Average Rating

Tags
Administration
Administrators
ASP.NET
Compatibility
Developers
IIS7

Overview

ASP.NET 2.0 (3.0 and 3.5) are easy to install with Windows Vista and Windows 2008 - just install the ASP.NET component located under IIS->Word Wide Web Services->Application Development Features. You can find this set of components in Windows 2008 by clickingStart, and click Server Manager. Expand the left-hand treeview in Server Manager and click Manage Roles, and then Web Server (IIS). In the right-hand pane look for an option that says Add Role Services. If you're on Windows Vista, click Start, click Control Panel, click Programs, and then Windows Features. Look for the following tree of features under Internet Information Services (IIS):

image

ASP.NET 1.1 is not included in Windows Vista or Windows 2008 and must be downloaded and installed manually. This post shows you how:

Step 1: Install "IIS Metabase Compatibility"

The IIS7 "Metabase compatibility" component is required to successfully install ASP.NET 1.1.

To install it on Windows 2008 Server, click Start, and click Server Manager. Expand the left-hand treeview in Server Manager and click Manage Roles, and then Web Server (IIS). In the right-hand pane look for an option that says Add Role Services. This takes you to wizard where you can install "IIS Metabase Compatibility".

enableASPNET11_clip_image006

If you're on Windows Vista, click Start, click Control Panel, click Programs, and then Windows Features. Look for Internet Information Services (IIS) and install "IIS Metabase Compatibility".

Step 2: Install the .NET Framework v1.1 and .NET Framework v1.1 SP1

Install Framework v1.1, SP1, and ASP.NET's security update to SP1:

When you install .NET Framework Version 1.1, and SP1 for .NET Framework Version 1.1, you'll see the following dialog. Click Run program.

enableASPNET11_clip_image002

note: If you do not install Framework v1.1 SP1, you may run into Data Execution Prevention errors with messages like "IIS Worker Process has stopped working". This is expected. Installing .NET Framework v1.1 SP1 will fix this.

enableASPNET11_clip_image004

Step 3: Enable ASP.NET v1.1 ISAPI Extension

Enable ASP.NET v1.1 ISAPI as an allowed ISAPI extension. To do this, open "IIS Manager" administration tool. In the features view, click on the "ISAPI and CGI Restrictions" feature. In the actions pane, click "add"

Extension: C:\Windows\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll
note: change drive if your system drive is not C:\
Description: ASP.NET v1.1

image

You can also do by running the following command line:

%windir%\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis -enable

Step 4: Add IgnoreSection Handler to v1.1 machine.config

ASP.NET v1.1 will throw runtime exceptions out of the box if you have IIS configuration in the web.config files that are read by your ASP.NET v1.1 applications. To make ASP.NET v1.1 ignore IIS configuration sections, open the Framework v1.1 machine.config file (%windir%\Microsoft.NET\Framework\v1.1.4322\config\machine.config) and add the following section entry just above the bottom tag for the element:


Step 5: Move Site or Application to ASP.NET 1.1 Application Pool

During installation, Framework v1.1 creates an application pool called "ASP.NET 1.1" that is configured to load Framework v1.1 upon startup. To move your site or application into this application pool using IIS Manager, please see our online documentation. You can also do this from the command line by navigating to the %windir%\system32\inetsrv directory and running the following command line:

appcmd set app "Default Web Site/" /applicationPool:"ASP.NET 1.1"

If you would like to create a new application pool that's configured to load Framework v1.1, please see our online documentation forcreating an application pool. You can also do this from the command line by navigating to the %windir%\system32\inetsrv directory and running the following command line:

appcmd add apppool /name:"NewPool"  /managedRuntimeVersion:"v1.1" 


1. Grupos de aplicaciones por default viene con caracter restringido para .NET por lo tanto algunos ASP no funcionan
Tomado de http://geeks.ms/blogs/fernandezja/archive/2009/09/18/classic-asp-ejecutar-asp-cl-225-sico-en-windows-7-iis-7-5-y-enviar-errores-al-explorador.aspx



[Classic ASP] Ejecutar ASP Clásico en Windows 7 (IIS 7.5) y enviar errores al explorador

En estos días volví a manipular un proyecto de ASP 3.0 (Classic ASP) y recordé viejas épocas del código spagetti.

Necesitaba probarlo así que en mi maquina era ejecutarlo desde Windows 7… dejo por aquí los pasos y experiencias.

NOTA: Esto también valido para Windows 2008

Habilitando ASP Clásico

El mensaje de error a la petición de cualquier recurso con la extensión .asp

Error HTTP 404.3 - Not Found
No puede obtener acceso a la página solicitada debido a la configuración de la extensión. Si la página es un script, agregue un controlador. Si se debe cargar el archivo, agregue una asignación MIME.


En IIS7 y IIS7.5 la característica de ASP Clásico no viene instalado por defecto para ello nos vamos a
Habilitar el servidor web para hospedar aplicaciones ASP Clásicas

Vamos a Panel de control…

image

Con esto ya tendremos disponible este característica.. entonces a probar las paginas .asp … si señor sin las “x” al final :)

Mensajes de Error

Luego el error venia con ayuda…

An error occurred on the server when processing the URL. Please contact the system administrator.

If you are the system administrator please click here to find out more about this error.

image

Pero este error es “generico” para devuelva el erro exacto deberías indicarle que nos envié este error el navegador

Para ello vamos a las características de nuestra aplicación ASP

image

image

Luego en las propiedades de depuración indicamos para “Enviar errores al explorador”

image

image

Luego ya es historia conocida…

Y esta propiedad?
Enviar errores al explorador [scriptErrorSentToBrowser]:
Especifica si el servidor web escribe información de depuración específica (nombre del archivo, error, número de línea, descripción) en el explorador del cliente, además de incluirla en el registro de eventos de IIS. El valor predeterminado es True.

Podremos aplicar esta propiedad ejecutando el siguiente comando en modo administrador:

%windir%\system32\inetsrv\appcmd set config -section:asp -scriptErrorSentToBrowser:true


TIP: Para el usuario limitado de infraestructura como yo el comando
appcmd me es un tanto extraño… suerte que tenemos


2. Instalación de SQL server 2008
Tomado de http://msdn.microsoft.com/es-es/library/ms143219.aspx

Instalar SQL Server 2008 R2 (programa de instalación)
[Este tema pertenece a la documentación de la versión preliminar y está sujeto a cambios en versiones futuras. Los temas en blanco se incluyen como marcadores de posición. NOTA: Con el fin de proporcionarle contenido adicional en distintos idiomas, Microsoft ofrece documentación localizada mediante métodos de traducción alternativos. Para esta versión preliminar, parte del contenido de esta documentación se ha traducido mediante el uso de estos métodos. Microsoft es consciente de que los documentos traducidos de esta forma no son siempre perfectos, por lo que es posible que este artículo contenga errores de vocabulario, sintaxis o gramática. La versión final de este contenido se traducirá por los métodos tradicionales y la calidad será igual que la de las versiones anteriores.]

The SQL Server Installation Wizard provides a single feature tree for installation of all SQL Server components so that you do not have to install the following components individually:

* Database Engine (Motor de base de datos)
* Analysis Services
* Reporting Services
* Integration Services
* Replication
* Management tools
* Connectivity components
* Sample databases, samples, and SQL Server Books Online

ms143219.note(es-es,SQL.105).gifNota:
SQL Server Compact runtime and query tools are installed when you install SQL Server Management Studio and SQL Server Integration Services. SQL Server Compact Server tools are installed if you create a replication subscription involving SQL Server Compact.

These additional topics document other ways to install SQL Server:

* How to: Install SQL Server 2008 R2 from the Command Prompt.
* Cómo crear un nuevo clúster de conmutación por error de SQL Server (programa de instalación).
* Actualizar a SQL Server 2008 R2 (programa de instalación).

Requisitos previos

Before you install SQL Server, review topics in Planear una instalación de SQL Server.

Before you install SQL Server 2008 R2 side by side with one or more SQL Server 2008 instances, see Consideraciones acerca de las instancias en paralelo de SQL Server 2008 R2 y SQL Server 2008.
ms143219.note(es-es,SQL.105).gifNota:
For local installations, you must run Setup as an administrator. If you install SQL Server from a remote share, you must use a domain account that has read and execute permissions on the remote share.

ms143219.note(es-es,SQL.105).gifNota:
You may need to apply cumulative updates to the original media before you install SQL Server 2008 R2, if you are affected by a known issue in the setup program. For more information about known issues and detailed instructions, see How to update SQL Server .

To install SQL Server 2008 R2

1.

Insert the SQL Server installation media. From the root folder, double-click Setup.exe. To install from a network share, locate the root folder on the share, and then double-click Setup.exe. If the Microsoft SQL Server 2008 Setup dialog box appears, click OK to install the prerequisites, then click Cancel to exit SQL Server installation.
2.

If the .NET Framework 3.5 SP1 installation dialog box appears, select the check box to accept the .NET Framework 3.5 SP1 License Agreement. Click Next. To exit SQL Server installation, click Cancel. When installation of .NET Framework 3.5 SP1 is complete, click Finish.
3.

Windows Installer 4.5 is also required, and might be installed by the Installation Wizard. If you are prompted to restart your computer, restart it, and then restart SQL Server Setup.exe.
4.

When the prerequisites are installed, the Installation Wizard runs the SQL Server Installation Center. To create a new installation of SQL Server, click New Installation or Add Features to an Existing Installation.
5.

The System Configuration Checker runs a discovery operation on your computer. To continue, click OK. If Setup detects SQL Server 2008 on the machine, you will see a warning about the automatic upgrade of shared components to SQL Server 2008 R2. For more information about side-by-side instances of SQL Server 2008 R2 and SQL Server 2008, see Consideraciones acerca de las instancias en paralelo de SQL Server 2008 R2 y SQL Server 2008. Setup log files are created for your installation. For more information, see How to: View and Read SQL Server Setup Log Files.
6.

On the Language Selection page, you can specify the language for your instance of SQL Server if you are installing on a localized operating system and the installation media includes language packs for both English and the language corresponding to the operating system. For more information about cross-language support and installation considerations, see Versiones en idioma local en SQL Server.

To continue, click Next.
7.

On the Product Key page, select an option button to indicate whether you are installing a free edition of SQL Server, or a production version of the product that has a PID key. For more information, see Editions and Components of SQL Server 2008 R2.
8.

On the License Terms page, read the license agreement, and then select the check box to accept the license terms and conditions. To help improve SQL Server, you can also enable the feature usage option and send reports to Microsoft.
9.

The System Configuration Checker verifies the system state of your computer before Setup continues.
10.

On the Feature Role page, select SQL Server Feature Installation, and then click Next to continue to the Feature Selection page.
11.

On the Feature Selection page, select the components for your installation. A description for each component group appears in the right pane after you select the feature name. You can select any combination of check boxes. For more information, see Editions and Components of SQL Server 2008 R2.

You can also specify a custom directory for shared components by using the field at the bottom of the Feature Selection page. To change the installation path for shared components, either update the path in the field at the bottom of the dialog box, or click Browse to move to an installation directory. The default installation path is C:\Archivos de programa\Microsoft SQL Server\100\.
12.

On the Instance Configuration page, specify whether to install a default instance or a named instance. For more information, see Configuración de instancia. Click Next to continue.

Instance ID — By default, the instance name is used as the Instance ID. This is used to identify installation directories and registry keys for your instance of SQL Server. This is the case for default instances and named instances. For a default instance, the instance name and instance ID would be MSSQLSERVER. To use a nondefault instance ID, select the Instance ID check box and provide a value.
ms143219.note(es-es,SQL.105).gifNota:
Typical stand-alone instances of SQL Server 2008 R2, whether default or named instances, do not use a nondefault value for the Instance ID check box.

Instance root directory — By default, the instance root directory is C:\Archivos de programa\Microsoft SQL Server\100\. To specify a nondefault root directory, use the field provided, or click Browse to locate an installation folder.

All SQL Server service packs and upgrades will apply to every component of an instance of SQL Server.

Detected instances and features — The grid shows instances of SQL Server that are on the computer where Setup is running. If a default instance is already installed on the computer, you must install a named instance of SQL Server 2008 R2.
13.

The Disk Space Requirements page calculates the required disk space for the features that you specify. Then it compares the required space to the available disk space. For more information, see Requisitos de espacio en disco.
14.

Work flow for the rest of this topic depends on the features that you have specified for your installation. You might not see all the pages, depending on your selections.
15.

On the Server Configuration — Service Accounts page, specify login accounts for SQL Server services. The actual services that are configured on this page depend on the features that you selected to install.

You can assign the same login account to all SQL Server services, or you can configure each service account individually. You can also specify whether services start automatically, are started manually, or are disabled. Microsoft recommends that you configure service accounts individually to provide least privileges for each service, where SQL Server services are granted the minimum permissions they have to have to complete their tasks. For more information, see Configuración del servidor - Cuentas de servicio and Configurar cuentas de servicio de Windows.

To specify the same logon account for all service accounts in this instance of SQL Server, provide credentials in the fields at the bottom of the page.

Security Note No utilice una contraseña en blanco. Utilice una contraseña segura.

When you are finished specifying login information for SQL Server services, click Next.
16.

Use the Server Configuration — Collation tab to specify nondefault collations for the Database Engine (Motor de base de datos) and Analysis Services. For more information, see Configurar servidor - Intercalación.
17.

Use the Database Engine (Motor de base de datos) Configuration - Account Provisioning page to specify the following:
* Security Mode — select Windows Authentication or Mixed Mode Authentication for your instance of SQL Server. If you select Mixed Mode Authentication, you must provide a strong password for the built-in SQL Server system administrator account.
After a device establishes a successful connection to SQL Server, the security mechanism is the same for both Windows Authentication and Mixed Mode. For more information, see Configuración del motor de base de datos: aprovisionamiento de cuentas.
* SQL Server Administrators — You must specify at least one system administrator for the instance of SQL Server. To add the account under which SQL Server Setup is running, click Add Current User. To add or remove accounts from the list of system administrators, click Add or Remove, and then edit the list of users, groups, or computers that will have administrator privileges for the instance of SQL Server. For more information, see Configuración del motor de base de datos: aprovisionamiento de cuentas.

When you are finished editing the list, click OK. Verify the list of administrators in the configuration dialog box. When the list is complete, click Next.
18.

Use the Database Engine (Motor de base de datos) Configuration - Data Directories page to specify nondefault installation directories. To install to default directories, click Next.
ms143219.note(es-es,SQL.105).gifImportante:
If you specify nondefault installation directories, ensure that the installation folders are unique to this instance of SQL Server. None of the directories in this dialog box should be shared with directories from other instances of SQL Server.

For more information, see Configuración del motor de base de datos - Directorios de datos.
19.

Use the Database Engine (Motor de base de datos) Configuration - FILESTREAM page to enable FILESTREAM for your instance of SQL Server. For more information, see Configuración del motor de base de datos - Secuencia de archivo.
20.

Use the Analysis Services Configuration — Account Provisioning page to specify users or accounts that will have administrator permissions for Analysis Services. You must specify at least one system administrator for Analysis Services. To add the account under which SQL Server Setup is running, click Add Current User. To add or remove accounts from the list of system administrators, click Add or Remove, and then edit the list of users, groups, or computers that will have administrator privileges for Analysis Services. For more information, see Analysis Services Configuration - Account Provisioning.

When you are finished editing the list, click OK. Verify the list of administrators in the configuration dialog box. When the list is complete, click Next.
21.

Use the Analysis Services Configuration — Data Directories page to specify nondefault installation directories. To install to default directories, click Next.
ms143219.note(es-es,SQL.105).gifImportante:
If you specify nondefault installation directories, ensure that the installation folders are unique to this instance of SQL Server. None of the directories in this dialog box should be shared with directories from other instances of SQL Server.

For more information, see Configuración de Analysis Services - Directorios de datos.
22.

Use the Reporting Services Configuration page to specify the kind of Reporting Services installation to create. Options include the following:
* Native mode default configuration
* SharePoint mode default configuration
* Unconfigured Reporting Services installation

For more information about Reporting Services configuration modes, see Opciones de instalación del servidor de informes.
23.

On the Error Reporting page, specify the information that you want to send to Microsoft to help improve SQL Server. By default, option for error reporting is enabled. For more information, see Informes de uso y errores.
24.

The System Configuration Checker will run one more set of rules to validate your computer configuration with the SQL Server features that you have specified.
25.

The Ready to Install page shows a tree view of installation options that were specified during Setup. To continue, click Install.
26.

During installation, the Installation Progress page provides status so that you can monitor installation progress as Setup continues.
27.

After installation, the Complete page provides a link to the summary log file for the installation and other important notes. To complete the SQL Server installation process, click Close.
28.

If you are instructed to restart the computer, do so now. It is important to read the message from the Installation Wizard when you have finished with Setup. For more information, see How to: View and Read SQL Server Setup Log Files.



3.Activar Rutas Primarias

Mensaje de error cuando usa rutas de acceso relativas en incluir instrucciones con páginas Active Server: "Páginas Active Server, la ruta principal ASP 0131 no permitido"

Recomendamos encarecidamente que todos los usuarios actualizar a Microsoft Internet Information Services (IIS) versión 7.0 que se ejecutan en Microsoft Windows Server 2008. IIS 7.0 aumenta notablemente la seguridad de la infraestructura Web. Para obtener más información acerca de temas relacionados con la seguridad IIS, visite el siguiente sitio Web de Microsoft:
http://www.microsoft.com/technet/security/prodtech/IIS.mspx (http://www.microsoft.com/technet/security/prodtech/IIS.mspx)
Para obtener más información acerca de IIS 7.0, visite el siguiente sitio Web de Microsoft:
http://www.iis.net/default.aspx?tabid=1 (http://www.iis.net/default.aspx?tabid=1)

En esta página

Síntomas
Cuando utiliza rutas de acceso relativas en incluir instrucciones con Microsoft...

Cuando utiliza rutas de acceso relativas en incluir instrucciones con Microsoft Active Server (ASP), explorar una página Web puede devolver un mensaje de error similar al siguiente:
Páginas Active Server, ASP 0131
no permitido de ruta principal
El archivo de inclusión '/ 'no puede contener'.. ' para indicar el directorio primario.
//, la línea

Causa
Esto se debe deshabilitando "Rutas primarias del ASP" para un sitio Web o una ap...

Esto se debe deshabilitando "Rutas primarias del ASP" para un sitio Web o una aplicación mientras utiliza las rutas primarias relativa en una instrucción include.

Rutas de acceso relativa primario en incluyen uso de instrucciones la siguiente forma:
      

Solución
La mejor solución al problema es utilizar rutas de acceso virtuales absolutas de...

La mejor solución al problema es utilizar rutas de acceso virtuales absolutas de la raíz del sitio Web en lugar de rutas de acceso relativas.

Por ejemplo, si utiliza un archivo de inclusión denominado "mycode.inc" en la raíz del servidor, la ruta de acceso virtual sería "/ mycode.inc." Si utiliza el mismo archivo de inclusión en un directorio virtual denominado "/ incluye"en el servidor, la ruta de acceso virtual sería"/ includes/mycode.inc."

El ejemplo de sintaxis siguiente ilustra cómo implementar las rutas de acceso virtuales:
      

Una alternativa al uso de rutas de acceso virtuales absolutas es habilitar primarias rutas de acceso; sin embargo, esto no es el método preferido. (Vea las notas en la sección More Information para obtener más detalles). Esto se consigue su sitio Web predeterminado mediante los pasos siguientes:

Internet Information Services 7.0

  1. Inicie el Administrador de servicios de Internet.
  2. Haga clic en sitio Web predeterminado y, a continuación, haga clic en Propiedades .
  3. Haga doble clic en ASP en el panel características .
  4. Expanda el comportamiento .
  5. Haga clic en Habilitar las rutas primarias .
  6. Haga clic en true para Habilitar las rutas primarias .
  7. Haga clic en Aplicar .

Servicios de Internet Information Server 6.0

  1. Abra el Administrador de servicios Internet en la Microsoft Management Console (MMC) .
  2. Haga clic con el botón secundario en su sitio Web predeterminado y seleccione Propiedades .
  3. Haga clic en la ficha Directorio principal .
  4. Haga clic en el botón configuración .
  5. Haga clic en la ficha Opciones de aplicación .
  6. Haga clic para seleccionar la casilla de verificación Habilitar rutas de acceso a principal .
  7. Haga clic en el botón Aceptar hasta que vuelva a MMC.

Más información
hay consideraciones de seguridad adicionales que considerarse al habilitar ruta...

hay consideraciones de seguridad adicionales que considerarse al habilitar rutas de acceso primarias en un equipo IIS. Para obtener más información, haga clic en los números de artículo siguientes para verlos en Microsoft Knowledge Base:
184717 (http://support.microsoft.com/kb/184717/ ) Propiedad AspEnableParentPaths de MetaBase debe establecerse en false
332117 (http://support.microsoft.com/kb/332117/ ) Está deshabilitado habilitar rutas de principal de forma predeterminada en IIS 6.0

Para obtener más información acerca de cómo solucionar éste y otros errores ASP que pueden producirse con IIS 6.0, visite los siguientes sitios Web de Microsoft:
Cambios importantes y solución de problemas en ASP
http://technet.microsoft.com/en-us/windowsserver/default.aspx (http://technet.microsoft.com/en-us/windowsserver/default.aspx)



Comentarios

Entradas populares de este blog

Vulnerabilidad en Bluetooth -- BIAS

Será el fin de TCP con la llegada de HTTP/3

La  IETF (Internet Engineering Task Force)  ha  publicado  información sobre lo que será el nuevo protocolo de transferencia de hypertexto que tanto usamos a diario, cuando accedemos a sitios web. HTTP/3 ya no usará TCP nunca más. En su lugar se ejecutará sobre el protocolo QUIC. El protocolo QUIC fue elaborado conceptualmente por Google en 2012 y tiene como objetivo mejorar tanto la seguridad como el rendimiento ofrecido por  TCP - Transmission Control Protocol , sobre todo lo segundo. ¿Qué es Quic y sus diferencias con TCP?   Quick UDP Internet Connections, es un protocolo de capa de transporte que se basa en el multiplexado de conexiones UDP. De hecho, QUIC utiliza esta combinación: TCP + TLS + SDPY sobre UDP Esto lo hace con varias mejoras respecto a la actual implementación de TCP. La IETF ha estado desde 2016 trabajando a fondo con una versión global del protocolo alumbra do por Google, y finalmente ha sido este año cuando ha decidido incluirlo en la nueva versión HTTP/3.   Sin e

Zoom y sus vulnerabilidades

Leyendo acerca de todas las quejas en cuanto a brechas de seguridad que tiene Zoom la plataforma de videoconferencia que conocí hace unos años, pero que ahora debido a la necesidad de estar en casa debido al COVID19, la ha convertido en la herramienta que muchos usan para sus reuniones empresariales virtuales, sus llamadas privadas o incluso para las fiestas virtuales o noches de Netflix.   Solo precisar que no es la única herramienta que se tiene para tener este tipo de video conferencias, alternativas como WhatsApp (Vulnerable- Facebook de por medio.. hmm) o como Teams de Microsoft, Cisco Webex, Webex Meetings (se necesita pago) o  Jitsi , esta última es de uso gratuito también y con algunas mejoras en su seguridad realizadas hace poco, puede ser una plataforma para cubrir esta necesidad.   Si  la opción es usar Zoom, no esta de más revisar este  link  para tratar de asegurar esta aplicación y sentirse un poco más tranquilo, o también puede ver el siguiente video.   Aquí les comparto