Print Page | Close Window

Wierd BOS Behaviour

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3440
Printed Date: 13-May-2026 at 12:56am


Topic: Wierd BOS Behaviour
Posted By: Vonzkie
Subject: Wierd BOS Behaviour
Date Posted: 16-May-2012 at 3:20am
Hi,

We have a BOS deployed to our IIS and we make use of the IDataSourceKeyResolver for resolving connectionstring.

Everything works pretty good until there comes a time (undetermined time interval) that we can't instantiate an EntityManager well, it returns an error something like 'expecting... gzip... but the service return text/html'.

What we will do is to restart the IIS or sometimes just overwriting the model.dll in the bin and it works again.
Then after some other time, the problem again occurs..

I have checked some of the logs on the Event Viewer and found this (Don't know if this is related):

WebHost failed to process a request.
 Sender Information: System.ServiceModel.Activation.HostedHttpRequestAsyncResult/7531968
 Exception: System.Web.HttpException (0x80004005): The service '/iRely.BusinessObjectServer/emtotyservice.svc' does not exist. ---> System.ServiceModel.EndpointNotFoundException: The service '/iRely.BusinessObjectServer/emtotyservice.svc' does not exist.
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
   at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath)
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()
   at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result)
 Process Name: w3wp
 Process ID: 5548

In the log folder of the BOS, I haven't seen any errors.

Hope you can help us determine and resolve the problem.

Devforce version is: 6.1.4.0

Thanks,
Von



Replies:
Posted By: sbelini
Date Posted: 16-May-2012 at 2:12pm
Hi Von,
 
I'm curious, do you have additional services other than the one created by DevForce?
Your error message shows:
 
The service '/iRely.BusinessObjectServer/emtotyservice.svc' does not exist
 
However, DevForce creates entityservice.svc. (or maybe this is just a typo?)
 
Also, if you browse to entityservice.svc and/or emtotyservice.svc, are they present?
 
Regards,
   Silvio.


Posted By: Vonzkie
Date Posted: 16-May-2012 at 6:57pm
Hi Silvio,

Actually that's the weird part. I don't have a service named emtotyservice.svc and I don't know where that came from..
I'm using the virtual service provided by devforce cause I use the IDataSourceKeyResolver.
Can I asked what possible reasons in the BOS part that there comes an error and we need to restart the IIS to make it work again?

Thanks,
Von


Posted By: sbelini
Date Posted: 17-May-2012 at 1:35pm
Von,
 
I can't tell for sure what could be causing this error.
Have you implemented ServiceProxyEvents? If so, can I see the code.
Also, could you provide your client config files?
 
Silvio.


Posted By: Vonzkie
Date Posted: 17-May-2012 at 5:27pm
Hi Silvio,

No we didn't implement ServiceProxyEvents.

Here's are app.config (Windows Form)

