Microsoft.VisualBasic.Helpers.ProjectData 有没有这个相关的DLL?

解决方案 »

  1.   

    cpp2017(幕白兄) :
    Microsoft.VisualBasic.Helpers.ProjectData 
    这个是什么dll?怎么找到? yy_will(悠悠冰河):
    虚拟目录当然有,不过创建应用程序我没有做。需要创建什么程序?
    我是直接把书上的光盘文件复制到虚拟目录下执行的。
    书上的提示也没要求作别的,就是说放在根目录下,我都照做的。
      

  2.   

    你的页面不显示详细出错信息
    按照这2个方法
    1. Add a "Debug=true" directive at the top of the file that generated the error. Example:  <%@ Page Language="C#" Debug="true" %>or:2) Add the following section to the configuration file of your application:<configuration>
       <system.web>
           <compilation debug="true"/>
       </system.web>
    </configuration>
    再执行看详细的出错信息
      

  3.   

    在IIS中设置设置项目属性-->应用程序名称,【创建】or【删除】创建一下
      

  4.   

    多谢大家指点。
     xiahouwen(活靶子.NET) 
    我试过勒,出来的详细错误提示第14行Server Error in '/' Application.
    --------------------------------------------------------------------------------Could not load type Microsoft.VisualBasic.Helpers.ProjectData from assembly Microsoft.VisualBasic, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. 
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.TypeLoadException: Could not load type Microsoft.VisualBasic.Helpers.ProjectData from assembly Microsoft.VisualBasic, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.Source Error: 
    Line 12: if page.isvalid then
    Line 13:  reg.username=username.text
    Line 14:  if not reg.queryuser then
    Line 15:  reg.userpassword=psw.text
    Line 16:  reg.name=truename.text
     Source File: c:\inetpub\wwwroot\register\register.aspx    Line: 14 Stack Trace: 
    [TypeLoadException: Could not load type Microsoft.VisualBasic.Helpers.ProjectData from assembly Microsoft.VisualBasic, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.]
       cindyking.register.queryuser() +0
       ASP.register_aspx.butclick(Object sender, EventArgs e) in c:\inetpub\wwwroot\register\register.aspx:14
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
       System.Web.UI.Page.ProcessRequestMain() +1277 
    很多人都说设置虚拟目录,那我回去仔细检查看看吧。先结这贴,有问题再回来问。
      

  5.   

    未能加载Microsoft.VisualBasic.Helpers.ProjectDataCould not load type Microsoft.VisualBasic.Helpers.ProjectData还有
    这2行我不太明白
    Line 13:  reg.username=username.text
    Line 14:  if not reg.queryuser then
    看你的13行reg.username该是个字符串
    14行进行的好像是逻辑运算??
    VB的语法我不懂
    不过猜测
    if not 这里 then 内应该是个逻辑值
      

  6.   

    什么书啊,能理解书上的意思就好,
    实在不行照书上自己做一遍,不要COPY
      

  7.   

    queryuser是一个定义过的方法。我觉得这句就是问题。
    不过还没想好怎么弄。