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);
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
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."
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
please provide more details:
OS
MS .net Framework or Mono
etc. etc.
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"/>
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
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."