asp.net - Master Page code behind not compiling into assembly -


i stumped problem. have asp.net web application contains master pages. morning added new master page , wired aspx. however, keep getting y.s.o.d error:

parser error message: not load type 'blah.ui.web.webforms.master.loggedin'.  source error:   line 1:  <%@ master language="c#"              masterpagefile="~/webforms/master/iframecontent.master"               autoeventwireup="true" codebehind="loggedin.master.cs"               inherits="blah.ui.web.webforms.master.loggedin" %> 

at first thought i'd spelled wrong in master page directive, i've checked , double checked , doesn't seem it.

since said "could not load type" used dotpeak check code behind class had been compiled assembly , wasn't there. original master pages there, 1 added morning not.

so, figured i'd built wrong somehow (i'd attempted full rebuild already... might try again). still missing.

i checked csproj file against previous version in source control , can see new code there:

<compile include="webforms\master\loggedin.master.cs">   <dependentupon>loggedin.master</dependentupon>   <subtype>aspxcodebehind</subtype> </compile> <compile include="webforms\master\loggedin.master.designer.cs">   <dependentupon>loggedin.master</dependentupon> </compile> 

... , later in same file ...

<itemgroup>   <content include="webforms\master\loggedin.master" /> </itemgroup> 

if @ properties in visual studio .cs files say:

  • build action: compile
  • copy output directory: not copy

which cs files master pages work.

i stumped. haven't clue why isn't working or if i've missed obvious.

update

i've run build @ command line using same msbuild script our ci server uses , assembly produces contain new master page code behind class. there nothing wrong project file seem.

i checked file dates of visual studio output. web application project's assembly 2 days old while other assemblies up-to-date... i'm trying determine why visual studio not building particular project properly. additional ideas of check gratefully received.

update 2

visual studio creating file after all... putting in wrong directory. putting number of project files in bin , in bin/x86/debug under web application's project. copying files looks old build directories file dates different files.

i can guess part of issue may related me splitting code attempt clean code base yesterday. don't understand how ending between mix of output between bin , bin/x86/debug

it seems happened (looking through source control history) projects had x86 platform available , others did not. got x86 platform make things consistent. however, output paths platform configuration not set same across board, hence assemblies ending in different directories.

when set platform "any cpu" worked fine. i'm going have go through projects making output paths consistent assemblies output right location.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -