[QUESTION] {"This operation is not supported for a relative URI."}
See original GitHub issueI’m getting this error, my code is:
`private bool InsertBotConfigToDb(string path) {
var stream = new StreamReader(path).ReadToEnd();
// Open data file (or create if not exits)
using (var db = new LiteDatabase(Server.MapPath("~/db.db")))
{
// Get customer collection
var col = db.GetCollection<BotConfig>("botconfigs");
var config = JsonConvert.DeserializeObject<BotConfig>(stream);
// Insert new customer document
col.Insert(1, config);
//var result = col.Find(x => x.Name.StartsWith("Jo"));
}
return true;
}`
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
This operation is not supported for a relative URI, error ...
As the exception message indicates, relative URI is not allowed. Try removing the prefix="item" and make all of them an absolute URI.
Read more >This operation is not supported for a relative URI. at System ...
Umbraco 7 We have recently upgraded a website from v6 to v7.10 and are now seeing regular errors in the error logs: 2018-08-08...
Read more >This operation is not supported for a relative URI, error ...
As the exception message indicates, relative URI is not allowed. Try removing the prefix="item" and make all of them an absolute URI.
Read more >Link Validation - "This operation is not supported for a relative
I have a EPiServer CMS 7.13 web site and is trying to run the Link Validation scheduled job. However, the job always fails...
Read more >Could not query build definitions. This operation is ...
This operation is not supported for a relative URI." Azure DevOpsAzure DevOpspipelines.. This issue is read only, because it has been in ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mbaletic does this mean your issue has been resolved?
Could you provide us with the stacktrace of the exception? Also, it might speed things up if we could get some minimal code that easily reproduces your exception as I can’t seem to reproduce your issue.