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.Person alizationAdmini stration.ResetA llState(WebPart s.Personalizati onScope.User)
Here is my personalization node from the web.config:
<personalizatio n defaultProvider ="AspNetSqlPers onalizationProv ider">
<!-- Providers may only be defined at the application level -->
<providers>
<clear/>
<remove name="AspNetSql Personalization Provider"/>
<add name="AspNetSql Personalization Provider"
type="System.We b.UI.WebControl s.WebParts.SqlP ersonalizationP rovider"
connectionStrin gName="SQLConne ctionString"
applicationName ="EBMSIntran et"/>
</providers>
<authorizatio n>
<deny users="*" verbs="enterSha redScope"/>
<allow users="*" verbs="modifySt ate"/>
</authorization>
</personalization >
And the relevant connection string:
<add name="SQLConnec tionString"
connectionStrin g="Server=SERVE R;Database=aspn etdb;UID=User;P wd=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 1 1774
Oh my gosh, i knew it would be easy . . . here is my great solution.
Simply add:
Personalization-Enabled="true" Personalization-InitialScope="U ser"
to the webpartmanager. Sheesh, like I said, at least it was an easy
solution.
Thanks anyway,
Ryan ry*********@gma il.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.Person alizationAdmini stration.ResetA llState(WebPart s.Personalizati onScope.User)
Here is my personalization node from the web.config:
<personalizatio n defaultProvider ="AspNetSqlPers onalizationProv ider"> <!-- Providers may only be defined at the application level --> <providers> <clear/> <remove name="AspNetSql Personalization Provider"/> <add name="AspNetSql Personalization Provider" type="System.We b.UI.WebControl s.WebParts.SqlP ersonalizationP rovider" connectionStrin gName="SQLConne ctionString" applicationName ="EBMSIntran et"/> </providers> <authorizatio n> <deny users="*" verbs="enterSha redScope"/> <allow users="*" verbs="modifySt ate"/> </authorization> </personalization >
And the relevant connection string:
<add name="SQLConnec tionString" connectionStrin g="Server=SERVE R;Database=aspn etdb;UID=User;P wd=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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 it to the the page. The
control outputs a list in a one-column table format. I
need to access the contents of the rows and output them
with restrictions in my own table format. Does anyone
have any examples of manipulating the HTML of a server...
|
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 below and have gone as far as
given EVERYONE full control of the App_Data folder. I am using the default
settings (which I assume is the Cassini web server), so I believe it is a
user permissions problem. Furthermore, if I publish the site...
|
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 to the production server, I
get the following error when trying to run the page on production:
"System.Web.HttpException: The directory '/App_Code' is not allowed
because the application is precompiled."
Anyone know this works fine locally but...
|
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 development on existing and new applications. This environment also has its own Sql Server with dev versions of all our live Databases.
Our live production server also its own Sql Server, these 2 Sql Servers are kept completely separate (for obvious...
|
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 something they weren't
designed for, or it could just be that I don't understand what's going
on well enough to get it to work.
The situation is that I have a page that displays products from a
| |
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 parts, editing
web part properties etc, but I am struggling to find a straightforward
solution - I was hoping that someone out there could shed some light.
It is really straightforward application: A Label should display
content, and the content...
|
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 webparts on a
page.
We need to add the webparts dynamically to the site, depending on the
status of the user: this involves a personalisation of a travel
website, so a user can be "before" a trip, "during" a trip and "after"
a trip, and depending...
|
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 have to logon. But for authorization, I uses an EXISTING
corporate database (nothing to do with aspnet_Membership etc.). In
short, I created GenericIdentity and GenericPrincipal for the
application so the security part works well.
Now my...
|
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 context would be the
development of a service which enables users to select templates that have
pre-established zones which function as content containers on a web page?
PopFly has a "build a web page" service for example. I need something
similar...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |