This question is locked. New answers and comments are not allowed.
I've downloaded the latest edition of Open Access and I cannot use it on an existing website.
When I try "enable project to use ORM", everything is fine on the first screen. I click next and on the "Does your project contain the following?", persistent classes? is greyed out and not selectable, however DAL is selectable. If I select DAL on the next screen everything is greyed out. The "Select connection" dropdown is defaulted to "none". If I select "custom defined", then the other boxes become selectable. I click NEXT and on the finish screen, I get this error:
"OpenAccess Error"
"The following problem(s) have occurred:
1. Config file: C:\websites\sitename\Web.config cannot be changed. Cause: System.InvalidCastException: Unable to cast object of type 'System.Xml.XmlComment' to type 'System.Xml.XmlElement'. at Telerik.OpenAccess.Sdk.Addin.Xml.XmlHelper.GetXmlElementByAttrKey(XmlNode parentNode, String elementName, String attrKey, String attrValue, Boolean partialMatch, Boolean create, Boolean prepend) at Telerik.OpenAccess.Sdk.Addin.Core.ProjectEnabler.UpdateConfigFile(VAProject project, Parameters parms, String configFileName)
To fix the problem(s), try the following:
Re-execute the 'Enable Project" wizard on the project or execute 'Check Settings' from the OpenAccess menu"
When I re-execute, I get the same error. When I check settings, the only thing selectable on this project is, Validators and Update assembly references and they are selected by default. If I click "Check", everything is fine there. There are no errors and I still can't enable this project.
Help!
When I try "enable project to use ORM", everything is fine on the first screen. I click next and on the "Does your project contain the following?", persistent classes? is greyed out and not selectable, however DAL is selectable. If I select DAL on the next screen everything is greyed out. The "Select connection" dropdown is defaulted to "none". If I select "custom defined", then the other boxes become selectable. I click NEXT and on the finish screen, I get this error:
"OpenAccess Error"
"The following problem(s) have occurred:
1. Config file: C:\websites\sitename\Web.config cannot be changed. Cause: System.InvalidCastException: Unable to cast object of type 'System.Xml.XmlComment' to type 'System.Xml.XmlElement'. at Telerik.OpenAccess.Sdk.Addin.Xml.XmlHelper.GetXmlElementByAttrKey(XmlNode parentNode, String elementName, String attrKey, String attrValue, Boolean partialMatch, Boolean create, Boolean prepend) at Telerik.OpenAccess.Sdk.Addin.Core.ProjectEnabler.UpdateConfigFile(VAProject project, Parameters parms, String configFileName)
To fix the problem(s), try the following:
Re-execute the 'Enable Project" wizard on the project or execute 'Check Settings' from the OpenAccess menu"
When I re-execute, I get the same error. When I check settings, the only thing selectable on this project is, Validators and Update assembly references and they are selected by default. If I click "Check", everything is fine there. There are no errors and I still can't enable this project.
Help!