Menu

path is not of a legal form. default.aspx.cs

Help
quagma
2004-11-18
2013-03-07
  • quagma

    quagma - 2004-11-18

    Hello,

    I'm used to running sites on LAMP set-ups. I've tried to run ndCMS but I'm getting this error:

    The path is not of a legal form.
    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.ArgumentException: The path is not of a legal form.

    Source Error:

    Line 63:                 PGINDX = Request["obj"];
    Line 64:            
    Line 65:             db = new GDataSource(ndCMS.Global.GetConfigNode(), ConfigurationSettings.AppSettings["dbType"]);
    Line 66:             db.Open();
    Line 67:             dbr = db.ExecuteReader("SELECT pagename, pagedata, templ_indx FROM tblPAGES WHERE indx="+PGINDX);

    Source File: c:\inetpub\wwwroot\ndcms\default.aspx.cs    Line: 65

     
    • Tim Bell

      Tim Bell - 2004-11-18

      please provide more details:

      OS
      MS .net Framework or Mono
      etc. etc.

       
    • Tim Bell

      Tim Bell - 2004-11-18

      This is my best guess. Make sure you have the following line in your web.config file.

      <add key="dbConfig" value="c://inetpub/wwwroot/ndcms/db_config.xml"/>

       
    • quagma

      quagma - 2004-11-18

      Thanks for that - yes, I was missing that line.

      Another problem though... I've set it to use MSACCESS but I get this error after putting admin and admin in the login page:

      Operation must use an updateable query.
      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.Data.OleDb.OleDbException: Operation must use an updateable query.

      Source Error:

      Line 94:             {
      Line 95:                 sql = "INSERT INTO tblLOG (user_indx,event_indx,event_datetime) VALUES('" + Session["user_indx"] + "','1'," + ConfigurationSettings.AppSettings["dbDate"] + ")";
      Line 96:                 db.ExecuteNonQuery(sql);
      Line 97:             }
      Line 98:             else

      Source File: c:\inetpub\wwwroot\ndcms\admin\default.aspx.cs    Line: 96

      I'm using:
      XP Pro SP2
      IIS 5.1
      MS .NET framework 1.1

       
    • Tim Bell

      Tim Bell - 2004-11-19

      check the permissions on the database!

      IIS/ASP.NET needs to be able to write to the access database.

      If you navigate to the website, in documentation, the third step under installation is: "Make sure the .NET User has permissions at the location where you are dumping the files to."

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.