I have created an asp.net MVC3 website I would like to upload via Webmatrix. The website uses a database I set up in webmatrix (SQL Compact Databases). I am using an ado.net data entity model to interface with the database. The website runs properly on my
local machine, but when I attempt to deploy it via webmatrix I recieve the following error:
System.ArgumentException: Illegal characters in path.
at System.IO.Path.CheckInvalidPathChars(String path)
at System.IO.Path.IsPathRooted(String path)
at Microsoft.WebMatrix.Deployment.DeployFilesFilter.ApplyFilterForSqlCeInternal()
at Microsoft.WebMatrix.Deployment.DeployFilesFilter.ApplyFilterForSqlCe()
at Microsoft.WebMatrix.Deployment.DeployFilesFilter.ApplyFilters()
at Microsoft.WebMatrix.Deployment.MsDeployWorker.Execute(Boolean pullback)
After a little experimentation I have determined that ths problem appears to be linked to my web.config connection string for the databases (With this string removed the deploy error no longer occurs).
Then, I can publish, but, my app would not be able to find DatabaseCE1.sdf anymore because I removed |DataDirectory|.
I publish this app as sub-app. Meaning, it is under my
www.mysite.com/mvc-test/ , not directly under
www.mysite.com , which maybe the cause of the problem.
christophers...
0 Points
2 Posts
Deployment Failure - System.ArgumentException: Illegal characters in path.
May 20, 2011 05:27 PM|LINK
I have created an asp.net MVC3 website I would like to upload via Webmatrix. The website uses a database I set up in webmatrix (SQL Compact Databases). I am using an ado.net data entity model to interface with the database. The website runs properly on my local machine, but when I attempt to deploy it via webmatrix I recieve the following error:
System.ArgumentException: Illegal characters in path.
at System.IO.Path.CheckInvalidPathChars(String path)
at System.IO.Path.IsPathRooted(String path)
at Microsoft.WebMatrix.Deployment.DeployFilesFilter.ApplyFilterForSqlCeInternal()
at Microsoft.WebMatrix.Deployment.DeployFilesFilter.ApplyFilterForSqlCe()
at Microsoft.WebMatrix.Deployment.DeployFilesFilter.ApplyFilters()
at Microsoft.WebMatrix.Deployment.MsDeployWorker.Execute(Boolean pullback)
After a little experimentation I have determined that ths problem appears to be linked to my web.config connection string for the databases (With this string removed the deploy error no longer occurs).
Does anybody know why I am getting this error - what am I missing here?
Thanks!
Shellymn
Contributor
2612 Points
485 Posts
Re: Deployment Failure - System.ArgumentException: Illegal characters in path.
May 20, 2011 08:11 PM|LINK
Try this
magicalclick
Member
54 Points
50 Posts
Re: Deployment Failure - System.ArgumentException: Illegal characters in path.
Feb 23, 2012 07:32 AM|LINK
Hello I am facing the same problem.
I don't think it is the metadata problem.
if I change this
to this
Then, I can publish, but, my app would not be able to find DatabaseCE1.sdf anymore because I removed |DataDirectory|.
I publish this app as sub-app. Meaning, it is under my www.mysite.com/mvc-test/ , not directly under www.mysite.com , which maybe the cause of the problem.
Please help, thank you.