none
HELP!!! Visual Studio. Версия приложения не соответствует версии БД RRS feed

  • Общие обсуждения

  • такое сообщение: невозможен запуск приложения, так как версия приложения не соответствует версии БД (просрочен пакет обновления). Сказали, что нужно править файлы деплоя. Какие?? есть такой Web.config, его код нужно править?:

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
      <configSections>
        <sectionGroup name="system.serviceModel">
          <section name="domainServices" type="System.ServiceModel.DomainServices.Hosting.DomainServicesSection, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" allowDefinition="MachineToApplication" requirePermission="false" />
        </sectionGroup>
      </configSections>
      <system.diagnostics>
        <sources>
          <source name="System.ServiceModel" switchValue="Information,ActivityTracing" propagateActivity="true">
            <listeners>
              <add type="System.Diagnostics.DefaultTraceListener" name="Default">
                <filter type="" />
              </add>
              <add name="ServiceModelTraceListener">
                <filter type="" />
              </add>
            </listeners>
          </source>
          <source name="System.ServiceModel.MessageLogging" switchValue="Warning, ActivityTracing">
            <listeners>
              <add type="System.Diagnostics.DefaultTraceListener" name="Default">
                <filter type="" />
              </add>
              <add name="ServiceModelMessageLoggingListener">
                <filter type="" />
              </add>
            </listeners>
          </source>
        </sources>
        <sharedListeners>
          <add initializeData="D:\exp_prog\Seti\sba_seti_skuke\sba_seti_skuke.Web\Web_tracelog.svclog" type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" name="ServiceModelTraceListener" traceOutputOptions="LogicalOperationStack, DateTime, Timestamp, ProcessId, ThreadId, Callstack">
            <filter type="" />
          </add>
          <add initializeData="D:\exp_prog\Seti\sba_seti_skuke\sba_seti_skuke.Web\Web_messages.svclog" type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" name="ServiceModelMessageLoggingListener" traceOutputOptions="Timestamp">
            <filter type="" />
          </add>
        </sharedListeners>
        <trace autoflush="false" />
      </system.diagnostics>
      <connectionStrings>
        <add name="ApplicationServices" connectionString="Data Source=SRVNESKES69-002;Initial Catalog=ote;Integrated Security=False;Persist Security Info=True;User ID=sa;Password=102030;Encrypt=True;TrustServerCertificate=True" providerName="System.Data.SqlClient" />
        <add name="skukeConnectionString" connectionString="Data Source=SRVNESKES69-002;Initial Catalog=skuke;Persist Security Info=True;User ID=sa;Password=102030;MultipleActiveResultSets=True;Application Name=EntityFramework;Connection Timeout=800" providerName="System.Data.SqlClient" />
        <add name="skukeEntities" connectionString="metadata=res://*/DataAccess.SkukeModel.csdl|res://*/DataAccess.SkukeModel.ssdl|res://*/DataAccess.SkukeModel.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=SRVNESKES69-002;initial catalog=skuke;persist security info=True;user id=sa;password=102030;multipleactiveresultsets=True;Connection Timeout=80000;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
        <add name="oteEntities" connectionString="metadata=res://*/DataAccess.OteKladr.csdl|res://*/DataAccess.OteKladr.ssdl|res://*/DataAccess.OteKladr.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=SRVNESKES69-002;initial catalog=ote;persist security info=True;user id=sa;password=102030;multipleactiveresultsets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
        <add name="testEntities" connectionString="metadata=res://*/DataAccess.Test.csdl|res://*/DataAccess.Test.ssdl|res://*/DataAccess.Test.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=SRVNESKES69-002;Initial Catalog=skuke;Persist Security Info=True;User ID=sa;Password=102030;MultipleActiveResultSets=True;Application Name=EntityFramework&quot;" providerName="System.Data.EntityClient" />
      </connectionStrings>
      <system.web>
        <trace localOnly="false" />
        <httpModules>
          <add name="DomainServiceModule" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        </httpModules>
        <compilation debug="true" targetFramework="4.0">
          <assemblies>
            <add assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
            <add assembly="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
            <add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
            <add assembly="System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
            <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
          </assemblies>
          <buildProviders>
            <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
          </buildProviders>
        </compilation>
        <globalization culture="auto" uiCulture="auto" />
        <!--моя добавка start-->
        <sessionState timeout="288000" />
        <httpRuntime executionTimeout="288000" />
        <!--моя добавка end-->
        <authentication mode="Forms">
          <forms name=".sba_seti_skuke_ASPXAUTH" timeout="288000" />
        </authentication>
        <membership>
          <providers>
            <clear/>
            <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" />
          </providers>
        </membership>
        <roleManager enabled="true">
          <providers>
            <clear/>
            <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />
            <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />
          </providers>
        </roleManager>
        <profile>
          <providers>
            <clear/>
            <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" />
          </providers>
          <properties>
            <add name="FriendlyName" />
          </properties>
        </profile>
        <!--для работы отчётности-->
        <httpHandlers>
          <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false" />
        </httpHandlers>
        <customErrors defaultRedirect="" mode="Off" />
        <!--<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>-->
      </system.web>
      <system.webServer>
        <validation validateIntegratedModeConfiguration="false" />
        <modules runAllManagedModulesForAllRequests="true">
          <add name="DomainServiceModule" preCondition="managedHandler" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        </modules>
        <handlers>
          <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        </handlers>
      </system.webServer>
      <system.serviceModel>
        <!--<domainServices>
          <endpoints>
            <add name="OData" type="System.ServiceModel.DomainServices.Hosting.ODataEndpointFactory, System.ServiceModel.DomainServices.Hosting.OData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
          </endpoints>
        </domainServices>-->
        <diagnostics>
          <messageLogging logMalformedMessages="true" logMessagesAtTransportLevel="true" />
        </diagnostics>
        <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
        <services>
          <service name="sba_seti_skuke.Web.DomainModel.SkukeDomainService" behaviorConfiguration="sba_seti_skuke.Web.SkukeDomainService"></service>
          <service name="sba_seti_skuke.Web.DomainModel.OteKladrDomainService" behaviorConfiguration="sba_seti_skuke.Web.OteKladrDomainService"></service>
        </services>
        <behaviors>
          <serviceBehaviors>
            <behavior name="sba_seti_skuke.Web.SkukeDomainService">
              <serviceMetadata httpGetEnabled="True" />
              <serviceDebug includeExceptionDetailInFaults="true" />
              <!--<serviceAuthorization impersonateCallerForAllOperations="false"/>-->
              <dataContractSerializer maxItemsInObjectGraph="2147483647" />
            </behavior>
            <behavior name="sba_seti_skuke.Web.OteKladrDomainService">
              <serviceMetadata httpGetEnabled="True" />
              <serviceDebug includeExceptionDetailInFaults="true" />
              <!--<serviceAuthorization impersonateCallerForAllOperations="false"/>-->
              <dataContractSerializer maxItemsInObjectGraph="2147483647" />
            </behavior>
          </serviceBehaviors>
        </behaviors>
      </system.serviceModel>
    </configuration>

    27 ноября 2014 г. 7:00