[Mono-aspnet-list] Couldn't impersonate token - ArchLinux

davidsz david.szabo97 at gmail.com
Sun Jan 31 11:54:58 UTC 2016


Hello!

I have installed mod_mono recently, i could get the html/xsp working, but
not my own MVC website.
The project was published with VS 2015 via File System publish (.net 4.5).

The project is the default template, nothing changed.
I set the file permission to 777 and owned by the apache (http) user.

Any idea?
Thank you!

The whole error can be viewed here:
https://4stor.com/fMbNW

---------------------------------------------

System.Security.SecurityException
Couldn't impersonate token.
Description: HTTP 500.Error processing request.
Details: Non-web exception. Exception origin (name of application or
object): mscorlib.
Exception stack trace:
  at System.Security.Principal.WindowsImpersonationContext..ctor (IntPtr
token) [0x00028] in
/build/mono/src/mono-4.2.2/mcs/class/corlib/System.Security.Principal/WindowsImpersonationContext.cs:50 
.............

Config file:
<VirtualHost *:80>
  ServerName ****
  ServerAdmin ****
  DocumentRoot /srv/http/****/public
  MonoServerPath **** "/usr/bin/mod-mono-server4"

  MonoDebug **** true

  MonoSetEnv **** MONO_IOMAP=all

  MonoApplications **** "/:/srv/http/****.c$
  <Location "/">
    Allow from all
    Order allow,deny
    MonoSetServerAlias ****
    SetHandler mono
    SetOutputFilter DEFLATE
    SetEnvIfNoCase Request_URI "\.(?:gif|jpe?g|png)$" no-gzip dont-vary
  </Location>
  <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javasc$
  </IfModule>
</VirtualHost>




--
View this message in context: http://mono.1490590.n4.nabble.com/Couldn-t-impersonate-token-ArchLinux-tp4667347.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.


More information about the Mono-aspnet-list mailing list