c# - ASP.NET IIS7.5 Parser Error -


i have production system , test system, both running iis. in production system, runs fine. in test system, have directed copy of folder site code contained in set virtual directory. app_code folder in root , contains .cs files. when running same site in test,

server error in '/' application. --------------------------------------------------------------------------------  parser error  description: error occurred during parsing of resource required service request. please review following specific parse error details , modify source file appropriately.   parser error message: not load type 'sptasks.master'.  source error:    line 1:  <%@ master language="c#" inherits="sptasks.master"%> line 2:  <html>  line 3:  <head runat="server">   source file: /sptasks/master.master    line: 1 

any idea why coming in test , not in production? code not compiling reason?

thanks!

some of comments have asked mvc, looks webforms application - correct me if i'm wrong? in past i've seen error if application has not yet been compiled. mention you're copying files across 1 @ time. have compiled application? if there's no dll in bin folder containing compiled code sptasks.master.cs class, you'll error. you're not using vs compile application, you'll need use csc directly command line per this msdn article.

if have dll in there, might worth looking inside decompiler (either reflector or jetbrains dotpeek, free) verify sptasks.master.cs class there.

another thing check application pool site running under configured .net framework version 2.0 , not 4.0


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -