none
Emigar a NET 5.0 RRS feed

  • Pregunta

  • Hola a todos:

    Trabajo en asp.net 4.8 y vb

    Quisera emigrar todo a .NET 5.0.

    Creo que un primer paso es emigrar a .NET Core

    ¿Cómo hago el startup? ¿y dónde digo las cadenas de conexión?

    Mi web.config es

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
      <appSettings>
        <add key="cresolia" value="c:\inetpub\wwwroot\Cresolia"/>
        <add key="cresoliaza" value="c:\inetpub\wwwroot\Cresoliaza"/>
        <add key="administracioncomun" value="c:\inetpub\wwwroot\Comun\Administracion"/>
        <add key="administracioncresolia" value="c:\inetpub\wwwroot\Cresolia\Administracion"/>
        <add key="administracioncresoliaza" value="c:\inetpub\wwwroot\Cresoliaza\Administracion"/>
        <add key="administracioncresolined" value="c:\inetpub\wwwroot\Cresolined\Administracion"/>
        <add key="varios" value="c:\inetpub\wwwroot\Comun\Varios"/>
        <add key="fotospersonales" value="c:\inetpub\wwwroot\Comun\Fotos_personales"/>
        <add key="ficherostamanomaximosuperado" value="c:\inetpub\wwwroot\Ficheros_tamano_maximo_superado"/>
        <add key="ficherogastosenvio" value="c:\inetpub\wwwroot\Ficheros_gastos_envio"/>
        <add key="premios" value="c:\inetpub\wwwroot\Cresolia\Premios"/>
        <add key="ffmpeg" value="c:\inetpub\wwwroot\Comun\Ffmpeg"/>
        <add key="temporal" value="c:\inetpub\wwwroot\Temporal"/>
        <add key="ChartImageHandler" value="storage=file;timeout=20;" />
      </appSettings>
      <system.webServer>  
        <security>
          <requestFiltering>
            <requestLimits maxAllowedContentLength="1048576000" />
          </requestFiltering>
        </security>
        <validation validateIntegratedModeConfiguration="false" />
        <handlers>
          <remove name="ChartImageHandler" />
          <add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD,POST" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
        </handlers>
        <defaultDocument>
            <files>
                <remove value="iisstart.htm" />
                <remove value="Default.htm" />
                <remove value="Default.asp" />
                <remove value="index.htm" />
                <remove value="index.html" />
            </files>
        </defaultDocument>
      </system.webServer>
      <connectionStrings>
            <remove name="LocalSqlServer" />
        <add connectionString="Data Source=localhost;Initial Catalog=Comun;Integrated Security=True;MultipleActiveResultSets=True" name="Comun" />
        <add connectionString="Data Source=localhost;Initial Catalog=Cresolia;Integrated Security=True;MultipleActiveResultSets=True" name="Cresolia" />
        <add connectionString="Data Source=localhost;Initial Catalog=Cresoliaza;Integrated Security=True;MultipleActiveResultSets=True" name="Cresoliaza" />
        <add connectionString="Data Source=localhost;Initial Catalog=Cresolined;Integrated Security=True;MultipleActiveResultSets=True" name="Cresolined" />
        <add connectionString="Data Source=localhost;Initial Catalog=Ocio;Integrated Security=True;MultipleActiveResultSets=True" name="Ocio" />
      </connectionStrings>
      <system.web>
        <httpHandlers>
          <add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
        </httpHandlers>
        <authentication mode="None" />
        <compilation defaultLanguage="vb" debug="true" targetFramework="4.5">
          <assemblies>
            <add assembly="System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
            <add assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
            <add assembly="System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Windows.Forms.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add assembly="System.Windows.Forms.DataVisualization.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add assembly="System.Web.DynamicData.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add assembly="System.Web.ApplicationServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add assembly="System.Web.DynamicData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add assembly="System.Web.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Web.Entity.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
            <add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add assembly="System.Web.DataVisualization.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
            <add assembly="System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
            <add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add assembly="System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
            <add assembly="System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add assembly="System.Data.Services.Client, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Data.Services.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
          </assemblies>
        </compilation>
        <httpRuntime maxRequestLength="1048576" />
        <pages controlRenderingCompatibilityVersion="4.0" enableEventValidation="false" autoEventWireup="false" enableViewStateMac="true" viewStateEncryptionMode="Auto" clientIDMode="AutoID">
          <namespaces>
            <clear />
            <add namespace="System" />
            <add namespace="System.IO" />
            <add namespace="System.Text" />
            <add namespace="System.Data" />
            <add namespace="System.Web" />
            <add namespace="System.Web.UI" />
            <add namespace="System.Net.Mail" />
            <add namespace="System.Threading" />
            <add namespace="System.Globalization" />
            <add namespace="System.Configuration" />
            <add namespace="System.Data.SqlClient" />
            <add namespace="System.Web.UI.WebControls" />
            <add namespace="System.Web.UI.HtmlControls" />
            <add namespace="System.Web.Configuration" />
          </namespaces>
          <controls>
            <add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting" assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
          </controls>
        </pages>
        <machineKey validationKey="8FE7A0CF3663FF86B243E1D93E98205017DB3F21EC3BBCD55718B0ECB8CD7DA5EA210117B3253D1B135F7A2EA1E498BD11A848D88E971BEC45056A3932A657A3" decryptionKey="A2B65B10DECA98CA7341E47DA861E631219BE913EB16DFF2" validation="SHA1" />
      </system.web>
    </configuration>
    Muchísimas gracias si podéis ayudarme. O un buen tutorial.


    • Editado volar.2016 sábado, 17 de octubre de 2020 14:33
    sábado, 17 de octubre de 2020 14:29

Respuestas

Todas las respuestas