<?xml version="1.0"?>
<configuration>
  <configSections>
    <section name="ideablade.configuration" type="IdeaBlade.Core.Configuration.IdeaBladeSection, IdeaBlade.Core" />
    <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
      <section name="iRely.i21.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
    </sectionGroup>
    <sectionGroup name="gibraltar">
      <section name="listener" type="Gibraltar.Agent.ListenerElement, Gibraltar.Agent" />
      <section name="packager" type="Gibraltar.Agent.PackagerElement, Gibraltar.Agent" />
      <section name="publisher" type="Gibraltar.Agent.PublisherElement, Gibraltar.Agent" />
      <section name="sessionFile" type="Gibraltar.Agent.SessionFileElement, Gibraltar.Agent" />
      <section name="viewer" type="Gibraltar.Agent.ViewerElement, Gibraltar.Agent" />
      <section name="email" type="Gibraltar.Agent.EmailElement, Gibraltar.Agent" />
      <section name="server" type="Gibraltar.Agent.ServerElement, Gibraltar.Agent" />
      <section name="autoSendConsent" type="Gibraltar.Agent.AutoSendConsentElement, Gibraltar.Agent" />
      <section name="networkViewer" type="Gibraltar.Agent.NetworkViewerElement, Gibraltar.Agent" />
      <section name="properties" type="System.Configuration.NameValueSectionHandler" />
    </sectionGroup>
  </configSections>
  <connectionStrings>
    <!--<add name="SalesEntities" connectionString="metadata=res://*/SalesModel.csdl|res://*/SalesModel.ssdl|res://*/SalesModel.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=IVON\SQL2008R2;initial catalog=NorthwindIB;integrated security=True;multipleactiveresultsets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />-->
  </connectionStrings>
  <ideablade.configuration version="6.00" xmlns="http://schemas.ideablade.com/2010/IdeaBladeConfig">
    <logging logFile="DebugLog.xml" port="9922" serviceName="TracePublisher" shouldLogSqlQueries="true" />
    <objectServer remoteBaseURL="http://localHost2" serviceName="iRely.BusinessObjectServer/EntityService.svc">
      <clientSettings isDistributed="true" />
    </objectServer>
    <!-- Additional configuration can be added to override defaults. 
         See the sample config files in the Learning Resources for more information.
    -->
  </ideablade.configuration>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="IdeaBlade.Validation" publicKeyToken="287B5094865421C0" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-6.1.4.0" newVersion="6.1.4.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="IdeaBlade.Core" publicKeyToken="287B5094865421C0" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-6.1.4.0" newVersion="6.1.4.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="DevExpress.Data.v11.1.Linq" publicKeyToken="B88D1754D700E49A" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-11.1.7.0" newVersion="11.1.7.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="DevExpress.Data.v11.1" publicKeyToken="B88D1754D700E49A" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-11.1.7.0" newVersion="11.1.7.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="DevExpress.Printing.v11.1.Core" publicKeyToken="B88D1754D700E49A" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-11.1.7.0" newVersion="11.1.7.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
  </startup>
  <system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="BasicHttpBinding_IConnectionService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
          <security mode="None">
            <transport clientCredentialType="None" proxyCredentialType="None" realm="" />
            <message clientCredentialType="UserName" algorithmSuite="Default" />
          </security>
        </binding>
        <binding name="BasicHttpBinding_ITokenService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
          <security mode="None">
            <transport clientCredentialType="None" proxyCredentialType="None" realm="" />
            <message clientCredentialType="UserName" algorithmSuite="Default" />
          </security>
        </binding>
      </basicHttpBinding>
      <customBinding>
        <binding name="CustomBinding_ILoginService">
          <binaryMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16" maxSessionSize="2048">
            <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
          </binaryMessageEncoding>
          <httpTransport manualAddressing="false" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" allowCookies="false" authenticationScheme="Anonymous" bypassProxyOnLocal="false" decompressionEnabled="true" hostNameComparisonMode="StrongWildcard" keepAliveEnabled="true" maxBufferSize="65536" proxyAuthenticationScheme="Anonymous" realm="" transferMode="Buffered" unsafeConnectionNtlmAuthentication="false" useDefaultWebProxy="true" />
        </binding>
      </customBinding>
    </bindings>
    <client>
      <endpoint address="http://localhost/i21Portal.Web/Service/ConnectionService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IConnectionService" contract="PortalConnectionProxy.IConnectionService" name="BasicHttpBinding_IConnectionService" />
      <endpoint address="http://localhost/i21Portal.Web/Service/TokenService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ITokenService" contract="TokenProxy.ITokenService" name="BasicHttpBinding_ITokenService" />
      <endpoint address="http://localhost/iRely.BusinessObjectServer/Services/SecurityLogin/LoginService.svc" binding="customBinding" bindingConfiguration="CustomBinding_ILoginService" contract="LoginProxy.ILoginService" name="CustomBinding_ILoginService" />
    </client>
  </system.serviceModel>
  <userSettings>
    <iRely.i21.Properties.Settings>
      <setting name="SummitEnabled" serializeAs="String">
        <value>True</value>
      </setting>
      <setting name="SummitRainbowCSPath" serializeAs="String">
        <value>C:\Program Files (x86)\iRely\Rainbow Menu\RainbowCS.txt</value> /&gt;
      </setting>
      <setting name="SummitAcuPath" serializeAs="String">
        <value>C:\Program Files (x86)\iRely\Rainbow Menu\acubin\AcuPath.txt</value> /&gt;
      </setting>
      <setting name="SummitWrunPath" serializeAs="String">
        <value>C:\Program Files (x86)\iRely\Rainbow Menu\acubin\WrunPath.txt</value> /&gt;
      </setting>
      <setting name="SummitUsername" serializeAs="String">
        <value>TEST</value> /&gt;
      </setting>
      <setting name="SummitPassword" serializeAs="String">
        <value>
        </value> /&gt;
      </setting>
      <setting name="SummitCompanyID" serializeAs="String">
        <value>SS</value> /&gt;
      </setting>
    </iRely.i21.Properties.Settings>
  </userSettings>
  <gibraltar>
    <packager allowEmail="False" />
    <server autoSendSessions="True" sendAllApplications="True" purgeSentSessions="True" customerName="iRelyHubServer"  useGibraltarService="true"/>
  </gibraltar>
  <system.diagnostics>
    <trace>
      <listeners>
        <add name="Gibraltar" type="Gibraltar.Agent.LogListener, Gibraltar.Agent" />
      </listeners>
    </trace>
  </system.diagnostics>
</configuration>


then here's the web.config on the BOS:

<?xml version="1.0"?>
<configuration>
  <configSections>
    <section name="ideablade.configuration" type="IdeaBlade.Core.Configuration.IdeaBladeSection, IdeaBlade.Core"/>
    <sectionGroup name="gibraltar">
      <section name="listener" type="Gibraltar.Agent.ListenerElement, Gibraltar.Agent" />
      <section name="packager" type="Gibraltar.Agent.PackagerElement, Gibraltar.Agent" />
      <section name="publisher" type="Gibraltar.Agent.PublisherElement, Gibraltar.Agent" />
      <section name="sessionFile" type="Gibraltar.Agent.SessionFileElement, Gibraltar.Agent" />
      <section name="viewer" type="Gibraltar.Agent.ViewerElement, Gibraltar.Agent" />
      <section name="email" type="Gibraltar.Agent.EmailElement, Gibraltar.Agent" />
      <section name="server" type="Gibraltar.Agent.ServerElement, Gibraltar.Agent" />
      <section name="autoSendConsent" type="Gibraltar.Agent.AutoSendConsentElement, Gibraltar.Agent" />
      <section name="networkViewer" type="Gibraltar.Agent.NetworkViewerElement, Gibraltar.Agent" />
      <section name="properties" type="System.Configuration.NameValueSectionHandler" />
    </sectionGroup>
  </configSections>

  <connectionStrings>
    <!-- Remember to add your connection string(s) here -->
  </connectionStrings>


  <ideablade.configuration version="6.00" xmlns="http://schemas.ideablade.com/2010/IdeaBladeConfig" >

    <logging logFile="log\DebugLog.xml" port="9922" serviceName="TracePublisher"/>

    <!-- Additional configuration can be added to override defaults. 
         See the sample config files in the Learning Resources for more information.
    -->

  </ideablade.configuration>

  <system.serviceModel>

    <!-- Set aspNetCompatibilityEnabled to true to allow use of ASP.NET security features. 
         Set multipleSiteBindingsEnabled to true for Azure or if your web site has multiple http bindings.
    -->
    <behaviors>
      <serviceBehaviors>
        <behavior name="">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="false" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <bindings>
      <basicHttpBinding>
        <binding name="BasicHttpBinding_IPortalConnection" closeTimeout="00:01:00"
          openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
          allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
          maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
          messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
          useDefaultWebProxy="true">
          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
            maxBytesPerRead="4096" maxNameTableCharCount="16384" />
          <security mode="None">
            <transport clientCredentialType="None" proxyCredentialType="None"
              realm="" />
            <message clientCredentialType="UserName" algorithmSuite="Default" />
          </security>
        </binding>
        <binding name="BasicHttpBinding_ITokenService" closeTimeout="00:01:00"
          openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
          allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
          maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
          messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
          useDefaultWebProxy="true">
          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
            maxBytesPerRead="4096" maxNameTableCharCount="16384" />
          <security mode="None">
            <transport clientCredentialType="None" proxyCredentialType="None"
              realm="" />
            <message clientCredentialType="UserName" algorithmSuite="Default" />
          </security>
        </binding>
        <binding name="BasicHttpBinding_IConnectionService" closeTimeout="00:01:00"
          openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
          allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
          maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
          messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
          useDefaultWebProxy="true">
          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
            maxBytesPerRead="4096" maxNameTableCharCount="16384" />
          <security mode="None">
            <transport clientCredentialType="None" proxyCredentialType="None"
              realm="" />
            <message clientCredentialType="UserName" algorithmSuite="Default" />
          </security>
        </binding>
      </basicHttpBinding>
      <customBinding>
        <binding name="iRely.BusinessObjectServer.Services.SecurityLogin.LoginService.customBinding0">
          <binaryMessageEncoding />
          <httpTransport />
        </binding>
      </customBinding>
    </bindings>
    <services>
      <service name="iRely.BusinessObjectServer.Services.SecurityLogin.LoginService">
        <endpoint address="" binding="customBinding" bindingConfiguration="iRely.BusinessObjectServer.Services.SecurityLogin.LoginService.customBinding0"
          contract="iRely.BusinessObjectServer.Services.SecurityLogin.ILoginService" />
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
      </service>
    </services>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true"
      multipleSiteBindingsEnabled="true" />

    <client>
      <endpoint address="http://localhost:61535/Connection/PortalConnection.svc"
        binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IPortalConnection"
        contract="iPortalLogin.IPortalConnection" name="BasicHttpBinding_IPortalConnection" />
      <endpoint address="http://localhost/i21Portal.Web/Service/TokenService.svc"
        binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ITokenService"
        contract="TokenProxy.ITokenService" name="BasicHttpBinding_ITokenService" />
      <endpoint address="http://localhost/i21Portal.Web/Service/ConnectionService.svc"
        binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IConnectionService"
        contract="PortalConnectionProxy.IConnectionService" name="BasicHttpBinding_IConnectionService" />
    </client>

    <!-- You can add Service definitions to override the default configuration. 
         See the sample config files in the Learning Resources for more information.
    -->
  </system.serviceModel>

  <system.web>
    <compilation debug="true" targetFramework="4.0" />
  </system.web>
  <gibraltar>
    <packager allowEmail="False" />
    <server autoSendSessions="True" sendAllApplications="True" purgeSentSessions="True" customerName="iRelyHubServer"  useGibraltarService="true"/>
  </gibraltar>
  <system.diagnostics>
    <trace>
      <listeners>
        <add name="Gibraltar" type="Gibraltar.Agent.LogListener, Gibraltar.Agent" />
      </listeners>
    </trace>
  </system.diagnostics>

