Situation:
I have configured my web.config and web.release.config file , in the below.
I have configured Packet and Publish SQL but it is testing wrongly (I use Access but not SQL , all the web form are connected to Access successfully.)
When I Publish to web-deployment in the Internet , The error messages happen in the below. ( Hosting provider ,using own PC for tourist accessing to my Webpage)
Web.config
<configuration>
<connectionStrings>
<add name="DBCS"
connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\sim\Desktop\Web.accdb"
providerName="System.Data.SqlClient" />
</connectionStrings>)
web.release.config
<connectionStrings>
<add name="DBCS"
connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\sim\Desktop\Web.accdb" xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
</connectionStrings>
Error message:
Error 1 Web deployment task failed.(Object of type 'dbFullSql' and path 'Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\sim\Desktop\Web.accdb' cannot be created.) Object of type 'dbFullSql' and path 'Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\sim\Desktop\Web.accdb' cannot be created. The value 'Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\sim\Desktop\Web.accdb' is not a valid connection string or an absolute path. Keyword not supported: 'provider'. 0 0 FYP