It seems from the path that this line is read from your computer's default web.config. Try to add the personalization node to your site's web config and use "EPiServerDB" (the default when installing EPiServer), or whatever your connection string is called, as connectionStringName. Then that section should be read from your site's config instead of the default config.
Webparts and personalization is added to web.config nad the connectionStringName="EPiServerDB".
In the connectionstring.config file I added <remove name="LocalSqlServer" /> as the first line inside the connectionstring section.
Webpart configuration:
<webParts>
<personalization defaultProvider="EPiServerPersonalizationProvider">
<providers>
<add name="EPiServerPersonalizationProvider" type="EPiServer.WebParts.Core.EPiServerPersonalizationProvider" connectionStringName="EPiServerDB" />
</providers>
<authorization>
<allow verbs="enterSharedScope" roles="WebAdmins, WebEditors, Administrators" />
</authorization>
</personalization>
</webParts>
I'm not supposed to have webparts enabled in my website so I really want to remove it, but I can't seem to find what causes the problem.
I know that "LocalSqlServer" is the default connectionstringname, but isn't it a way to bypass this?
I thought
<remove name="LocalSqlServer" />
should take care of this...
I'm sorry, I got the personalization mixed up with the profile... So I have no idea really, I'm afraid.
Using remove on the connectionstring in connectionstrings.config probably won't help though, since it is looking for the key "LocalSqlServer". Rather, you should ADD that to your connectionStrings.config, that way it is at least found. If it doesn't point to a valid database you could get other errors of course so it doesn't necessarily solve the problem, but it could remove the immediate error.
Hi. Have you tried adding <clear /> first in the <providers> section? That should do the trick!
<providers>
<clear/>
<add name="EPiServerPersonalizationProvider" type="EPiServer.WebParts.Core.EPiServerPersonalizationProvider" connectionStringName="EPiServerDB" />
</providers>
HMMMM! With a big H. I'm sure I tried this yesterday, but with no luck. It worked today.
Perhaps there was some kind of caching involved.
I knew it was something simple.
Well, thank you for helping out, Tore!
Great to hear that you solved your problem!
Strange that it did not work yesterday. Do you have it in an external config file <webParts configSource="webParts.config" />? If so, the change was probably not read because you need to restart the application to trigger it read the external config files again.
Thanks for the tip Tore. Yes, I know that you have to restart the application, but it wasn't in an external config file.
It's a mistery why it didn't work. As long as it works, I don't care what the problem was.
Thanks again, Tore! :)
Hi,
I am new to using the webparts in EPiServer CMS 6.Actually i follwed the below link
http://tedgustaf.com/en/blog/2008/8/using-web-parts-in-episerver/
for installing,using and creating our own webpart......everything works fine.....but the issue is regarding to clock webpart it is not diplaying the Edit option along with Minimise,Delete options.......i followed the guidelines what is mentioned in that article.....still why i am lacking that option?Can any one figure out this?..............
Hi,
I tried to enable webparts in my solution the other day, and now I get an error that
I have a hard time to remove.
The error is shown below. I just can't find the error in my solution.
I have removed the tag for webparts in web.config, but I still get the error.
Anybody that have experienced this??
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 specified connectionStringName, 'LocalSqlServer', was not registered.
Source Error:
Source File: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Config\web.config Line: 317