5 Replies Latest reply: Jun 12, 2013 11:28 AM by gdarling - oracle RSS

    Unable to deploy ASP.net website on IIS6 with .net 4

    991464

      The specified store provider cannot be found in the configuration, or is not valid.

      Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

      Exception Details: System.ServiceModel.FaultException: The specified store provider cannot be found in the configuration, or is not valid.

      Source Error:

       

      An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


      Stack Trace:

       

      [FaultException: The specified store provider cannot be found in the configuration, or is not valid.]  System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +9464367  System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +345  trgtech.pepsi.PepsiServiceControl.IPepsiService.ListNewsToShowOnTop(PagingClass pPagingClass) +0  trgtech.pepsi.PepsiServiceControl.PepsiServiceClient.ListNewsToShowOnTop(PagingClass pPagingClass) +54  trgtech.pepsi.Utility.ServiceController.ListNewsOnTop(PagingClass pPaging) +107  trgtech.pepsi.index.GetTopNews() +163  trgtech.pepsi.index.Page_Load(Object sender, EventArgs e) +142  System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14  System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35  System.Web.UI.Control.OnLoad(EventArgs e) +91  System.Web.UI.Control.LoadRecursive() +74  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207  


       


        Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

        • 1. Re: Unable to deploy ASP.net website on IIS6 with .net 4
          gdarling - oracle

          Are 11203 ODP.NET and Oracle Providers for ASP.NET installed on the deployment target?  What type of Oracle client install did you do?

           

          Based on the error, the .NET framework can't find something in your machine.config, and those should be set up when you install the products.

           

          Hope it helps,

          Greg

          • 2. Re: Unable to deploy ASP.net website on IIS6 with .net 4
            991464


            Actually I am deploying ASP.NET file please see the web.config file located in virtual directory in E: Drive.

            And suggest us when should we install for this?

            I have installed database 11g (11.2.0.1.0) and ODAC 11g (11.2.0.1.2) client.

             

            web.config

            ----------------

            <?xml version="1.0"?>
            <configuration>
            <connectionStrings>
               <add name="OracleConnect" connectionString="metadata=res://*/PepsiModel.csdl|res://*/PepsiModel.ssdl|res://*/PepsiModel.msl;provider=Oracle.DataAccess.Client;provider connection string=&quot;DATA SOURCE=RBLWEB;PASSWORD=rblweb;USER ID=RBLCMSAPPUSER&quot;" providerName="System.Data.EntityClient" />
            </connectionStrings>
              <appSettings>
                <add key="EnableEncryption" value="0"/>
                <add key="Phrase" value="TRGISKYRIMS" />
                <add key="MaximumRequests" value="1"/>
                <add key="LogTo" value="1" />
                <add key="FileName" value="PepsiService" />
                <add key="FilePath" value="E:\PepsiService\Logs\" />

                <!-- Email Settings -->
                <add key="fromEmailAddress" value="jobs@pepsi-lahore.com.pk"/>
                <add key="SmtpServer" value="mail.pepsi-lahore.com.pk"/>
               
                <add key="EmailSubject" value="Automated Email -- Resume uploaded"/>
                <add key="ContactSubject" value="Automated Email -- Contact Us"/>

                <add key="EmailLogo" value="E:\PepsiRBL\PepsiService\emailTemplate\email_header.jpg" />
               
                <add key="EmailTo_HR" value="jobs@pepsi-lahore.com.pk"/>
                <add key="EmailTemplate_HR" value="E:\PepsiRBL\PepsiService\emailTemplate\Apply-Online.htm"/>
                <add key="EmailTemplate_Upload" value="E:\PepsiRBL\PepsiService\emailTemplate\emailTemplate.htm"/>
               
                <add key="EmailTo_Promotion" value="jobs@pepsi-lahore.com.pk"/>
                <add key="EmailTemplate_Promotion" value="E:\PepsiRBL\PepsiService\emailTemplate\Contact-Email.htm"/>
               
                <add key="EmailTo_HQ" value="jobs@pepsi-lahore.com.pk"/>
                <add key="EmailTemplate_HQ" value="E:\PepsiRBL\PepsiService\emailTemplate\Contact-Email.htm"/>
               
                <add key="EmailTo_Sales" value="jobs@pepsi-lahore.com.pk"/>
                <add key="EmailTemplate_Sales" value="E:\PepsiRBL\PepsiService\emailTemplate\Contact-Email.htm"/>
               
                <add key="EmailTo_Delivery" value="jobs@pepsi-lahore.com.pk"/>
                <add key="EmailTemplate_Delivery" value="E:\PepsiRBL\PepsiService\emailTemplate\Contact-Email.htm"/>
              </appSettings>

              <system.diagnostics>
                <switches>
                  <add name="EnableTracing" value="1" />
                </switches>
                <trace>
                  <listeners>
                    <add name="ServMsg" />
                  </listeners>
                </trace>
                <sources>
                  <source name="System.ServiceModel.MessageLogging">
                    <listeners>
                      <add name="ServMsg" />
                    </listeners>
                  </source>
                </sources>
                <sharedListeners>
                  <add name="ServMsg" type="trgtechFramework.LogModel.Tracing, trgtechFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null" />
                </sharedListeners>
              </system.diagnostics>
             
              <system.web>
                <compilation debug="true" targetFramework="4.0" />
              </system.web>
              <system.serviceModel>

                <bindings>
                  <netTcpBinding>
                    <binding name="NetTcpBinding_IPepsiService" closeTimeout="00:01:00"
                                openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
                                transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions"
                                hostNameComparisonMode="StrongWildcard" listenBacklog="10"
                                maxBufferPoolSize="524288" maxBufferSize="65536" maxConnections="10"
                                maxReceivedMessageSize="65536">
                      <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                          maxBytesPerRead="4096" maxNameTableCharCount="16384" />
                      <reliableSession ordered="true" inactivityTimeout="00:10:00"
                          enabled="false" />
                      <security mode="None">
                        <transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
                        <message clientCredentialType="Windows" />
                      </security>
                    </binding>
                  </netTcpBinding>
                  <wsHttpBinding>
                    <binding name="WSHttpBinding_IPepsiService" closeTimeout="00:01:00"
                 openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:05:00"
                 bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
                 maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text"
                 textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
                      <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                  maxBytesPerRead="4096" maxNameTableCharCount="16384" />
                      <reliableSession ordered="true" inactivityTimeout="00:10:00"
                  enabled="false" />
                      <security mode="None">
                        <transport clientCredentialType="Windows" proxyCredentialType="None"
                   realm="" />
                        <message clientCredentialType="Windows" negotiateServiceCredential="true"
                   establishSecurityContext="true" />
                      </security>
                    </binding>
                  </wsHttpBinding>
                </bindings>
                <services>
                  <!-- Comment this section if using NetTCP protocol and uncomment the section below -->
                  <service behaviorConfiguration="PepsiServiceBehavior" name="trgtech.pepsi.service.PepsiService">
                    <endpoint address="" bindingConfiguration="WSHttpBinding_IPepsiService" binding="wsHttpBinding" contract="trgtech.pepsi.service.IPepsiSecurity" />
                    <endpoint address="" bindingConfiguration="WSHttpBinding_IPepsiService" binding="wsHttpBinding" contract="trgtech.pepsi.service.IPepsiService" />
                    <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
                  </service>
                 
                  <!-- Uncomment this section if using NetTCP protocol and comment the section above -->
                  <!-- <service name="trgtech.pepsi.service.PepsiService" behaviorConfiguration="PepsiServiceBehavior">
                     <host>
                       <baseAddresses>
                         <add baseAddress="net.tcp://localhost:8001/PepsiService"/>
                       </baseAddresses>
                     </host>
                    <endpoint binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IPepsiService" contract="trgtech.pepsi.service.IPepsiSecurity"/>
                   <<endpoint binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IPepsiService" contract="trgtech.pepsi.service.IPepsiService"/>
                   <endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange"/>
                  </service>-->
                </services>
                <behaviors>
                  <serviceBehaviors>
                    <behavior name="PepsiServiceBehavior">
                      <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
                      <serviceMetadata httpGetEnabled="true"/>
                      <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
                      <serviceDebug includeExceptionDetailInFaults="true"/>
                    </behavior>
                  </serviceBehaviors>
                </behaviors>
                <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
              </system.serviceModel>
            <system.webServer>
                <modules runAllManagedModulesForAllRequests="true"/>
              </system.webServer>

            </configuration>

            • 3. Re: Unable to deploy ASP.net website on IIS6 with .net 4
              gdarling - oracle

              Your machine.config should already have the following sort of entries in it if you've installed the Oracle Providers for ASP.NET (your Version number will be different):

               

              [code]

              <membership>

              <providers>

              <add name="OracleMembershipProvider" type="Oracle.Web.Security.OracleMembershipProvider, Oracle.Web, Version=4.112.3.0, Culture=neutral, PublicKeyToken=89b483f429c47342" connectionStringName="OraAspNetConString" applicationName="" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression="" />
              ...
              </providers>
              </membership>
              <profile>
              <providers>
              <add name="OracleProfileProvider" type="Oracle.Web.Profile.OracleProfileProvider, Oracle.Web, Version=4.112.3.0, Culture=neutral, PublicKeyToken=89b483f429c47342" connectionStringName="OraAspNetConString" applicationName="" />
              ...
              </providers>

              </profile>

              ...etc...

              [/code]

               

              If not, you can add them via your web.config, but if they're not in your machine.config it makes me wonder if you have Oracle Providers for ASP.NET installed.

               

              Greg

               

              Message was edited by: gdarling Just to clarify, is the app running as 32 bit or 64 bit?  If you've installed 32 bit client but are running the app as 64 bit, that may be the problem.  Make sure you check the appropriate machine.config for your .NET version and bit-ness to see if the entries exist.

              • 4. Re: Unable to deploy ASP.net website on IIS6 with .net 4
                991464

                I have Installed ODAC  and machine.config file having suggected entried and I also set suggected entries in web.config.

                Now getting following error when browsing the site in IIS 6.

                ============================================================================

                Server Error in '/' Application. 


                 

                The store provider factory type 'Oracle.DataAccess.Client.OracleClientFactory' does not implement the IServiceProvider interface. Use a store provider that implements this interface.

                Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

                Exception Details: System.ServiceModel.FaultException: The store provider factory type 'Oracle.DataAccess.Client.OracleClientFactory' does not implement the IServiceProvider interface. Use a store provider that implements this interface.

                Source Error:

                 

                An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


                Stack Trace:

                 

                [FaultException: The store provider factory type 'Oracle.DataAccess.Client.OracleClientFactory' does not implement the IServiceProvider interface. Use a store provider that implements this interface.]  System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +9464367  System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +345  trgtech.pepsi.PepsiServiceControl.IPepsiService.ListNewsToShowOnTop(PagingClass pPagingClass) +0  trgtech.pepsi.PepsiServiceControl.PepsiServiceClient.ListNewsToShowOnTop(PagingClass pPagingClass) +54  trgtech.pepsi.Utility.ServiceController.ListNewsOnTop(PagingClass pPaging) +107  trgtech.pepsi.index.GetTopNews() +163  trgtech.pepsi.index.Page_Load(Object sender, EventArgs e) +135  System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14  System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35  System.Web.UI.Control.OnLoad(EventArgs e) +91  System.Web.UI.Control.LoadRecursive() +74  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207  


                 


                  Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

                • 5. Re: Unable to deploy ASP.net website on IIS6 with .net 4
                  gdarling - oracle

                  What version of ODAC did you install?

                   

                  That error is explained in the following note on MOS:


                  ODP.NET: System.Data.ProviderIncompatibleException: The store provider factory type 'Oracle.DataAccess.Client.OracleClientFactory' does not implement the IServiceProvider interface [ID 1476540.1]

                  This error will occur when trying to use Entity Framework with an ODP.NET version prior to 11.2.0.3.

                  Support for Entity Framework starts with ODP.NET version 11.2.0.3., and prior versions did not implement the IServiceProvider interface

                   

                  Hope it helps,

                  Greg