jeudi 23 juillet 2015

MVC3 dll mismatch 500- internal server error

Please help! I had deployed a MVC3 application to our Dev server and it was working fine with system.web.Mvc version=3.0.0.0. Next, I deployed a higher version of MVC3 System.Web.Mvc, Version=3.0.0.1 and got that to work as well with 1) bindingredirect tag 2) using the 3.0.0.1 version dll in bin and bin_deployableAssemblies folder I accidentally deleted the deployed folder of the whole application, and now I cannot get anything to work, new or old version. All I see is 500-internal server error. I even tried to get past this error by using settings to see detailed message but nothing works. Please help! I have attached a snippet of my web.config file.

<?xml version="1.0"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://ift.tt/18KuGN2
  -->
<configuration>
  <configSections>
    <section name="BatchItemsFieldCounts" type="System.Configuration.NameValueSectionHandler, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
    <section name="BatchFileColumnNames" type="System.Configuration.NameValueSectionHandler, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
    <section name="BatchFileSheetNamesByBatchTypeFromDb" type="System.Configuration.NameValueSectionHandler, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
    <sectionGroup name="elmah">
      <section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah"/>
      <section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah"/>
      <section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah"/>
      <section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah"/>
    </sectionGroup>
  </configSections>
  <BatchItemsFieldCounts>
    <add key="LEPBatch" value="15"/>
    <add key="LEPPaymentBatch" value="31"/>
  </BatchItemsFieldCounts>
  <BatchFileColumnNames>
        <add key="LEPBatch" value="BatchItemId,RecordType,MCOContractNumber,PBPNumber,PlanSegmentNumber,HICNumber,Surname,FirstInitial,Gender,DOB,EligibilityEffectiveDate,EligibilityTermDate,NoOfMonthsInPeriod,NoOfUncoveredMonths,LEPAmount"/>
    <add key="LEPPaymentBatch" value="BatchItemId,BusinessUnit,OperatingUnit,Product,BankAccount,State,MbrId,MbrLName,MbrFName,HICN,PaymentType,ItemNumber,CheckNumber2,TotalAmount2,TransactionNumber,Status,Note,TotalAmount,BatchDate,LockBatchId,LockboxId,Amount,CheckPayorNameUnkn,CheckSN,Site,Account2,AddressLine1,Account,CheckDate,CheckPayorName,CustomerNumber,InvoiceAmount,InvoiceNumber,InvoiceTotal,Sequence,TransactionType,NumberOfItems"/>
  </BatchFileColumnNames>
  <BatchFileSheetNamesByBatchTypeFromDb>
    <add key="InsertPayment" value="[Combined$]"/>
  </BatchFileSheetNamesByBatchTypeFromDb>
  <appSettings>
    <add key="webpages:Version" value="1.0.0.0"/>
    <add key="ClientValidationEnabled" value="true"/>
    <add key="UnobtrusiveJavaScriptEnabled" value="true"/>
    <add key="autoFormsAuthentication" value="false"/>
    <add key="CopayBillingProductId" value="1"/>
    
    <add key="enableSimpleMembership" value="false"/>
    <add key="sqlCommandTimeout" value="1200"/>
    <add key="LogFilePath" value="D:\inetpub\wwwroot\LEPBilling\Uploads"/>
    <add key="UploadsFolder" value="\\agpcorp\files\VA1\Private\ITS-TechServices\AMS\CorpSvcs\Finance\NY\NY Reconciliation\LEPBilling\DEV"/>
    <add key="ReportsUrl" value="http://vadrsf01/Reports/Pages/Folder.aspx?ItemPath=%2fDevelopment%2fManaged%2fFinance%2fPrivate%2fLEP+Billing"/>
    <add key="InvoiceUrl"
      value="http://vadrsf01/ReportServer/Pages/ReportViewer.aspx?%2fDevelopment%2fManaged%2fFinance%2fPrivate%2fLEP+Billing%2fRep_InvoiceDetails"/>
  </appSettings>
  <connectionStrings>
    <add name="LEPBillingEF" providerName="System.Data.SqlClient"
      connectionString="Server=XXX;Database=XXX;user id=xxx;password=xxx;connect timeout=600;"/>
    <add name="MemberLookup" providerName="System.Data.SqlClient"
      connectionString="Server=xxx;Database=xxx;user id=xxx;password=xxx;connect timeout=600;"/>
  </connectionStrings>
  <system.web>
    <compilation debug="true" targetFramework="4.0">
      <assemblies>
        <add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="System.Web.Mvc, Version=3.0.0.1, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
      </assemblies>
    </compilation>
    <authentication mode="Windows"/>
    <authorization>
      <allow users="?"/>
    </authorization>
    <pages>
      <namespaces>
        <add namespace="System.Web.Helpers"/>
        <add namespace="System.Web.Mvc"/>
        <add namespace="System.Web.Mvc.Ajax"/>
        <add namespace="System.Web.Mvc.Html"/>
        <add namespace="System.Web.Routing"/>
        <add namespace="System.Web.WebPages"/>
      </namespaces>
    </pages>
    <customErrors mode="Off"/>
    <httpModules>
      <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah"/>
      <add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah"/>
      <add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah"/>
    </httpModules>
  </system.web>
  <system.webServer>
    <httpErrors errorMode="Detailed"/>
    <asp scriptErrorSentToBrowser="true"/>
    <modules runAllManagedModulesForAllRequests="true">
      <remove name="UrlRoutingModule"/>
      <add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
      <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler"/>
      <add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler"/>
      <add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler"/>
    </modules>
    <security>
      <authentication/>
    </security>
    <validation validateIntegratedModeConfiguration="false"/>
    <handlers>
      <add name="UrlRoutingHandler" preCondition="integratedMode" verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web,      Version=2.0.0.0, Culture=neutral,      PublicKeyToken=b03f5f7f11d50a3a"/>
    </handlers>
  </system.webServer>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
        <bindingRedirect oldVersion="1.0.0.0-3.0.0.1" newVersion="3.0.0.1"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System" publicKeyToken="b77a5c561934e089" culture="neutral"/>
        <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Core" publicKeyToken="b77a5c561934e089" culture="neutral"/>
        <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Data" publicKeyToken="b77a5c561934e089" culture="neutral"/>
        <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
        <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Xml" publicKeyToken="b77a5c561934e089" culture="neutral"/>
        <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Configuration" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
        <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Drawing" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
        <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Services" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
        <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0"/>
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
  <elmah>
    <!--
    See http://ift.tt/1oeE5D2 for 
    more information on remote access and securing ELMAH.
  -->
    <security allowRemoteAccess="true"/>
  </elmah>
  <location path="elmah.axd" >
    <system.web>
      <httpHandlers>
        <add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah"/>
      </httpHandlers>
    </system.web>
    <system.webServer>
      <handlers>
        <add name="ELMAH" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode"/>
      </handlers>
    </system.webServer>
  </location>
</configuration>

Aucun commentaire:

Enregistrer un commentaire