I am working on Angular and Asp.net Zero Single Solution. I am getting an error when I run project: An Error Has Occurred (Error detail not sent by server). Not able to find the root cause of an error.
Both Url's are
appsettings.json "ServerRootAddress": "http://localhost:22742", "ClientRootAddress": "http://localhost:22742",
assets/appconfig.js "remoteServiceBaseUrl": "http://localhost:22742", "appBaseUrl": "http://localhost:22742",
5 Answer(s)
-
0
your assets/appconfig.js looks like wrong! you cannot set the appBaseUrl port with the same port as host port.
correct one (assets/appconfig.js)
{ "remoteServiceBaseUrl": "http://localhost:22742", "appBaseUrl": "http://localhost:4200", "localeMappings": [ { "from": "pt-BR", "to": "pt" }, { "from": "zh-CN", "to": "zh" } ] }Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
<cite>alper: </cite> your assets/appconfig.js looks like wrong! you cannot set the appBaseUrl port with the same port as host port.
correct one (assets/appconfig.js)
{ "remoteServiceBaseUrl": "http://localhost:22742", "appBaseUrl": "http://localhost:4200", "localeMappings": [ { "from": "pt-BR", "to": "pt" }, { "from": "zh-CN", "to": "zh" } ] }Yes, Right. But I am using Single Project for Both angular and asp.net zero.
to achieve with different URL's I would have to start npm explicitly. Reply
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Hi @indriya, is there any console error at client side?
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
When you check the Logs of host what you see? write the exception thrown by server
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
<cite>alper: </cite> When you check the Logs of host what you see? write the exception thrown by server
Got the Solution.. If you keep keys with comment in appconfig.js as well as appsettings.json you get this error
Something like this :
appsettings.json:
// "ServerRootAddress": "http://localhost:22742", // "ClientRootAddress": "http://localhost:4200",appconfig.js
// "remoteServiceBaseUrl": "http://localhost:22742", // "appBaseUrl": "http://localhost:4200",Weird but worked for me
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)