vs生成网站报错,如何设置才能忽略错误生成网站。谢谢
报如下错误:
错误 1 验证 (): 元素“html”出现的次数太少。 c:\inetpub\wwwroot\include\_time.aspx 14 7 http://localhost/
错误 2 验证 (XHTML 1.0 Transitional): 元素“br”必须包含在父元素中。 c:\inetpub\wwwroot\include\time.aspx 9 2 http://localhost/
错误 3 验证 (XHTML 1.0 Transitional): 像“br”这样的空元素必须以 /> 结束。 c:\inetpub\wwwroot\include\time.aspx 9 2 http://localhost/
错误 5 验证 (XHTML 1.0 Transitional): 元素“div”必须包含在父元素中。 c:\inetpub\wwwroot\include\_time.aspx 9 6 http://localhost/
错误 7 验证 (XHTML 1.0 Transitional): 属性“framespacing”不是元素“iframe”的有效属性。 c:\inetpub\wwwroot\include\time.aspx 11 215 http://localhost/
错误 8 验证 (XHTML 1.0 Transitional): 属性“hspace”不是元素“iframe”的有效属性。 c:\inetpub\wwwroot\include\.aspx 12 38 http://localhost/
错误 9 验证 (XHTML 1.0 Transitional): 属性“vspace”不是元素“iframe”的有效属性。 c:\inetpub\wwwroot\include\ 12 49 http://localhost/
错误 10 验证 (XHTML 1.0 Transitional): 元素“iframe”必须包含在父元素中。 c:\inetpub\wwwroot\include\serr.aspx 11 2 http://localhost/
错误 29 当前上下文中不存在名称“start_time” c:\inetpub\wwwroot\include\server_page_span_time.aspx 3
错误 32 语法错误。 c:\inetpub\wwwroot\include\_time.aspx http://localhost/

解决方案 »

  1.   

    吧所有打开的.aspx 的html页面关了,不要用vs打开任何东西,再生成。
      

  2.   

    先检查自己的文件是否完整
    当前上下文中不存在名称“start_time”
      

  3.   

    错误 29 当前上下文中不存在名称“start_time” c:\inetpub\wwwroot\include\server_page_span_time.aspx 3 
    修改好上面这行错误之后应该就可以通过编译了。
      

  4.   

    有的是include进去的,所以找不到上下文
    都是.aspx文件的
      

  5.   

    错误 2 当前上下文中不存在名称“server__start_time” c:\inetpub\wwwroot\include\server_span_time.aspx 10