Unable to host ASP.NET MVC 4 app using mod_mono -
i'm trying host asp.net mvc 4 application in apache mod_mono keep getting following error:
an exception has occurred while generating httpexception page: system.nullreferenceexception: object reference not set instance of object @ system.web.util.httpencoder.getcustomencoderfromconfig () [0x00000] in <filename unknown>:0 @ system.lazy`1[system.web.util.httpencoder].initvalue () [0x00000] in <filename unknown>:0 actual exception being reported was: system.web.httpexception: initial exception ---> system.configuration.configurationerrorsexception: error deserializing configuration section httpruntime: unrecognized attribute 'targetframework'. (/var/www/nishkriya/web.config line 1) @ system.configuration.configurationsection.deserializesection (system.xml.xmlreader reader) [0x00000] in <filename unknown>:0 @ system.configuration.configuration.getsectioninstance (system.configuration.sectioninfo config, boolean createdefaultinstance) [0x00000] in <filename unknown>:0 @ system.configuration.configurationsectioncollection.get_item (system.string name) [0x00000] in <filename unknown>:0 @ system.configuration.configuration.getsection (system.string path) [0x00000] in <filename unknown>:0 @ system.web.configuration.webconfigurationmanager.getsection (system.string sectionname, system.string path, system.web.httpcontext context) [0x00000] in <filename unknown>:0 @ system.web.configuration.webconfigurationmanager.getsection (system.string sectionname) [0x00000] in <filename unknown>:0 @ system.web.httpruntime..cctor () [0x00000] in <filename unknown>:0 --- end of inner exception stack trace --- i compiled mono , mod_mono source.
root@inez ~# mono --version mono jit compiler version 3.0.7 ((no/514fcd7 thu mar 21 22:55:42 gmt 2013) copyright (c) 2002-2012 novell, inc, xamarin inc , contributors. www.mono-project.com tls: __thread sigsegv: altstack notifications: epoll architecture: amd64 disabled: none misc: softdebug llvm: supported, not enabled. gc: included boehm (with typed gc , parallel mark) the application set use /usr/local/bin/mod_mono_server4 points
exec /usr/local/bin/mono $mono_options "/usr/local/lib/mono/4.5/mod-mono-server4.exe" "$@" thanks
this smells bad installation. have mono installed in /usr/bin (besides /usr/local/bin)? if yes, should wipe box , start again, time looking @ guide.
Comments
Post a Comment