</configuration>

Just also want to ask if you have repositories of all known issues in BOS that by restarting the IIS it works again.

Thanks,
Von



Posted By: sbelini
Date Posted: 17-May-2012 at 6:34pm
Von,
 
Regarding your question at the end of the last post, we don't have any report of similar case.
 
DevForce initializes the DefaultServiceName and does not change it afterwards. Something in the client must be happening so that it's referencing emtotyservice.svc.
 
What steps exactly do to take so that this behavior occurs? If you start another client session (i.e. in another browser window) before restarting IIS, is the problem present?
 
A reproducible test case would be the best in this case, so we can further investigate.
 
Regards,
   Silvio.


Posted By: Vonzkie
Date Posted: 17-May-2012 at 10:21pm
Hi,

Actually our application is a Windows Form application.. The weird part here is that, there are times that it's working well, then in some point of time this error will appear..

{"Content Type application/x-gzip was not supported by service http://108.175.8.58/iRely.BusinessObjectServer/EntityService.svc.  The client and service bindings may be mismatched."}

Thanks,
Von


Posted By: sbelini
Date Posted: 18-May-2012 at 12:31pm
Von,
 
1) If it's a WindowsForm app, I'll rephase my question to:
"If you start another client session (i.e. in another client instance) before restarting IIS, is the problem present in this new client as well? Or does it work fine?"
 
2) You mentioned:
"The weird part here is that, there are times that it's working well, then in some point of time this error will appear.."
and in this regard I would like to know what steps exactly you take so that this behavior occurs?
 
Like mentioned previously, we will need a reproducible test case in order to further investigate.
 
Regards,
  Silvio.


Posted By: Vonzkie
Date Posted: 21-May-2012 at 2:08am
Hi,

1. Yes actually in all clients that will connect, when it works, it works for all, when it fail, it fail for all without knowing why..
2. Unfortunately there are no definite steps to follow..

But I noticed something that might help, in the event viewer, i have something like this:

A worker process with process id of '6896' serving application pool 'ASP.NET V4.0 Integrated' was shutdown due to inactivity.  Application Pool timeout configuration was set to 20 minutes.  A new worker process will be started when needed.

I restarted the pool only and it works.. I tried to extend the time out config to 30 minutes but still the weird error occurs.

Thanks,
Von




Posted By: sbelini
Date Posted: 21-May-2012 at 12:52pm
Von,
 
Please attach your DatasourceKeyResolver, Client and Server debugLogs.
 
