This is a migrated thread and some comments may be shown as answers.

OpenAccess Service on Azure

2 Answers 56 Views
Development (API, general questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Terry
Top achievements
Rank 1
Terry asked on 28 May 2013, 02:36 PM
Hello Telerik,

I have successfully created a project (ASP.net web forms) following some of the sample videos. Essentially create a new Web forms application. Add Telerik OpenAccessDomain model which connects to DB (Successfully both an SQL Server hosted in VM on azure or an Azure SQL DB).

When I run in debug mode on local browser ie. 
http://localhost:52915/api/languages - I do indeed get a list of Languages
<Language>
<LANGUAGE_CODE>Ara</LANGUAGE_CODE>
<LANGUAGE_DESCRIPTION>Arabic</LANGUAGE_DESCRIPTION>
</Language>
<Language>
<LANGUAGE_CODE>Arm</LANGUAGE_CODE>
<LANGUAGE_DESCRIPTION>Armenian</LANGUAGE_DESCRIPTION>
</Language>
etc...

But I successfully publish the application to Azure - and
try http://mytestsite.azurewebsites.net/api/languages
I just get
<Error>
<Message>
No HTTP resource was found that matches the request URI 'http://mytestsite.azurewebsites.net/api/languages'.
</Message>
</Error>

Are there any configurations I need to do to get this to run on Azure?

Thanks

Terry





2 Answers, 1 is accepted

Sort by
0
Terry
Top achievements
Rank 1
answered on 29 May 2013, 04:20 PM
Actually I finally got it sorted.

FYI - As per the documentation, you need to add references to the following in your project, they are not all included by default, and set localcopy=true
  • Telerik.OpenAccess.dll
  • Telerik.OpenAccess.35.Extensions.dll
  • Telerik.OpenAccess.Config.dll
  • Telerik.OpenAccess.Web.40.dll
  • Telerik.OpenAccess.Runtime.dll
  • This now allows Web API apps to be published to Azure or indeed any other IIS.

    Hope it helps

    Terry

    0
    Viktor Zhivkov
    Telerik team
    answered on 31 May 2013, 08:34 AM
    Hello Terry,

    Generally some of the OpenAccess assemblies are loaded from GAC when OpenAccess is installed on the target machine and therefore they are not direcly referenced in your projects.
    In case you want to just deploy your application on clean server or as you have experienced with Azure, you should use the methods of deployment described in this article.
    In general a clean Web API hosting application should require only three OpenAccess assemblies:
    • Telerik.OpenAccess.dll
    • Telerik.OpenAccess.35.Extensions.dll
    • Telerik.OpenAccess.Runtime.dll
    The two additional ones that you have included are used if you are configuring OpenAccess runtime through the web.config and using OpenAccessLinqDataSource (or OpenAccessDataSource) in your web application.

    We are eager to hear more about your experience deploying OpenAccess in Azure so we can make your and everyone else experience better in future.

    Regards,
    Viktor Zhivkov
    Telerik
    OpenAccess Samples Kit boasts 50+ sample applications providing diverse real-life business solutions. Click to read more and see OpenAccess ORM in action.
    Tags
    Development (API, general questions)
    Asked by
    Terry
    Top achievements
    Rank 1
    Answers by
    Terry
    Top achievements
    Rank 1
    Viktor Zhivkov
    Telerik team
    Share this question
    or