Can someone help me out with this? I tried to upload a sample WebMatrix site up to my host, but, I am getting the following error.
To my understanding, I need to have SQLExpress, but, I haven't pay it to my hoster yet. I just want to use SQL Compact for the time being. What should I do?
I also tried launching VS from WebMatrix and trying to use "ASP.Net Configuration", but, like the message, it is saying I have SQL server missing.
I can run the web matrix sample site locally, but, not after I upload it. Can anyone help? Thank you.
Description:
An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: The connection name 'LocalSqlServer' was not found in the applications configuration or the connection string is empty.
Source Error:
Line 255: <providers>
Line 256: <add name="AspNetSqlMembershipProvider"
Line 257: type="System.Web.Security.SqlMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Line 258: connectionStringName="LocalSqlServer"
Line 259: enablePasswordRetrieval="false"
you need to provide the right assemblies ( programfiles / microsoft asp.net /webpages / assemblies / ... ) i think and copy them into your bin folder.
the simpliest way is to get a free hosting from the webmatrix official beta hosting services , use webdeploy on them , get all the files that have been deployed and copy them into the hosting you are used to use.
Take note that webmatrix deployment is new to the industy. There is a big chance that your current provider does not yet support the deployment of webmatrix application.
if you have a dedicated enviroment then you are able to atleast setup the "Microsoft Webpages Deployment" setting in IIS7.
If you are using a host that accepts webmatrix applications then use WebDeploy and not ftp. WebDeploy will take care of adding the correct assembelies to the pool when pushed live.
Again, search Microsoft Wedpages Deployment for more information on configuring your own server or dedicated enviroment.
nenvy.com
zettersten.com
client side dev
canvas/html5/js/css
Marked as answer by magicalclick on Oct 22, 2010 03:48 AM
magicalclick
Member
54 Points
50 Posts
Configuration Error AspNetSqlMembershipProvider
Oct 18, 2010 08:34 AM|LINK
Can someone help me out with this? I tried to upload a sample WebMatrix site up to my host, but, I am getting the following error.
To my understanding, I need to have SQLExpress, but, I haven't pay it to my hoster yet. I just want to use SQL Compact for the time being. What should I do?
I also tried launching VS from WebMatrix and trying to use "ASP.Net Configuration", but, like the message, it is saying I have SQL server missing.
I can run the web matrix sample site locally, but, not after I upload it. Can anyone help? Thank you.
=======================================================================================
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: The connection name 'LocalSqlServer' was not found in the applications configuration or the connection string is empty.
Source Error:
Source File: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config Line: 257
eikden
Participant
906 Points
180 Posts
Re: Configuration Error AspNetSqlMembershipProvider
Oct 18, 2010 09:21 AM|LINK
Hi,
Can you provide your web config content? It seem like your connectionstring is incorrect format.
Yeoh Eik Den, MCPD | MCSE
Blog: www.eikden.net
My Linkedin Profile
Please mark as answer if I answer your question.
magicalclick
Member
54 Points
50 Posts
Re: Configuration Error AspNetSqlMembershipProvider
Oct 18, 2010 04:43 PM|LINK
Here it is. It is just the same web.config from the WebMatrix sample with added debuging line. THank you.
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.web> <compilation debug="true" targetFramework="4.0" /> </system.web> <system.data> <DbProviderFactories> <remove invariant="System.Data.SqlServerCe.4.0" /> <add invariant="System.Data.SqlServerCe.4.0" name="Microsoft® SQL Server® Compact 4.0" description=".NET Framework Data Provider for Microsoft SQL Server Compact" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" /> </DbProviderFactories> </system.data> </configuration>magicalclick
Member
54 Points
50 Posts
Re: Configuration Error AspNetSqlMembershipProvider
Oct 19, 2010 04:48 AM|LINK
anyone? pretty please.
camus
Member
209 Points
66 Posts
Re: Configuration Error AspNetSqlMembershipProvider
Oct 19, 2010 09:35 AM|LINK
what sample are you using ?
what web hosting service ?
SimpleBlogCms powered by Razor and WebMatrix
magicalclick
Member
54 Points
50 Posts
Re: Configuration Error AspNetSqlMembershipProvider
Oct 19, 2010 06:09 PM|LINK
I am using WebMatrix StarterSite sample and my provider is DiscountASP.Net
camus
Member
209 Points
66 Posts
Re: Configuration Error AspNetSqlMembershipProvider
Oct 20, 2010 04:07 AM|LINK
are you using webdeploy or ftp to transfer your files ?
SimpleBlogCms powered by Razor and WebMatrix
magicalclick
Member
54 Points
50 Posts
Re: Configuration Error AspNetSqlMembershipProvider
Oct 20, 2010 04:52 AM|LINK
I am using FTP since I don't know how to use webdeploy to the discountasp.net
camus
Member
209 Points
66 Posts
Re: Configuration Error AspNetSqlMembershipProvider
Oct 20, 2010 09:10 AM|LINK
you need to provide the right assemblies ( programfiles / microsoft asp.net /webpages / assemblies / ... ) i think and copy them into your bin folder.
the simpliest way is to get a free hosting from the webmatrix official beta hosting services , use webdeploy on them , get all the files that have been deployed and copy them into the hosting you are used to use.
SimpleBlogCms powered by Razor and WebMatrix
Erik5388
Member
81 Points
84 Posts
Re: Configuration Error AspNetSqlMembershipProvider
Oct 21, 2010 03:16 PM|LINK
Take note that webmatrix deployment is new to the industy. There is a big chance that your current provider does not yet support the deployment of webmatrix application.
if you have a dedicated enviroment then you are able to atleast setup the "Microsoft Webpages Deployment" setting in IIS7.
If you are using a host that accepts webmatrix applications then use WebDeploy and not ftp. WebDeploy will take care of adding the correct assembelies to the pool when pushed live.
Again, search Microsoft Wedpages Deployment for more information on configuring your own server or dedicated enviroment.
zettersten.com
client side dev
canvas/html5/js/css