Generation of designer file failed: Could not load file or assembly

后端 未结 9 1932
别跟我提以往
别跟我提以往 2021-02-09 15:56

I have an ASP.NET web application project which references another project called ModusCore (or Modus.Core). We\'ve had a variety of controls that use ModusCore up until now wi

9条回答
  •  旧巷少年郎
    2021-02-09 16:21

    Adding a third option for when @scherand's (a) and (b) fail:

    c) "Sometimes", this works as well:

    • Remove the <%@ Register... %> entries
    • Save the .AS?X file. Let the designer complain.
    • Add the <%@ Register... %> again
    • Save again

    [Added Oct-13-2010]:
    d) "Sometimes", as well:

    • Clear the AS?X file off all but the most basic content.
    • Start adding pieces back, one bit a time.
    • Save.
    • Check that you didn't get the error message.
    • Add back a few more pieces. Rinse. Repeat.

    I use a text comparison tool against a back up copy of the AS?X file for this.

    I try to avoid adding the controls that cause the error until the very end. I also try to add from the bottom of the page. However, I don't know of a hard rule. It's a gut-feeling exercise.

    (Will someone ever figure this one out?)

提交回复
热议问题