in web.host i replaced "App": { "WebSiteRootAddress": "http://test.almonjez.org/", "CorsOrigins": "http://api.almonjez.org/" },
in web.Mvc i Replaced
"App": { "WebSiteRootAddress": "http://test.almonjez.org/" },
but i got
Request URL:http://test.almonjez.org/ Request Method:GET Status Code:500 Internal Server Error
6 Answer(s)
-
0
Hi,
Are you trying to deploy both Host and MVC projects ? Can you explain what will be the addresses for each applicaiton ?
Host : <a class="postlink" href="http://api.almonjez.org/">http://api.almonjez.org/</a> ? Web MVC: <a class="postlink" href="http://test.almonjez.org/">http://test.almonjez.org/</a> ?
-
0
yes
Host : <a class="postlink" href="http://api.almonjez.org/">http://api.almonjez.org/</a>
Web MVC: <a class="postlink" href="http://test.almonjez.org/">http://test.almonjez.org/</a> -
0
and this is my sitting in mvc "WebSiteRootAddress": "http://http://test.almonjez.org/" in host "ServerRootAddress": "http://Api.almonjez.org/", "ClientRootAddress": "http://test.almonjez.org/", "CorsOrigins": "http://Api.almonjez.or,http://test.almonjez.org"
-
0
i got this Error from log file
System.UnauthorizedAccessException: Access to the path 'C:\Windows\system32\config\systemprofile\AppData\Local\ASP.NET\DataProtection-Keys' is denied.
-
0
ERROR 2017-04-06 23:54:30,470 [27 ] e.Diagnostics.ExceptionHandlerMiddleware - An unhandled exception has occurred: An error occurred while trying to encrypt the provided data. Refer to the inner exception for more information. System.Security.Cryptography.CryptographicException: An error occurred while trying to encrypt the provided data. Refer to the inner exception for more information. ---> System.UnauthorizedAccessException: Access to the path 'C:\Windows\system32\config\systemprofile\AppData\Local\ASP.NET\DataProtection-Keys' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
-
0
Hi,
Normally MVC project does not make any requests to Host project. Host project is designed for angular2 client or if you want to develop any mobile app you can use host project.
Your configs should be like this. in mvc
"WebSiteRootAddress": "http://test.almonjez.org/"
in host
"ServerRootAddress": "http://api.almonjez.org/", "ClientRootAddress": "http://test.almonjez.org/", ?? if you are using Host project from MVC project "CorsOrigins": "http://test.almonjez.org" ?? if you are using Host project from MVC project
And in which app's logs do you see that error ?
Thanks.