After the publication does not work.

11 posts, 0 answers
  1. Sergio
    Sergio avatar
    19 posts
    Member since:
    Jul 2012

    Posted 26 Mar 2014 Link to this post

    I solve my problem mentioned in this post. Telerik forum: Ria Services not publications
    I have some questions .
    1. How to see the complete information about the exception , if I do everything as specified in this article Telerik Documentation: Data Access Documentation - Walkthrough: Creating a RIA Services Solution
    . According to your advice , I shall assign <customErrors mode="Off"/>, but how can I see the error when I use silverlight, where I can see the error ? At what point ?

    2 . I've done a lot of work monthly based on your DataAccess , but when I upload to the hosting , the application does not work.
    I went from the origins and created a new solution with a new project and did everything according to the instructions Telerik Documentation: Data Access Documentation - Walkthrough: Creating a RIA Services Solution .
    There is not something extra . I also post the solution is no longer hosting the fourth . And everywhere one and the same problem. I specifically found Ask for free ASP.NET hosting. Please show me the error in the project , which I did solely on your instructions ( one to one ) .
    How can I be if the statement is not true since publication on hosting.
    Please see this project. Access data inside the ZIP archive. (all mood)
    https://drive.google.com/file/d/0Bx7QMCHddtwpZ1dTelhNQUZHZk0

    You know how your service , please show that you have earned it .
  2. Viktor Zhivkov
    Admin
    Viktor Zhivkov avatar
    291 posts

    Posted 31 Mar 2014 Link to this post

    Hello Sergio,

    You can configure your web application to show detailed error messages by applying the following code snippet to your web.config:
    1.<system.web>
    2.  <httpModules>
    3.    <add name="DomainServiceModule" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    4.  </httpModules>
    5.  <compilation debug="true" targetFramework="4.5" />
    6.  <httpRuntime targetFramework="4.5" />
    7.  <customErrors mode="Off"/><!-- add this line -->
    8.</system.web>

    I have added line 7 in the web.config file.
    You should note that this will apply only to exceptions thrown by the ASP.NET stack and not from your javascript or Silverlight client. Based on your code I can see that you already have special handling of Silverlight errors.

    In regard of your second questions, I am not sure that I understand correctly what is your exact situation. Were you able to deploy successfully your application in the past?
    What are the errors that you can observe on the client side or in your web host logs?
    Have you followed this guide from MSDN how to deploy RIA-enable web applications?
    Is your web host compatible with RIA services?

    In general our implementation of RIA Services is not different by the one provided by Microsoft so any tools and information that you can find about Microsoft RIA Services and how to work with them is applicable to your project too.

    Regards,
    Viktor Zhivkov
    Telerik
     
    OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
     
  3. DevCraft banner
  4. Sergio
    Sergio avatar
    19 posts
    Member since:
    Jul 2012

    Posted 01 Apr 2014 in reply to Viktor Zhivkov Link to this post

    No, all attempts to develop were not successful.
    If IIS Express instead of VS2013 I choose IIS Windows is running. And if I choose the publishing feature in IIS Windows, it refuses to work .
    All attempts to publish to other hosting providers , too, refuses to work .
    Web Hosting Mistakes I could not watch , do not allow hosting . either in their journal information on my browser and start time.
    RIA application displays the error information is useless .
    Please expand the archive by hosting the data which is specified in this archive .
    And tell me what the problem is .

    With full view of errors in my difficulties. because I can not find the interface to view the errors.
  5. Sergio
    Sergio avatar
    19 posts
    Member since:
    Jul 2012

    Posted 02 Apr 2014 in reply to Sergio Link to this post

    I used Russian SIlverlight. Silverlight.
    I Caught Silverlight error. Which is not saying much. This error comes in the Silverlight.
    This project link: https://drive.google.com/file/SilverlightApplication-part4.zip
    Please help find Error this project
    System.ServiceModel.DomainServices.Client.DomainOperationException: Не удалось выполнить операцию Invoke "GetSummary". [HttpWebRequest_WebException_RemoteServer]
    Аргументы: NotFound
    Недоступны строки отлаживаемых ресурсов. Ключ и аргументы часто предоставляют достаточно информации для диагностики проблемы. См. http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.30214.0&File=System.Windows.dll&Key=HttpWebRequest_WebException_RemoteServer ---> System.ServiceModel.CommunicationException: [HttpWebRequest_WebException_RemoteServer]
    Аргументы: NotFound
    Недоступны строки отлаживаемых ресурсов. Ключ и аргументы часто предоставляют достаточно информации для диагностики проблемы. См. http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.30214.0&File=System.Windows.dll&Key=HttpWebRequest_WebException_RemoteServer ---> System.Net.WebException: [HttpWebRequest_WebException_RemoteServer]
    Аргументы: NotFound
    Недоступны строки отлаживаемых ресурсов. Ключ и аргументы часто предоставляют достаточно информации для диагностики проблемы. См. http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.30214.0&File=System.Windows.dll&Key=HttpWebRequest_WebException_RemoteServer ---> System.Net.WebException: [HttpWebRequest_WebException_RemoteServer]
    Аргументы: NotFound
    Недоступны строки отлаживаемых ресурсов. Ключ и аргументы часто предоставляют достаточно информации для диагностики проблемы. См. http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.30214.0&File=System.Windows.dll&Key=HttpWebRequest_WebException_RemoteServer
       в System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
       в System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClassa.<EndGetResponse>b__9(Object sendState)
       в System.Net.Browser.AsyncHelper.<>c__DisplayClass4.<BeginOnUI>b__0(Object sendState)
       --- Конец трассировки стека внутреннего исключения ---
       в System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
       в System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
       в System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)
       --- Конец трассировки стека внутреннего исключения ---
       в System.ServiceModel.DomainServices.Client.WebDomainClient`1.EndInvokeCore(IAsyncResult asyncResult)
       в System.ServiceModel.DomainServices.Client.DomainClient.EndInvoke(IAsyncResult asyncResult)
       в System.ServiceModel.DomainServices.Client.DomainContext.CompleteInvoke(IAsyncResult asyncResult)
       --- Конец трассировки стека внутреннего исключения ---
  6. Sergio
    Sergio avatar
    19 posts
    Member since:
    Jul 2012

    Posted 02 Apr 2014 in reply to Viktor Zhivkov Link to this post

    Caught a mistake but it is nothing. Here is the link above.
  7. Viktor Zhivkov
    Admin
    Viktor Zhivkov avatar
    291 posts

    Posted 03 Apr 2014 Link to this post

    Hello Sergio,

    From the attached project and the exception message I can see that you are trying to call GetSummary() service method that as far as I can see is not present in your Domain Service.
    In this situation it is normal to receive HTTP 404 Not Found exception.

    Can you try to use different service method? 
    Another option is to update your service to include the GetSummary() method.


    Regards,
    Viktor Zhivkov
    Telerik
     
    OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
     
  8. Sergio
    Sergio avatar
    19 posts
    Member since:
    Jul 2012

    Posted 03 Apr 2014 in reply to Viktor Zhivkov Link to this post

    No, I can only custom methods return an error. Default methods do not return errors in Silverlight. 

    As a method can not GETSUMMARY were present? When I published service with Silverlight. 
    I fully published service, all solution (Silverlight and RIA). It has this method GETSUMMARY. 
    You can not publish themselves and see. I'm telling you that there is something wrong is done. And I do everything exactly as instructed. Open the file and click publish.
  9. Sergio
    Sergio avatar
    19 posts
    Member since:
    Jul 2012
  10. Viktor Zhivkov
    Admin
    Viktor Zhivkov avatar
    291 posts

    Posted 08 Apr 2014 Link to this post

    Hello Sergio,

    I was able to reproduce the issue you are experiencing while deploying to IIS via the Publish command in Visual Studio.
    In order to resolve this issue I have to search around the internet and it turns out that when deploying to IIS you have to provide real .SVC file for your RIA Service. (See this Stack Overflow thread)

    You have to create a new SVC file named using this pattern:
    [WebApplication name]-[Name of the domain service type].svc
    and you have to replace any "." characters with "-".
    In your case the name should be:
    SilverlightApplication1-Web-DomainService1.svc

    The content of the SVC file should be:
    <%@ServiceHost language="C#" Debug="true"
                   Service="SilverlightApplication1.Web.DomainService1"
                   Factory="System.ServiceModel.DomainServices.Hosting.DomainServiceHostFactory" %>
    Where Service attribute value should be the full type name of your domain service.

    Then you have to put that SVC file in ClientBin folder and make sure that it is copied to output directory when building your project.
    After that you can easily Publish the web application to your web host and hopefully see proper results instead of the error messages.

    Regards,
    Viktor Zhivkov
    Telerik
     
    OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
     
  11. Sergio
    Sergio avatar
    19 posts
    Member since:
    Jul 2012

    Posted 10 Apr 2014 in reply to Viktor Zhivkov Link to this post

    Hooray, hooray , hooray, earned! .
    I did a very difficult project for many months under the order. And now he was able to earn on hosting.
    I realized that does not work, and found out what does not work on the stage of your instructions. That the error is not with me , and in the following technology leadership.
    I have a lot of experience C # and WPF, and also ASP.net, but RIA services I have used in the first . And of course, a new understanding must always come to work and examples of finished work.
    How strange that you had to identify the error even find a discussion of the same problem on another site. When this question is the basis of your technology use Telerik Silverlight and Telerik Data Access (Telerik RIA Services).
    Please specify this information in his instructions and examples on using Telerik RIA Services and additions for publication on hosting.
    I am very glad that you helped me with finding errors . Thank you very much .
    Go to share the joy with someone else .
  12. Viktor Zhivkov
    Admin
    Viktor Zhivkov avatar
    291 posts

    Posted 15 Apr 2014 Link to this post

    Hi Sergio,

    We are planning to update our articles to include the missing information.
    You can expect the new steps that you have already tried to appear on the web today or tomorrow.
    Thank you for your feedback!

    Regards,
    Viktor Zhivkov
    Telerik
     
    OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
     
Back to Top
DevCraft banner