monodevelop - Xamarin Studio and Mono debug issue with WebPageHttpModule -


there's lot new xamarin studio every time run web project run system.security.securityexception - no access given key.

if continue execution , refresh page in safari site works. it's first time site loads.

it stops here in disassembler:

0000001d   call void system.web.webpages.webpagehttphandler:registerextension (string) 00000022   ldc.i4.0  00000023   call void system.web.ui.pageparser:set_enablelongstringsasresources (boolean) >00000028   ldtoken system.web.webpages.webpagehttpmodule 0000002d   call type system.type:gettypefromhandle (runtimetypehandle) 00000032   call void  microsoft.web.infrastructure.dynamicmodulehelper.dynamicmoduleutility:registermodule (type) 00000037   newobj void system.web.webpages.scope.aspnetrequestscopestorageprovider:.ctor () 0000003c   call void system.web.webpages.scope.scopestorage:set_currentprovider (iscopestorageprovider) 00000041   ret  

it appears race condition. launching website before it's done compiling?

to test added before execute task of sleep '8s' , doesn't happen straight away next time link selected. first time site loaded.

i can compile code , run on ubuntu ok. ideas?

some other environment data:

  • os-x mountain lion
  • .net 4.0
  • project uses servicestack.net
  • mvc 3.0

if others find same problem, letting know problem has gone away after did following (for other reasons)

  1. removed compiled binaries source control (github) , added .gitignore file.
  2. opened solution in vs 2012 - first had comment out "imports ...web.targets" website .csproj these weren't on windows machine , prevented project loading.
  3. opened solution in xamarin studio , removed references vs 2012 automatically added, .web.helpers , .web.entity , other references injected web.config.

xamarin studio slower start web site debugger loads assemblies, each of these takes second - loaded assembly: data-0x1d9ac00 [external] etc no error :)

so git doing binary files in sub project or bad dll reference happened remove correctly time around.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -