Newbie: using asp.net 2.0 profile in an ASP.NET web service

Newbie: using asp.net 2.0 profile in an ASP.NET web service

Post by Navin Mish » Wed, 04 Oct 2006 16:08:05


Hi,

Is it possible to use asp.net 2.0 profile in an ASP.NET web service ? I
want to authenticate a user via the web service and store user profile data
using ASP.NET 2.0 profile ? Is it possible at all ?

Thanks in advance and regards

Navin
 
 
 

Newbie: using asp.net 2.0 profile in an ASP.NET web service

Post by Gregory A. » Wed, 04 Oct 2006 22:25:05

Yes, it is possible. You hook the app up to the profile provider and then
add info from the service using the membership and/or profile bits. The main
difference is you generally do not want to hold session in web services like
you might in a web application.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://www.yqcomputer.com/

*************************************************
Think outside of the box!
*************************************************

 
 
 

Newbie: using asp.net 2.0 profile in an ASP.NET web service

Post by Navin Mish » Wed, 04 Oct 2006 22:32:34


Some sample code would help. In a web service, the profile keys added don't
appear as properties of Profile object but in an ASP.NET web app they do.

Thanks in advance and regards

Navin
"Cowboy (Gregory A. Beamer)" < XXXX@XXXXX.COM > wrote in
 
 
 

Newbie: using asp.net 2.0 profile in an ASP.NET web service

Post by Navin Mish » Wed, 11 Oct 2006 05:48:32

Any sample code would really help...thanks in advance!

Navin
 
 
 

Newbie: using asp.net 2.0 profile in an ASP.NET web service

Post by UGVyc2hpbm » Sun, 22 Oct 2006 00:22:02

am having a problem with this as well
What I am trying to do is to have a textbox that a user begins to type what
he is searching for.
I am using an AutoCompleteExtender to call a method in the web service that
queries the database for the field description and pull "like" results.
The problem is that I already have a profile that handles the users profile,
but I need to add another profile for the property dragOverlayPosition.
Here is my web.config: (sorry its long)

<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<!--
The configSections define a section for ASP.NET Atlas.
-->
<configSections>
<sectionGroup name="microsoft.web"
type="Microsoft.Web.Configuration.MicrosoftWebSectionGroup">
<section name="converters"
type="Microsoft.Web.Configuration.ConvertersSection"
requirePermission="false"/>
<section name="webServices"
type="Microsoft.Web.Configuration.WebServicesSection"
requirePermission="false"/>
<section name="authenticationService"
type="Microsoft.Web.Configuration.AuthenticationServiceSection"
requirePermission="false"/>
<section name="profileService"
type="Microsoft.Web.Configuration.ProfileServiceSection"
requirePermission="false"/>
</sectionGroup>
</configSections>
<!--
The microsoft.web section defines items required for the Atlas
framework.
-->
<microsoft.web>
<converters>
<add
type="Microsoft.Web.Script.Serialization.Converters.DataSetConverter"/>
<add
type="Microsoft.Web.Script.Serialization.Converters.DataRowConverter"/>
<add
type="Microsoft.Web.Script.Serialization.Converters.DataTableConverter"/>
</converters>
<webServices enableBrowserAccess="true"/>
<authenticationService enabled="true"/>
<!-- The example application needs the profileService to be enabled and to
specify the dragOverlayPosition property. -->
<profileService enabled="true" setProperties="dragOverlayPosition"
getProperties="dragOverlayPosition"/>
</microsoft.web>
<appSettings>
<add key="Online" value="1"/>
<add key="ReBidLimit" value="20"/>
</appSettings>
<connectionStrings
configProtectionProvider="DataProtectionConfigurationProvider">
<EncryptedData>
<CipherData>

<CipherValue>AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAm9HBmMaT0ka0sma3lHvjeQQAAAACAAAAAAADZgAAqAAAABAAAADICZdWipnIOoLmIKm/TFfGAAAAAASAAACgAAAAEAAAAIWa0+YCYQK2yoMXgXduY6v4AQAABee1Y7Uz9xTwwYaZwZGk0FE+EfK5w6O6ZjbZmAqDdOgXMk6st1S7ZRHmKRcKXIXIht6p7nMWkbnm1S7duVu4/sAEfGDy0S5OgRqr8v2cwZ8VnSe1Yxuoadw58e9+Nid1TWFu0amasyFKXUMJt5WhOs36a6N5mKXndYwWv8JKewH4uhRR52aItD64/iNYNC3fXnA0tbIA08PtPBazyFeXNlgMlQ68llwddmE9cizXlIYzkYkyExvjRhbRiYXMKenkzkFXVZH0+rXyB1JMYKXKGO9516emzk72hz88Cl2TE064i4TnkKSu9WXSiUL705YBdbkfW53wpuaREdobq5105np40iWP6qWdzrULx7I46VWpUcdePfEHc/i3GgfuAW2zNIwyKA1yGRdkrWa22iL+ymdqOP+ExbQ0vctbHTE4AlgmaFVNqdDRCGakMX0jB/nw3S3Q9WWlV1RAWX7Uobm0SNjb7k1E8x5DRgQG/74WGcucGRVXvGU//D+7fu776CW0crdoFC5q3tmLo7EoOFKQNkDkfqk/C7Wklh/2oBVzvTQR9Jhp0M5XUDMXmtGkwAhsDOj/RgkqEKj5bTHb5CRrY91dQQSYEFgJgbvuOyWYT+N2qsPldQxWOjK0GGyb8jk/mxq6i9tKBp2jKWtVaLIayfejIxY76Au6FAAAABq6ejD10wN+VUxBxgESIh2z4oQ+</CipherValue>
</CipherData>
</EncryptedData>
</connectionStrings>
<system.web>
<httpHandlers>