[Mono-devel-list] Building XSP on Windows

Rafael Teixeira monoman at gmail.com
Tue Aug 17 10:53:33 EDT 2004


The Exception message would be helpful, to better understand what is
happening. But from the stack trace it looks like some security
problem, because the new AppDomain is not being able to create an
instance of a class that is in XSP.exe itself, so possibly the
evidences being passed aren't appropriate, because it seems you are
running with .NET instead of Mono...

Hope it helps,

On Sat, 14 Aug 2004 16:12:38 +0100, Fabio Marini
<f_marini1976 at yahoo.co.uk> wrote:
> Hi guys,
> I am trying to build XSP on Windows using Visual Studio and .NET Framework 1.1 -
> the idea is to 'port' XSP from a console app to a Windows service.
> 
> I can build it and run it OK, but when I try to get an .aspx page I get an
> exception. If anyone has tried this before I would appreciate if he could share
> his experience here. I used the code from xsp-1.0.1.tgz (only the classes in the
> server dir): if there's more info that I can provide let me know.
> 
> Thanks,
> Fabio
> 
> <Server stack trace>
> 
>     at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase,
> Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound,
> Assembly locationHint, StackCrawlMark& stackMark)
>     at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean
> stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
>     at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence
> assemblySecurity, StackCrawlMark& stackMark)
>     at System.Activator.CreateInstance(String assemblyName, String typeName,
> Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args,
> CultureInfo culture, Object[] activationAttributes, Evidence securityInfo,
> StackCrawlMark& stackMark)
>     at System.Activator.CreateInstance(String assemblyName, String typeName)
>     at System.AppDomain.CreateInstance(String assemblyName, String typeName)
>     at
> System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(MethodBase
> mb, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext,
> Object[]& outArgs)
>     at
> System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage
> msg, Int32 methodPtr, Boolean fExecuteInContext)\n\nException rethrown at [0]:
>     at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
> reqMsg, IMessage retMsg)
>     at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
> msgData, Int32 type)
>     at System.AppDomain.CreateInstance(String assemblyName, String typeName)
>     at System.Web.Hosting.ApplicationHost.CreateApplicationHost(Type hostType,
> String virtualDir, String physicalDir)
>     at Mono.ASPNET.VPathToHost.CreateHost(IWebSource webSource)
>     at Mono.ASPNET.ApplicationServer.GetApplicationForPath(String vhost, Int32
> port, String path, Boolean defaultToRoot)
>     at Mono.ASPNET.XSPWorker.Run(Object state)
> 
> </Server stack trace>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 


-- 
Rafael "Monoman" Teixeira
---------------------------------------
Cognition is not a representation of an objectively existing world
but is a bringing forth of a world in the process of living.
-- Fritjof Capra, citing 
   Humberto Maturana and Francisco Varella's "Santiago Theory of Cognition"



More information about the Mono-devel-list mailing list