tags:

views:

61

answers:

1

I am getting this error after uploading my web app to my Rackspace box.

CS0246: The type or namespace name 'User' could not be found (are you missing a using directive or an assembly reference?)

It's odd because it works fine on my local computer where I do development. The actual line of code is:

public User user = new User();

I am using C#.

A: 

I'm going to guess that this is because Rackspace will be running your application in Medium Trust mode, and on your machine your application will have full trust.

Without a lot more to go on, it'll be difficult to diagnose exactly what's going wrong, but perhaps these links will give you some insight?

How To: Use Medium Trust (read "Medium Trust Summary" about a page down).

Someone running into the same issues.

womp
@womp: Rackspace will happily give you a server, so your guess that his app will be running in Medium Trust mode may be incorrect.
Brian