Silvio.


Posted By: Vonzkie
Date Posted: 28-May-2012 at 1:59am
Hi,

Is this kind of datasourcekey may cause a problem? 

www.i21server.com$i21portal.web_47_12

I'll send client and server logs when the error will occur again because it is intermittent..

Thanks,
Von


Posted By: Vonzkie
Date Posted: 29-May-2012 at 2:57am
Hi,

http://www.ideablade.com/forum/uploads/1228/ToBeSentToDevforce.rar - uploads/1228/ToBeSentToDevforce.rar
Here's the link of the server and client logs along with their config files..

Thanks,
Von


Posted By: sbelini
Date Posted: 29-May-2012 at 2:15pm
Hi Von,
 
We could see in your server log that the EntityService is not being properly initialized as there is not endpoint (from the log: 2012-05-29 10:09:44  IdeaBlade.EntityModel.Server.EntityServiceHostFactory:CreateServiceHost Error: No endpoint addresses found for EntityService)
 
We are still unsure about what could be causing it.
What is the base address of your web app?
In your deployment, is there anything out of the ordinary that you think might be a cause of this issue?
 
Also, you mention that this occurs intermittently. So could you send us your debug log of when everything is working well, so we can cross compare and maybe find what is going wrong?
 
Regards,
   Silvio.


Posted By: Vonzkie
Date Posted: 31-May-2012 at 9:08pm
Hi,

Here's the server log of the one that is working and the one that is not.

uploads/1228/ForDev.rar - uploads/1228/ForDev.rar

What I noticed is that when we try to open our application that is accessing Devforce and try to close the application and wait for about more or less 20 mins (idle) then try to open again, we we're now unable to instantiate our EntityManager.
I don't know what is the problem here and we really need to know why this is happening. 
After restarting IIS or just simply overwritting the model files in the bin folder by the same file the application will again work.

Note: You will see on the log file of the one that's working at the bottom that the EntityServer is shutdown and we're unable to connect to it.

This is very weird and we really need assistance here.

Let me know if when is the best time for you guys to help troubleshoot our server.


Thanks,
Von


Posted By: Vonzkie
Date Posted: 01-Jun-2012 at 12:25am
Another thing that might help is my code in Global.asax, our code is:

<script language="C#" runat="server">
    /// <summary>
    /// Perform application start activities.  
    /// </summary>
    protected void Application_Start(Object sender, EventArgs e) {

        IdeaBlade.Core.Composition.CompositionHost.SearchPatterns.Clear();
        IdeaBlade.Core.Composition.CompositionHost.SearchPatterns.Add("iRely.Model.dll");
        IdeaBlade.Core.Composition.CompositionHost.SearchPatterns.Add("iRely.ConnectionManager.dll");
        IdeaBlade.Core.Composition.CompositionHost.SearchPatterns.Add("*.Model.dll");
        IdeaBlade.Core.Composition.CompositionHost.SearchPatterns.Add("*.BRL.dll");

       

        // To enable remote viewing of trace messages via the TraceViewer:
        // TODO:  Uncomment following line if you want to provide this feature.  
        //IdeaBlade.Core.TracePublisher.LocalInstance.MakeRemotable();
        
        // If you don't want to create a .svc file for every EntityServer service, you
        // can instead register a "virtual path provider".       
        // You do not need to supply .svc files for the EntityService and EntityServer services
        // when the provider is registered.     
        var service = new IdeaBlade.EntityModel.Web.ServiceVirtualPathProvider();
        service.InitializeLifetimeService();
        
        System.Web.Hosting.HostingEnvironment.RegisterVirtualPathProvider(service);
    }
</script>


This is the default code given by devforce:

<script language="C#" runat="server">
    /// <summary>
    /// Perform application start activities.  
    /// </summary>
    protected void Application_Start(Object sender, EventArgs e) {
        // To enable remote viewing of trace messages via the TraceViewer:
        // TODO:  Uncomment following line if you want to provide this feature.  
        //IdeaBlade.Core.TracePublisher.LocalInstance.MakeRemotable();
        
        // If you don't want to create a .svc file for every EntityServer service, you
        // can instead register a "virtual path provider".       
        // You do not need to supply .svc files for the EntityService and EntityServer services
        // when the provider is registered.     
        System.Web.Hosting.HostingEnvironment.RegisterVirtualPathProvider(new IdeaBlade.EntityModel.Web.ServiceVirtualPathProvider());
    }
