I think you are kinda missing my point in my previous post. There is no need to call the membership provider - the user's authentification , username etc is already in sessionstate information past back from the browser. Since all you are looking for is the
user name it is quicker and easier to pull it from the httpcontext versus membership provider. Unless you were explicitly pulling back roles and doing a check (which your code does not) - why make it more complicated than need be?
I'm experiencing the Sys.WebForms.PageRequestManagerParserErrorException as well after upgrading to final 1.0 release of ASP.NET AJAX (Worked fine with RC1). But the exeption only occurs with the Safari browser. My page works fine with IE 6/7, Opera 9 and
Firefox 1.5/2 (the browsers i've tested). Anyone experiencing the same issue with Safari?
Can any of the MS AJAX developers comment on what has changed in the UpdatePanel between Beta2 and RTM? While setting cacheRolesInCookie=false does work, it's really not a solution. The last thing I want to do is cause constant requerying of our already overloaded
ldap server, not to mention the extra page load delays involved in doing so.
I'm having this same issue with the final release, but I am not using roles, I'm using Windows authentication. It happens when I use the ModalPopupExtender and write data into the Session object during the closing of the popup. It only happens once.
Any ideas?
David
David McCarter
Microsoft MVP
dotNetTips.com
http://www.codeplex.com/dotNetTips
I'm having this same issue with the final release, but I am not using roles, I'm using Windows authentication. It happens when I use the ModalPopupExtender and write data into the Session object during the closing of the popup. It only happens once.
Any ideas?
David
I am also using Window authentication and still haven't had any luck with this issue.
I use the built in SqlMembership and SqlRoleProviders and had constant parsererrors. By removing the cacheroles in cookies I no longer have the parsererrors. That was obscure... Thanks!
When you ask a question, remember to click "mark as answered" when you get a reply which answers your question; this ensures the right forum member gets credit below for being helpful (and makes search more relevant too).
I am having the same issue, and while I am using roles, and the page that I am having problems with manipulates users and their roles, I am NOT using a custom provider for roles. I am using the builtin ASP.NET Sql Role provider, and a connection to my SQL
db to store roles data.
My web.config, as it pertains to roles looks like:
As for my page, it contains 3 update panels (all set to conditional updating). One panel contains un-editable user information. The 2nd lists all roles with checkboxes and a save button, allowing the admin to select which roles to put a user in. The 3rd
is a list of linkbuttons to perform actions on a user (such as set IsApproved to true or false, or to unlock a locked out user).
It's a pretty straightforward page setup. I was running into the error mentioned in this thread, and tried all the suggestions I've read here. First, I made sure that there are no Response.Write() calls in my page anywhere. Secondly, I switched the cacheRolesInCookie
attribute in the roleManager to false. But I still get the same issue? Anything else I can try?
The Wheel is turning and you can't slow it down, can't let go and you can't hold on. You Can't go back, and you can't stand still, If the thunder don't get ya then the lightning will!
jodywbcb
Contributor
4482 Points
985 Posts
Re: How to resolve "Sys.WebForms.PageRequestManagerParserErrorException" issue
Jan 30, 2007 12:03 AM|LINK
My Blogs on .Net 2.0 and Ajax
http://csk.wbcb.com
http://ArtbyJody.com
liquidboy
Member
31 Points
13 Posts
Re: How to resolve "Sys.WebForms.PageRequestManagerParserErrorException" issue
Jan 30, 2007 12:12 AM|LINK
oh yeah i missed that snippet of code ..
thanks ill do it that way..
masthy
Member
2 Points
1 Post
Re: How to resolve "Sys.WebForms.PageRequestManagerParserErrorException" issue
Jan 30, 2007 01:12 PM|LINK
I'm experiencing the Sys.WebForms.PageRequestManagerParserErrorException as well after upgrading to final 1.0 release of ASP.NET AJAX (Worked fine with RC1). But the exeption only occurs with the Safari browser. My page works fine with IE 6/7, Opera 9 and Firefox 1.5/2 (the browsers i've tested). Anyone experiencing the same issue with Safari?
Safari UpdatePanel PageRequestManagerParserErrorException
danehrig
Member
85 Points
53 Posts
Re: How to resolve "Sys.WebForms.PageRequestManagerParserErrorException" issue
Jan 31, 2007 07:26 PM|LINK
Rama Krishna
Participant
1277 Points
307 Posts
Re: How to resolve "Sys.WebForms.PageRequestManagerParserErrorException" issue
Jan 31, 2007 07:36 PM|LINK
Hi
I have posted more details here:
http://forums.asp.net/thread/1555817.aspx
It;s actualyy as bug in the role manager
sddavidm
Member
41 Points
47 Posts
Re: How to resolve "Sys.WebForms.PageRequestManagerParserErrorException" issue
Feb 01, 2007 04:35 PM|LINK
I'm having this same issue with the final release, but I am not using roles, I'm using Windows authentication. It happens when I use the ModalPopupExtender and write data into the Session object during the closing of the popup. It only happens once.
Any ideas?
David
Microsoft MVP
dotNetTips.com
http://www.codeplex.com/dotNetTips
llee
Member
2 Points
1 Post
Re: How to resolve "Sys.WebForms.PageRequestManagerParserErrorException" issue
Feb 01, 2007 08:10 PM|LINK
I am also using Window authentication and still haven't had any luck with this issue.
michiel1978
Participant
1205 Points
250 Posts
Re: How to resolve "Sys.WebForms.PageRequestManagerParserErrorException" issue
Feb 05, 2007 02:45 PM|LINK
@jkuhlz and all others:
I use the built in SqlMembership and SqlRoleProviders and had constant parsererrors. By removing the cacheroles in cookies I no longer have the parsererrors. That was obscure... Thanks!
wsmonroe
Member
132 Points
56 Posts
Re: How to resolve "Sys.WebForms.PageRequestManagerParserErrorException" issue
Feb 05, 2007 05:30 PM|LINK
I am having the same issue, and while I am using roles, and the page that I am having problems with manipulates users and their roles, I am NOT using a custom provider for roles. I am using the builtin ASP.NET Sql Role provider, and a connection to my SQL db to store roles data.
My web.config, as it pertains to roles looks like:
As for my page, it contains 3 update panels (all set to conditional updating). One panel contains un-editable user information. The 2nd lists all roles with checkboxes and a save button, allowing the admin to select which roles to put a user in. The 3rd is a list of linkbuttons to perform actions on a user (such as set IsApproved to true or false, or to unlock a locked out user).
It's a pretty straightforward page setup. I was running into the error mentioned in this thread, and tried all the suggestions I've read here. First, I made sure that there are no Response.Write() calls in my page anywhere. Secondly, I switched the cacheRolesInCookie attribute in the roleManager to false. But I still get the same issue? Anything else I can try?
liquidboy
Member
31 Points
13 Posts
Re: How to resolve "Sys.WebForms.PageRequestManagerParserErrorException" issue
Feb 05, 2007 09:17 PM|LINK
rama khrishna (sorry if i spelt it wrong) talked about the workaround solution here
http://forums.asp.net/thread/1555817.aspx
I implemented the application_onerror one and trapped only for the one that mattered to me..
good luck!!!