473,379 Members | 1,245 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

ASP.NET Webparts application + Publish site = loose page content

Hi all, I have a strange problem and I think it may be something in my
web.config . . . but I'm not sure.

I have an application that uses webpart (not sharepoint), but the nifty
new .net webparts . . . and it works great, we are using sql server for
the personalization provider. Parts can be added and used, not obvious
error. Close the page open it back up; everything is there. When we
debug or publish the project, all of my zones are empty and the site is
back to the default setup, just like if I pulled a:

WebParts.PersonalizationAdministration.ResetAllSta te(WebParts.PersonalizationScope.User)

Here is my personalization node from the web.config:

<personalization defaultProvider="AspNetSqlPersonalizationProvider" >
<!-- Providers may only be defined at the application level -->
<providers>
<clear/>
<remove name="AspNetSqlPersonalizationProvider"/>
<add name="AspNetSqlPersonalizationProvider"
type="System.Web.UI.WebControls.WebParts.SqlPerson alizationProvider"
connectionStringName="SQLConnectionString"
applicationName="EBMSIntranet"/>
</providers>
<authorization>
<deny users="*" verbs="enterSharedScope"/>
<allow users="*" verbs="modifyState"/>
</authorization>
</personalization>

And the relevant connection string:

<add name="SQLConnectionString"
connectionString="Server=SERVER;Database=aspnetdb; UID=User;Pwd=super-secret-password;"/>

I hope it is something easy i need to add or remove . . . thank you for
any help you can offer.

Have a great weekend,
Ryan

Jun 16 '06 #1
1 1759
Oh my gosh, i knew it would be easy . . . here is my great solution.
Simply add:

Personalization-Enabled="true" Personalization-InitialScope="User"

to the webpartmanager. Sheesh, like I said, at least it was an easy
solution.

Thanks anyway,

Ryan

ry*********@gmail.com wrote:
Hi all, I have a strange problem and I think it may be something in my
web.config . . . but I'm not sure.

I have an application that uses webpart (not sharepoint), but the nifty
new .net webparts . . . and it works great, we are using sql server for
the personalization provider. Parts can be added and used, not obvious
error. Close the page open it back up; everything is there. When we
debug or publish the project, all of my zones are empty and the site is
back to the default setup, just like if I pulled a:

WebParts.PersonalizationAdministration.ResetAllSta te(WebParts.PersonalizationScope.User)

Here is my personalization node from the web.config:

<personalization defaultProvider="AspNetSqlPersonalizationProvider" >
<!-- Providers may only be defined at the application level -->
<providers>
<clear/>
<remove name="AspNetSqlPersonalizationProvider"/>
<add name="AspNetSqlPersonalizationProvider"
type="System.Web.UI.WebControls.WebParts.SqlPerson alizationProvider"
connectionStringName="SQLConnectionString"
applicationName="EBMSIntranet"/>
</providers>
<authorization>
<deny users="*" verbs="enterSharedScope"/>
<allow users="*" verbs="modifyState"/>
</authorization>
</personalization>

And the relevant connection string:

<add name="SQLConnectionString"
connectionString="Server=SERVER;Database=aspnetdb; UID=User;Pwd=super-secret-password;"/>

I hope it is something easy i need to add or remove . . . thank you for
any help you can offer.

Have a great weekend,
Ryan


Jun 16 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Barbara Alderton | last post by:
I am working with SharePoint 2003. I am using (using C#) an existing webpart as a child control (server control). I need to access/manipulate the HTML that the control outputs prior to rendering...
1
by: Astera | last post by:
I seem to be having a problem using web parts after the beta 2 release. Any time I try to have the WebPartManager on any page, I get the exception listed below. I've gone through the steps listed...
11
by: Steve Franks | last post by:
I'm using VS.NET 2005 Beta 2. I have a helper C# class I wrote that I placed in my /App_Code directory. Everything runs fine locally. However when I use the "Copy Web" function to upload the site...
8
by: Graham | last post by:
I noticed a similar post awhile ago and in terms of my problem it wasnt a suitable answer so I will ask again. I have VS2005 running a on development machine in my office where I do all my...
0
by: Alan Silver | last post by:
Hello, Sorry for the long post, but I want to try and explain it clearly... I'm using webparts for (possibly) an unusual scenario, and I'm having problems. This could be because I'm doing...
0
by: dotnetstevo | last post by:
I have a question relating to WebParts implementation - I am trying to build a web part as a user control that can be used to manage content in a CMS. I have read a lot about the creation of web...
3
by: Bart Van Hemelen | last post by:
I'm working on a project where the user of a site will receive custom content, depending on a set of parameters. The content will all be contained in UserControls (.ascx), that will be used as...
3
by: Q. John Chen | last post by:
I have an INTRAnet site that need to add some content management feature. And I thought that I can use the WebParts. Since this is an internal site, I use Windows authentication so the use don't...
3
by: clintonG | last post by:
Why don't we see more WebParts being used on the web? SharePoint gets all the fun? And what are the prevailing opinions be they what they may about the use of WebParts rather than WPF when the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.