liubiao4123 / servicestack

Automatically exported from code.google.com/p/servicestack
0 stars 0 forks source link

issues using just the redis part of service stack #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. include servicestack.dll
2. include servicestack.redis.dll
3. include servicestack.interface.dll

What is the expected output? What do you see instead?
expected output is working, what happens is that interfaces and the like 
are shared between servicestack.redis.dll and servicestack.dll. 

What version of the product are you using? On what operating system?
1.0.5, windows. .net 3.5

Original issue reported on code.google.com by pedlar.b...@gmail.com on 17 Mar 2010 at 8:42

GoogleCodeExporter commented 8 years ago
You can use ServiceStack.Redis in 1 of 2 ways:
1. It comes bundled with ServiceStack.dll and ServiceStack.Interface.dll
2. Standalone, using *just* the ServiceStack.Redis.dll. Although in this way 
you can't 
use it in combination with the other ServiceStack.*.dlls as it would be 
declared twice.

Original comment by demis.be...@gmail.com on 17 Mar 2010 at 8:52

GoogleCodeExporter commented 8 years ago
if i just use servicestack.redis, it complains about not having stuff that's in 
servicestack.interfaces. when i reference that and try to run it, i get the 
following 
error:

Unhandled Exception: System.TypeLoadException: Could not load type 
'ServiceStack.DesignPatterns.Model.IHasNamed`1' from assembly 
'ServiceStack.Interfaces, Version=1.0.0.0, Culture=neutral, 
PublicKeyToken=null'.
   at ServiceStack.Redis.RedisClient.Init()
   at ServiceStack.Redis.RedisCacheClient..ctor(String host, Int32 port)
   at Rawhide.Services.Plunger.AggregatePlunger.ProcessData() in 
C:\Users\Bryan\clients\conversion\rawhide\trunk\Rawhide.Services.AggregatePlunge
r\Agg
regatePlunger.cs:line 55
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, 
ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

again, 1.0.5

Original comment by pedlar.b...@gmail.com on 17 Mar 2010 at 9:14

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi, 

I've just created a test application and checked again and it looks like I 
forgot to 
include the missing dll's, namely ServiceStack.Messaging.

I've fixed the build file to include the missing deps and the test application 
now 
works.

I've updated the 'release downloads' for both ServiceStack.zip and 
ServiceStack.Redis.dll to svn trunk, so now the new release download should 
work:

Standalone: http://servicestack.googlecode.com/files/ServiceStack.Redis.dll
Bundled: http://servicestack.googlecode.com/files/ServiceStack.zip

Original comment by demis.be...@gmail.com on 17 Mar 2010 at 10:26