</script>

Noticed the Service part


Posted By: sbelini
Date Posted: 01-Jun-2012 at 4:24pm
Von,
 
1) I am confused. By comparing the server logs (non-working: provided on May-29-2012 at 2:57am; and working: provided on May-31-2012 at 9:08pm) I noticed that the app path is not the same:
The non-working log points to
D:\TFS\70_VisionCore\iRely Suite\Global Components\iRely.BusinessObjectServer
 
while the working log points to
C:\inetpub\wwwroot\iRely.BusinessObjectServer
 
Can you clarify?
 
2) Also, we noticed that in the non-working log probing is oddly happening twice:
 
===========================================================================
2012-05-29 10:09:42  IdeaBlade.Core.Composition.PartsCatalog:LoadCatalog MEF assembly probing started: 5/29/2012 10:09:42 AM. If this takes a long time, use IdeaBlade.Core.Composition.CompositionHost to specify/restrict which assemblies to probe.
2012-05-29 10:09:42  IdeaBlade.EntityModel.Server.EntityServiceHost:AddBehaviors Using DC serializer for EntityService
2012-05-29 10:09:42  IdeaBlade.Core.Composition.PartsCatalog:LoadCatalog Error loading assembly 'D:\TFS\70_VisionCore\iRely Suite\Global Components\iRely.BusinessObjectServer\bin\ActiveDatabaseSoftware.ActiveQueryBuilder.dll' for PartsCatalog: Could not load type 'Deflate.Attributes.TargetFrameworkAttribute' from assembly 'ActiveDatabaseSoftware.ActiveQueryBuilder, Version=1.16.1.342, Culture=neutral, PublicKeyToken=3cbcbcc9bf57ecde'.
2012-05-29 10:09:42  IdeaBlade.Core.Composition.PartsCatalog:LoadCatalog Error loading assembly 'D:\TFS\70_VisionCore\iRely Suite\Global Components\iRely.BusinessObjectServer\bin\ActiveDatabaseSoftware.ExpressionEditor.dll' for PartsCatalog: Could not load type 'Deflate.Attributes.TargetFrameworkAttribute' from assembly 'ActiveDatabaseSoftware.ExpressionEditor, Version=1.16.1.342, Culture=neutral, PublicKeyToken=3cbcbcc9bf57ecde'.
2012-05-29 10:09:42  IdeaBlade.Core.Composition.PartsCatalog:LoadCatalog Error loading assembly 'D:\TFS\70_VisionCore\iRely Suite\Global Components\iRely.BusinessObjectServer\bin\ActiveDatabaseSoftware.MSSQLMetadataProvider.dll' for PartsCatalog: Could not load type 'Deflate.Attributes.TargetFrameworkAttribute' from assembly 'ActiveDatabaseSoftware.MSSQLMetadataProvider, Version=1.16.1.342, Culture=neutral, PublicKeyToken=3cbcbcc9bf57ecde'.
2012-05-29 10:09:43  IdeaBlade.Core.Composition.PartsCatalog:LoadCatalog Assembly 'iRely.ConnectionManager, Version=11.0.0.0, Culture=neutral, PublicKeyToken=null' added to PartsCatalog
2012-05-29 10:09:43  IdeaBlade.Core.Composition.PartsCatalog:LoadCatalog Assembly 'iRely.i21Manager.BRL, Version=11.0.0.0, Culture=neutral, PublicKeyToken=null' added to PartsCatalog
2012-05-29 10:09:43  IdeaBlade.Core.Composition.PartsCatalog:LoadCatalog Assembly 'iRely.Petrolac.TankManagement.BRL, Version=11.0.0.0, Culture=neutral, PublicKeyToken=null' added to PartsCatalog
2012-05-29 10:09:43  IdeaBlade.Core.Composition.PartsCatalog:LoadCatalog MEF assembly probing completed: 5/29/2012 10:09:43 AM
===========================================================================
 
and
 
