Coder Social home page Coder Social logo

servicestack / servicestack.usecases Goto Github PK

View Code? Open in Web Editor NEW
64.0 16.0 95.0 19.5 MB

Repository contains the projects with common use cases for ServiceStack.

License: Other

C# 41.01% ASP 0.65% CSS 13.44% JavaScript 15.55% Shell 0.21% HTML 29.11% Batchfile 0.03%

servicestack.usecases's Introduction

ServiceStack common Use Cases

The repository contains the list of projects with common use cases of ServiceStack.

servicestack.usecases's People

Contributors

desunit avatar mythz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

servicestack.usecases's Issues

Can_send_to_GoogleAppEngine_JSON_Python_Service fails

Problem running testcase for Reusability:

ServiceStack.WebServiceException : Internal Server Error
at ServiceStack.ServiceClientBase.ThrowWebServiceException(Exception ex, String requestUri)
at ServiceStack.ServiceClientBase.ThrowResponseTypeException(Object request, Exception ex, String requestUri)
at ServiceStack.ServiceClientBase.HandleResponseException(Exception ex, Object request, String requestUri, Func1 createWebRequest, Func2 getResponse, ref TResponse response)
at ServiceStack.ServiceClientBase.Send(String httpMethod, String relativeOrAbsoluteUrl, Object request)
at ServiceStack.ServiceClientBase.Post(String relativeOrAbsoluteUrl, Object requestDto)
at ServiceStack.ServiceClientBase.Post(IReturn`1 requestDto)
at Reusability.Tests.Can_send_to_GoogleAppEngine_JSON_Python_Service() in Tests.cs: line 14

ServiceStack.Swagger doesn't work with ServiceStack.Razor

When I add RazorFormat feature to ServiceStack.Swagger example I get "Handler for Request not found" error when trying to view localhost:yourport/swagger-ui/index.html (which was previously working).

So how to use both: swagger and razor? I tried to rename index.html to index.cshtml to make razor engine deal with this file. The page was working but no JS, and no CSS downloaded, so it wasn't useful much.

HTTP Error 500.23 - Internal Server Error

When running the HelloWorld project I got this error (This is probably an issue in the other projects as well):

HTTP Error 500.23 - Internal Server Error
An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.

I resolved this by adding a line to the Web config file.

<system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
   .
   .
   .
</system.webServer>

ServicaStack.Swagger captures only the first route in service

Go to HelloText class (or any class that is describing requests to REST service, i.e. HelloImage or Hello - in this particular example). Add one more route for the request.

[Route("/hellotext/{Name}", Summary = "Hello Text Service")]
[Route("/abc/{Name}", Summary = "ABC Text Service")]
public class HelloText
{
[ApiMember(Name = "Name",
Description = "Name Description",
ParameterType = "path",
DataType = "string", IsRequired = true)]
public string Name { get; set; }
}

Go to local swagger-page (localhost:yourport/swagger-ui.html) or to resouces page (localhost:yourport/resources) and you'll see that "/abc/" route is captured and "/hellotext" is not

/resource/abc
/resource/helloimage
/resource/hello

Running Resusability example

Hi I have complied and attempting to run the example Reusability.
I get the following redis exception. Do I need to allow some firewall setting? Do I need to install Redis?

Thanks

{ServiceStack.Redis.RedisException: localhost:6379 ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:6379
at System.Net.Sockets.Socket.Connect(IPAddress[] addresses, Int32 port)
at System.Net.Sockets.Socket.Connect(String host, Int32 port)
at ServiceStack.Redis.RedisNativeClient.Connect()
at ServiceStack.Redis.RedisNativeClient.TryConnectIfNeeded()
at ServiceStack.Redis.RedisNativeClient.AssertConnectedSocket()
--- End of inner exception stack trace ---
at ServiceStack.Redis.RedisNativeClient.AssertConnectedSocket()
at ServiceStack.Redis.RedisNativeClient.AssertServerVersionNumber()
at ServiceStack.Redis.RedisClient.GetServerRole()
at ServiceStack.Redis.RedisResolver.CreateRedisClient(RedisEndpoint config, Boolean master)
at ServiceStack.Redis.RedisResolver.CreateMasterClient(Int32 desiredIndex)
at ServiceStack.Redis.PooledRedisClientManager.GetClient()
at ServiceStack.Redis.RedisClientsManagerExtensions.Exec(IRedisClientsManager redisManager, Action`1 lambda)
at Reusability.AppHost.ResetAll(Container container, OrmLiteAuthRepository authRepo) in C:\Users\lai.tang\Downloads\ServiceStack.UseCases-master\ServiceStack.UseCases-master\Reusability\Global.asax.cs:line 90
at Reusability.AppHost.Configure(Container container) in C:\Users\lai.tang\Downloads\ServiceStack.UseCases-master\ServiceStack.UseCases-master\Reusability\Global.asax.cs:line 78
at ServiceStack.ServiceStackHost.Init()
at Reusability.Global.Application_Start(Object sender, EventArgs e) in C:\Users\lai.tang\Downloads\ServiceStack.UseCases-master\ServiceStack.UseCases-master\Reusability\Global.asax.cs:line 98}

MVC authentication

Are the two service calls supposed to work out of the box? When I run the project the MVC Action works fine, but the AJAX request fails with the 401 error.

Could not install Microsoft.Asp.Net Package

Hi,

When updating the nuget packages for the solution I got this message:
2014-02-24 11_39_22-summary

I ignored the error and tried to build the soulution. I got these warnings:
Warning 1 There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "ServiceStack.OrmLite.Sqlite, Version=4.0.11.0, Culture=neutral, processorArchitecture=x86", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. Reusability

Warning 2 Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file: CustomAuthenticationMvc

Warning 3 There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "ServiceStack.OrmLite.Sqlite, Version=4.0.11.0, Culture=neutral, processorArchitecture=x86", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. Reusability

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.