我刚刚开始使用ServiceStack,作为测试用例,我希望修改使用标准ASP.Net处理程序构建的现有服务。我已经设法让它按我想要的方式工作,但有一些方面利用了ASP.Net会话对象。IRequiresSessionState { // Here I want to use System.Web.HttpContext.Current.Session}问题是我似乎不能让它工作,因为会话对象总是空
我正在尝试遵循ServiceStack的Hello示例。我使用的是Visual Studio 2010,Win 7 64位,但IIS配置为运行32位应用程序。我在尝试访问元数据时遇到以下错误:
Could not load type 'ServiceStack.WebHost.Endpoints.AppHostBase' from assembly 'ServiceStack' from assembly 'ServiceStack, Version=1.
我有一个简单的控制器操作,它将一个名为"firm“的会话变量设置为我的已验证模型。ClientProfile(ClientProfileFormModel model) if (ModelState.IsValid) System.Web.HttpContext.Current.Sessionprofile from " + model.FirmAddress.Name, emailToAdminBody);