===========================================================================
2012-05-29 10:09:43  IdeaBlade.Core.Composition.PartsCatalog:LoadCatalog MEF assembly probing started: 5/29/2012 10:09:43 AM. If this takes a long time, use IdeaBlade.Core.Composition.CompositionHost to specify/restrict which assemblies to probe.
2012-05-29 10:09:44  IdeaBlade.Core.Composition.PartsCatalog:LoadCatalog Error loading assembly 'D:\TFS\70_VisionCore\iRely Suite\Global Components\iRely.BusinessObjectServer\bin\ActiveDatabaseSoftware.ActiveQueryBuilder.dll' for PartsCatalog: Could not load type 'Deflate.Attributes.TargetFrameworkAttribute' from assembly 'ActiveDatabaseSoftware.ActiveQueryBuilder, Version=1.16.1.342, Culture=neutral, PublicKeyToken=3cbcbcc9bf57ecde'.
2012-05-29 10:09:44  IdeaBlade.Core.Composition.PartsCatalog:LoadCatalog Error loading assembly 'D:\TFS\70_VisionCore\iRely Suite\Global Components\iRely.BusinessObjectServer\bin\ActiveDatabaseSoftware.ExpressionEditor.dll' for PartsCatalog: Could not load type 'Deflate.Attributes.TargetFrameworkAttribute' from assembly 'ActiveDatabaseSoftware.ExpressionEditor, Version=1.16.1.342, Culture=neutral, PublicKeyToken=3cbcbcc9bf57ecde'.
2012-05-29 10:09:44  IdeaBlade.Core.Composition.PartsCatalog:LoadCatalog Error loading assembly 'D:\TFS\70_VisionCore\iRely Suite\Global Components\iRely.BusinessObjectServer\bin\ActiveDatabaseSoftware.MSSQLMetadataProvider.dll' for PartsCatalog: Could not load type 'Deflate.Attributes.TargetFrameworkAttribute' from assembly 'ActiveDatabaseSoftware.MSSQLMetadataProvider, Version=1.16.1.342, Culture=neutral, PublicKeyToken=3cbcbcc9bf57ecde'.
2012-05-29 10:09:44  IdeaBlade.Core.Composition.PartsCatalog:LoadCatalog Assembly 'iRely.ConnectionManager, Version=11.0.0.0, Culture=neutral, PublicKeyToken=null' added to PartsCatalog
2012-05-29 10:09:44  IdeaBlade.Core.Composition.PartsCatalog:LoadCatalog Assembly 'iRely.i21Manager.BRL, Version=11.0.0.0, Culture=neutral, PublicKeyToken=null' added to PartsCatalog
2012-05-29 10:09:44  IdeaBlade.Core.Composition.PartsCatalog:LoadCatalog Assembly 'iRely.Petrolac.TankManagement.BRL, Version=11.0.0.0, Culture=neutral, PublicKeyToken=null' added to PartsCatalog
2012-05-29 10:09:44  IdeaBlade.Core.Composition.PartsCatalog:LoadCatalog MEF assembly probing completed: 5/29/2012 10:09:44 AM

===========================================================================
 
while it only happens once in the working log:
 
===========================================================================
2012-05-31 21:51:28  IdeaBlade.Core.Composition.PartsCatalog:LoadCatalog MEF assembly probing started: 5/31/2012 9:51:28 PM. If this takes a long time, use IdeaBlade.Core.Composition.CompositionHost to specify/restrict which assemblies to probe.
2012-05-31 21:51:28  IdeaBlade.Core.Composition.PartsCatalog:LoadCatalog Assembly 'iRely.ConnectionManager, Version=11.0.0.0, Culture=neutral, PublicKeyToken=null' added to PartsCatalog
2012-05-31 21:51:28  IdeaBlade.Core.Composition.PartsCatalog:LoadCatalog Assembly 'iRely.i21Manager.BRL, Version=11.0.0.0, Culture=neutral, PublicKeyToken=null' added to PartsCatalog
2012-05-31 21:51:28  IdeaBlade.Core.Composition.PartsCatalog:LoadCatalog MEF assembly probing completed: 5/31/2012 9:51:28 PM
===========================================================================
 
3) Can we take a look at your ServiceHostEvents? Also, note that it is only present in the working log.
 
4) We also noticed that in the non-working log EntityService doesn't start properly as there is no endpoint:
2012-05-29 10:09:44  IdeaBlade.EntityModel.Server.EntityServiceHostFactory:CreateServiceHost Error: No endpoint addresses found for EntityService
So I'm wondering how it worked in the first place. What operations were you able to perform before it stopped working?
 
5) Does any of your other services try to use DevForce? This is just a guess, but maybe this might shed some light on why the different initialization paths as in both debug logs.
 
Silvio.


Posted By: Vonzkie
Date Posted: 03-Jun-2012 at 9:37pm
Hi Silvio,

