Parser Error Message: Could not create type 'xxx'

后端 未结 3 1158
被撕碎了的回忆
被撕碎了的回忆 2020-12-11 10:52

i get this error

Parser Error Message: Could not create type \'charts.lineChartData\'.

Source Error: 

Line 1:  <%@ WebHandler Language=\"C#\" CodeBehin         


        
相关标签:
3条回答
  • 2020-12-11 11:37

    I had this.. fixed it.. thought I'd share

    if you right click the .asmx file and select view markup you'll see it still says

    <%@ WebService Language="C#" CodeBehind="MyService.asmx.cs" Class="MyProject.Service1" %>
    

    maybe not Service1.. but won't be the class you've just made

    <%@ WebService Language="C#" CodeBehind="MyService.asmx.cs" Class="MyProject.MyService" %>
    

    save it.. try it..

    worked for me..

    0 讨论(0)
  • 2020-12-11 11:38

    I've come across this error using Visual Studio Development Server when my project output directory was not bin\

    One of my DLLs has versions for different platforms (x86, x64), so I created corresponding configurations, and they got by default output directories like this:

    bin\x86\Debug 
    bin\x64\Debug
    

    But the Visual Studio Development Server still tried to load binaries from the bin\ folder and of course failed.

    I fixed the issue by specifying bin\ output folder in my debug configurations.

    0 讨论(0)
  • 2020-12-11 11:40

    You usually get that when your code doesn't build, i.e. there is no dll so i can't load the handler type.

    0 讨论(0)
提交回复
热议问题