Questions tagged [openrasta]

OpenRasta is an open-source MVC framework that can run on .net 2.0 and above, built from the ground-up to enable ReSTful scenarios.

Resources

OpenRasta Site
OpenRasta GitHub Project
OpenRasta Documentation Wiki

149 questions
1
vote
1 answer

ArgumentNullException when initializing site

I am in the process of evaluating several service frameworks and one of them is OpenRasta. Despite being taken a bit aback for the lack of organization (multiple source code repositories, lack of binary downloads, outdated build instructions and the…
1
vote
1 answer

Openrasta: Swap instance in dependency resolver

Suppose I register some instance in OpenRasta's dependency resolver using resolver.AddDependencyInstance(IInterface, instance, DependencyLifetime.Singleton) Now if I want to swap that instance later, say to reread fresh data from the db, is another…
Evgeniy Berezovsky
  • 18,571
  • 13
  • 82
  • 156
1
vote
1 answer

Writing PDF content on response stream in openrasta

I want to render a pdf in Iframe. So if I do a GET request to http://localhost/pdf/2, it should return PDF content in the response stream. The other way can be redirecting user to full URL of the PDF file which I don't want to do. Thanks in advance
prashant
  • 2,181
  • 2
  • 22
  • 37
1
vote
0 answers

wildcard mapping support in openrasta 2.1?

according to the answer to this question: In OpenRasta, how do I configure a URI where I get "the remainder of the path" as a single string? Openrasta should support wildcards in it's uri mapping, is this already supported in version…
Rob Segerink
  • 106
  • 1
  • 3
1
vote
2 answers

Remove a default pipeline contributor

What is the preferred way to remove a default pipeline contributor (OpenRasta 2.0.3)? I haven't found a lot on that on the net, but one way seems to be writing a custom DependencyRegistrar, i.e. deriving from DefaultDependencyRegistrar and then e.g.…
Evgeniy Berezovsky
  • 18,571
  • 13
  • 82
  • 156
1
vote
1 answer

OpenRasta + OpenWrap?

I'm new to both OpenWrap and OpenRasta. Not really that interested in Openwrap other than that seems to be the way to get OpenRasta. Anyways i've installed openwrap and followed the following tutorial to the T: OpenWrap Tutorial except of course i…
coding4fun
  • 8,038
  • 13
  • 58
  • 85
1
vote
1 answer

General architecture for backend?

We are trying to be forward looking in our architecture choice on some of the new systems we are designing. Pretty much we want to architecture back end system that no matter what interface we decide to use (WinForms, Silverlight, MVC, Webforms,…
coding4fun
  • 8,038
  • 13
  • 58
  • 85
1
vote
3 answers

OpenRasta: Uri seems to be irrelevant for handler selection

When registering two handlers for the same type, but with different URIs, the handler selection algorithm doesn't seem to check the uri when it determines which handler to use. If you run the program below, you'll notice that only HandlerOne will be…
Evgeniy Berezovsky
  • 18,571
  • 13
  • 82
  • 156
1
vote
1 answer

Access to MethodInfo in OperationInterceptor

I created a couple of custom attributes that I attach to my methods in the handlers. The custom attributes are more than mere 'taggers' like e.g. 'RequiresAuthenticationAttribute'. A simplified example: [EnforceParam("Account")] In my interceptor,…
Evgeniy Berezovsky
  • 18,571
  • 13
  • 82
  • 156
1
vote
2 answers

Is the OpenRasta Project Actively Developed

What's up with OpenRasta is it dead project? If I go to http://openrasta.org/download.html and try to do the: o add-wrap openrasta-full I receive the following: \# OpenWrap Shell 1.1.0.35 \# Copyright © naughtyProd Limited 2009-2011 \# Using…
smolesen
  • 1,153
  • 3
  • 11
  • 29
1
vote
2 answers

OpenRasta accessing sub elements

I have a design of a person having a collection of subjects like Person ---> Subject (1 to many) If I access a person with an Id of 1 (http://localhost/person/1), it will show all the person's details and the collection details. How do I design a…
Blair Davidson
  • 901
  • 12
  • 35
1
vote
1 answer

How to Return static HTML and/or Javascript in OpenRasta

I am using OpenRasta 2.0, and am hosting within a console application. I would like to be able to return some static HTML pages and JavaScript files from this setup, for example: /index.html /jquery.js The files are entirely static, i.e. no…
Jim Liddell
  • 514
  • 3
  • 13
1
vote
1 answer

Open Rasta InMemoryHost returning 406 error

I'm trying to write an integration test for an open rasta web service (code bellow) using(var host = new InMemoryHost(new Configuration())) { var request = new InMemoryRequest {Uri = new Uri("http://localhost/foo"), HttpMethod = "GET"}; …
jdoig
  • 1,472
  • 13
  • 27
1
vote
1 answer

How to install OpenRasta Visual Studio Templates?

I know I'm missing something stupid. I followed the instructions in wiki and I got few zip files in bin\Release\vside folder, which I'm sure are visual studio templates. But I don't know how to install them to be available in Visual Studio new…
IsmailS
  • 10,797
  • 21
  • 82
  • 134
1
vote
1 answer

OpenRasta Json returning nested classes

Is it possible to return nested classes in json with OpenRasta? I'm using EF4.1 with code first (which in theory shouldn't make a difference, as they are just POCO classes). Here is an example: public class AppUser { [Key] public int…
Dave Arkell
  • 3,920
  • 2
  • 22
  • 27