1. Perhaps I have given the wrong log file here.. (try to send again later) :(
2. On what instance does that happened?
3. There are no special codes on our ServiceHostEvents.. Just calling the base.Something here...
4. This is actually weird.
5. Yes, we have a service that is using Devforce.

Thanks,
Von


Posted By: sbelini
Date Posted: 04-Jun-2012 at 12:13pm
Von,
 
We have done a fair amount of research/investigation on your issue and could not repro nor find out what could be causing it.
We have never seen the issue where the endpoint fails to be created and believe that most likely DevForce is not at fault.
 
In order to help any further we will need a reproducible test case so we can verify if this is indeed a DevForce issue or not.
 
Also, if you want us to debug your application to find out what's causing the issue, I can introduce you to our Professional Services team and they will work with you in this regard.
 
Silvio.
 
 


Posted By: Vonzkie
Date Posted: 05-Jun-2012 at 7:00pm
Hi,

We already fixed the issue. :)
I take note of your number 5 question whether we're using Devforce in our WCF service and yes we are, we removed it by using the Devforce in the client side instead of a service that is also using Devforce.
Actually the primary purpose supposedly by our approach is to increase performance by eliminating the client side initialization (probing) of the EntityManager w/c has a delay because of the huge content of the Model.
My question would be, why is there a problem when a service is also using Devforce?

THanks,
Von


Posted By: sbelini
Date Posted: 06-Jun-2012 at 12:14pm
Hi Von,
 
A service using DevForce shouldn't raise a problem.
Most likely, something in code is causing the adverse effect.
Once again, our Professional Services team would be able to assist you in accomplishing your goal.
 
Regards,
   Silvio.


Posted By: zbynek
Date Posted: 22-Jan-2013 at 1:34pm
Hi,
I have the similar troubles. Can you tell me the solution?
Thanks for your help.

Best regards 
Zbyněk Šulc

WebHost failed to process a request.

Sender Information: System.ServiceModel.Activation.HostedHttpRequestAsyncResult/18207770

Exception: System.Web.HttpException (0x80004005): The service '/service.svc' does not exist. ---> System.ServiceModel.EndpointNotFoundException: The service '/service.svc' does not exist.

   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)

   at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath)

   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()

   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()

   at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)

   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result)

Process Name: w3wp

Process ID: 4968



Posted By: sbelini
Date Posted: 22-Jan-2013 at 2:17pm
Zbynek,

In the error message you provided, like in the original, the error occurring seems to be happening in a service other than DevForce's. (i.e. service.svc)

In your app is there any other services trying to use DevForce? This ended up being what was causing the issue for Vonzkie. (as stated above)

If that's not the case, then we could try to take a look at the Client and Server debugLogs, and client config files in order to try to poinpoint the issue.

However, bear in mind that if the these files resemble the ones provided in the original post, then a reproducible test case will be necessary.

sbelini.


Posted By: zbynek
Date Posted: 23-Jan-2013 at 12:32am
The preview Exception message is from Event Log.
Next one exception message is in Application Event Log:

WebHost failed to process a request.
 Sender Information: System.ServiceModel.Activation.HostedHttpRequestAsyncResult/28796587
 Exception: System.Web.HttpException (0x80004005): There was no channel actively listening at 'https://rd00155d3615a9/EntityService.svc/sl'. This is often caused by an incorrect address URI. Ensure that the address to which the message is sent matches an address on which a service is listening. ---> System.ServiceModel.EndpointNotFoundException: There was no channel actively listening at 'https://rd00155d3615a9/EntityService.svc/sl'. This is often caused by an incorrect address URI. Ensure that the address to which the message is sent matches an address on which a service is listening.
   at System.ServiceModel.Activation.HostedHttpTransportManager.HttpContextReceived(HostedHttpRequestAsyncResult result)
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()
   at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result)
 Process Name: w3wp
 Process ID: 4968

I do not know where it takes https://rd00155d3615a9/EntityService.svc/sl

In our application we get this Error Message:

Chyba


Zbyněk


Posted By: sbelini
Date Posted: 24-Jan-2013 at 3:04pm
Zbynek,

The error message you now provided is different than in your previous post.

You will find useful information about troubleshooting IIS issues at http://drc.ideablade.com/devforce-2012/bin/view/Documentation/troubleshooting-iis.

sbelini.



Print Page | Close Window