Comments (4)
I've been able to create a repro of this issue which is due to the virtual directory only being available at runtime when we were previously replacing static paths on Startup. So we've had to change it to replace the static paths at runtime from this commit: 7eb0267
This change is now available from v4.0.57 thats now available on MyGet.
from admin.
Can you post your ?debug=requestinfo
output, e.g: for:
http://localhost/My.Project/api/ss_admin/?debug=requestinfo
You'll need to enable DebugMode:
SetConfig(new HostConfig { DebugMode = true });
This isn't related to the missing system.js.map
which as it's a single page app it returns the default html page for any unknown requests and we don't embed source map files in ServiceStack.Admin.dll
from admin.
Hi mate. Not sure what other helpful information I can provide, but here is my debug info as requested.
`{
"usage":"append '?debug=requestinfo' to any querystring. Optional params: virtualPathCount",
"host":"v4.054_my project",
"hostType":"ASP.NET (AppHostBase)",
"date":"16-05-11 07:58:38",
"serviceName":"my project",
"handlerFactoryPath":"./",
"userHostAddress":"::1",
"httpMethod":"GET",
"pathInfo":"/ss_admin",
"resolvedPathInfo":"/ss_admin",
"stripApplicationVirtualPath":false,
"getLeftPath":"http://localhost",
"path":"/my.project/api/ss_admin/",
"getPathUrl":"http://localhost/my.project/api/ss_admin",
"absoluteUri":"http://localhost/my.project/api/ss_admin/?debug=requestinfo",
"applicationBaseUrl":"http://localhost/my.project/api",
"resolveAbsoluteUrl":"http://localhost/my.project/api/resolve",
"applicationPath":"/my.project/api",
"applicationVirtualPath":"/my.project/api",
"virtualAbsolutePathRoot":"/",
"virtualAppRelativePathRoot":"/",
"rootDirectoryPath":"C:_G\20150701 my project\Source2\my.project.Api",
"currentDirectory":"c:\windows\system32\inetsrv",
"rawUrl":"/my.project/api/ss_admin/?debug=requestinfo",
"contentType":"",
"status":0,
"contentLength":0,
"headers":{
"Cache-Control":"no-cache",
"Connection":"keep-alive",
"Pragma":"no-cache",
"Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/_;q=0.8",
"Accept-Encoding":"gzip, deflate, sdch",
"Accept-Language":"en-US,en;q=0.8",
"Cookie":"ASP.NET_SessionId=hgmy2dmawojp0i45sdiwcxjw; ss-id=xZ774v9t2UR1rGbzUoDV; ss-pid=8ahq4J9zEkWk1FjUcZfj; ss-opt=perm; X-UAId=3",
"Host":"localhost",
"User-Agent":"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36",
"Upgrade-Insecure-Requests":"1",
"DNT":"1"
},
"queryString":{
"debug":"requestinfo"
},
"formData":{
},
"acceptTypes":[
"text/html",
"application/xhtml+xml",
"application/xml;q=0.9",
"image/webp",
"/;q=0.8"
],
"operationName":"/my.project/api/ss_admin/",
"responseContentType":"text/html",
"requestAttributes":"Localhost, InSecure, HttpGet",
"ipv4Addresses":"169.254.88.173/255.255.0.0, 169.254.119.75/255.255.0.0, 192.168.1.38/255.255.255.0, 169.254.134.204/255.255.0.0, 127.0.0.1/255.0.0.0",
"ipv6Addresses":"fe80::cd34:bf6d:5293:58ad, fe80::6d4b:e872:bbde:774b, fe80::34ee:71ce:b987:e61, fe80::d528:a49f:7dd9:86cc, ::1, 2001:0:9d38:90d7:3ce9:2568:a73e:a45a, fe80::3ce9:2568:a73e:a45a, fe80::5efe:192.168.1.38",
"logonUserInfo":{
"Name":"NT AUTHORITY\IUSR",
"AuthenticationType":"",
"IsAuthenticated":"False",
"IsAnonymous":"False",
"IsGuest":"False",
"IsSystem":"False",
"Groups":"S-1-1-0, S-1-5-32-545, S-1-2-1, S-1-5-11, S-1-5-15, S-1-2-0",
"User":"S-1-5-17",
"User.AccountDomainSid":"null",
"User.IsAccountSid":"False"
},
"debugString":"System.Web.HttpRequest|System.Web.HttpResponse",
"pluginsLoaded":[
"HtmlFormat",
"CsvFormat",
"MarkdownFormat",
"PredefinedRoutesFeature",
"MetadataFeature",
"NativeTypesFeature",
"RequestInfoFeature",
"AutowiringFeature",
"ValidationFeature",
"RaygunFeature",
"SessionFeature",
"OrmLiteAuthFeature",
"NpsAuthenticationFeature",
"AdminFeature",
"AutoQueryFeature",
"SqlServerDbFeature"
],
"startUpErrors":[
{
"errorCode":"AmbiguousMatchException",
"message":"Could not register Request 'my.project.Auth.NpsRegisterUser' with service 'my.project.Auth.NpsRegistrationService' as it has already been assigned to another service.\nEach Request DTO can only be handled by 1 service.",
"stackTrace":"[Object: 5/11/2016 7:57:50 AM]:\n[REQUEST: ]\nSystem.Reflection.AmbiguousMatchException: Could not register Request 'my.project.Auth.NpsRegisterUser' with service 'my.project.Auth.NpsRegistrationService' as it has already been assigned to another service.\nEach Request DTO can only be handled by 1 service.\r\n at ServiceStack.Host.ServiceController.AddToRequestExecMap(Type requestType, Type serviceType, ServiceExecFn handlerFn)\r\n at ServiceStack.Host.ServiceController.RegisterService(ITypeFactory serviceFactoryFn, Type serviceType)\r\n at ServiceStack.Host.ServiceController.RegisterService(Type serviceType)",
"errors":[
]
}
],
"lastRequestInfo":{
"handlerType":"IndexMetadataHandler",
"operationName":"metadata",
"pathInfo":""
},
"stats":{
"RawHttpHandlers":"2",
"PreRequestFilters":"1",
"RequestBinders":"0",
"GlobalRequestFilters":"2",
"GlobalResponseFilters":"2",
"CatchAllHandlers":"5",
"Plugins":"16",
"ViewEngines":"1",
"RequestTypes":"62",
"ResponseTypes":"31",
"ServiceTypes":"18",
"RestPaths":"65",
"ContentTypes":"5",
"EnableFeatures":"All",
"VirtualPathProvider":"[FileSystemVirtualPathProvider: C:_G\20150701 my project\Source2\my.project.Api], [ResourceVirtualPathProvider: my.project.Api], [ResourceVirtualPathProvider: ServiceStack], [ResourceVirtualPathProvider: ServiceStack.Admin]"
},
"virtualPathProviderFiles":[
]
}`
from admin.
Did you know you have a Startup error? It seems that NpsRegisterUser
is implemented in 2 different Services, can you resolve this issue and see if it helps.
from admin.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from admin.