Showing posts with label process. Show all posts
Showing posts with label process. Show all posts

Saturday, March 31, 2012

Strange behavior with activate user in windows 2003 server

Hi,

I code an activate user process who works very great on my computer but when i put it on my server (win server 2003 / SQL server 2005) it doesn't validate (isapproved=true) the user.

Activate.aspx.vb :

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
Dim UserNameEmail As String = Request.QueryString("useremail")
Dim Username As String = Membership.GetUserNameByEmail(UserNameEmail)

If Not String.IsNullOrEmpty(UserNameEmail) Then
Dim usr As MembershipUser = Membership.GetUser(Username)
If Not Nothing Is usr Then
usr.IsApproved = True
Membership.UpdateUser(usr)
Response.Redirect("activate_success.aspx")
Else
Response.Redirect("activate_error.aspx")
End If
Else
Response.Redirect("activate_error.aspx")
End If
Else
Response.Redirect("activate_error.aspx")
End If
End Sub


I don't know why? Someone have an idea please?

Hi,

I need to mention that if i use the UserID for the activation it works:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
Dim UserName As String = Request.Params("USERID")
Dim providerUserKey As Guid = New Guid(UserName)

If Not String.IsNullOrEmpty(UserName) Then
Dim usr As MembershipUser = Membership.GetUser(providerUserKey)
If Not Nothing Is usr Then
usr.IsApproved = True
Membership.UpdateUser(usr)
Response.Redirect("activate_success.aspx")
Else
Response.Redirect("activate_error.aspx")
End If
Else
Response.Redirect("activate_error.aspx")
End If
Else
Response.Redirect("activate_error.aspx")
End If
End Sub

But i want to activate the user with passing only his email and not his UserID because USerID is too confidential...


Ok i understand why it is not working...

Many users can have the same email so the database doesn't know which user to pick...

I will think of that...

Monday, March 26, 2012

Strange effects from IE7 browser freezing on ASP site

I have a strange problem as a result of installeing the beta version of IE7.
Through a process of elimination I am 98% sure IE7 is the cause. What happens
is I have a website that is built with ASP 2.0 and DNN 4.02 There is nothing
added to the site other then the basic install. And actually the site has
been completely deleted from the server and reinstalled since this problem
started and the problem still exist. I can go to my web page and 1 other link
on my site from there and then the browser freezes. IE& was uninstalled and
the problem still exist. Site works fine from any other browser including
IE6.

Has anyone else seens this issue?
If your running IE7 Beta version and are willing to take the time can you
visit the site to see if this happens on your browser too?
AnyIdeas?Whats the URL?

--
Netomatix
http://www.netomatix.com
"Dan" <Dan@.discussions.microsoft.com> wrote in message
news:696AB6B2-8308-4EFD-B8AC-C208152A1B9B@.microsoft.com...
>I have a strange problem as a result of installeing the beta version of
>IE7.
> Through a process of elimination I am 98% sure IE7 is the cause. What
> happens
> is I have a website that is built with ASP 2.0 and DNN 4.02 There is
> nothing
> added to the site other then the basic install. And actually the site has
> been completely deleted from the server and reinstalled since this problem
> started and the problem still exist. I can go to my web page and 1 other
> link
> on my site from there and then the browser freezes. IE& was uninstalled
> and
> the problem still exist. Site works fine from any other browser including
> IE6.
> Has anyone else seens this issue?
> If your running IE7 Beta version and are willing to take the time can you
> visit the site to see if this happens on your browser too?
> AnyIdeas?
www.dtrtechnology.com

"Winista" wrote:

> Whats the URL?
> --
> Netomatix
> http://www.netomatix.com
> "Dan" <Dan@.discussions.microsoft.com> wrote in message
> news:696AB6B2-8308-4EFD-B8AC-C208152A1B9B@.microsoft.com...
> >I have a strange problem as a result of installeing the beta version of
> >IE7.
> > Through a process of elimination I am 98% sure IE7 is the cause. What
> > happens
> > is I have a website that is built with ASP 2.0 and DNN 4.02 There is
> > nothing
> > added to the site other then the basic install. And actually the site has
> > been completely deleted from the server and reinstalled since this problem
> > started and the problem still exist. I can go to my web page and 1 other
> > link
> > on my site from there and then the browser freezes. IE& was uninstalled
> > and
> > the problem still exist. Site works fine from any other browser including
> > IE6.
> > Has anyone else seens this issue?
> > If your running IE7 Beta version and are willing to take the time can you
> > visit the site to see if this happens on your browser too?
> > AnyIdeas?
>
I have tried on different machines with IE7 now and I am able to open your
site fine. Other than slow loading of the page I did not see any issue.

--
Netomatix
http://www.netomatix.com
"Dan" <Dan@.discussions.microsoft.com> wrote in message
news:501BC9E8-7EF9-4F5B-B0BA-B6C74B961824@.microsoft.com...
> www.dtrtechnology.com
> "Winista" wrote:
>> Whats the URL?
>>
>> --
>> Netomatix
>> http://www.netomatix.com
>> "Dan" <Dan@.discussions.microsoft.com> wrote in message
>> news:696AB6B2-8308-4EFD-B8AC-C208152A1B9B@.microsoft.com...
>> >I have a strange problem as a result of installeing the beta version of
>> >IE7.
>> > Through a process of elimination I am 98% sure IE7 is the cause. What
>> > happens
>> > is I have a website that is built with ASP 2.0 and DNN 4.02 There is
>> > nothing
>> > added to the site other then the basic install. And actually the site
>> > has
>> > been completely deleted from the server and reinstalled since this
>> > problem
>> > started and the problem still exist. I can go to my web page and 1
>> > other
>> > link
>> > on my site from there and then the browser freezes. IE& was uninstalled
>> > and
>> > the problem still exist. Site works fine from any other browser
>> > including
>> > IE6.
>>> > Has anyone else seens this issue?
>> > If your running IE7 Beta version and are willing to take the time can
>> > you
>> > visit the site to see if this happens on your browser too?
>> > AnyIdeas?
>>
>>
>
Thank you for checkin.
After logging on you were able tonavigate to more then 1 other page?

"Winista" wrote:

> I have tried on different machines with IE7 now and I am able to open your
> site fine. Other than slow loading of the page I did not see any issue.
> --
> Netomatix
> http://www.netomatix.com
> "Dan" <Dan@.discussions.microsoft.com> wrote in message
> news:501BC9E8-7EF9-4F5B-B0BA-B6C74B961824@.microsoft.com...
> > www.dtrtechnology.com
> > "Winista" wrote:
> >> Whats the URL?
> >>
> >> --
> >> Netomatix
> >> http://www.netomatix.com
> >> "Dan" <Dan@.discussions.microsoft.com> wrote in message
> >> news:696AB6B2-8308-4EFD-B8AC-C208152A1B9B@.microsoft.com...
> >> >I have a strange problem as a result of installeing the beta version of
> >> >IE7.
> >> > Through a process of elimination I am 98% sure IE7 is the cause. What
> >> > happens
> >> > is I have a website that is built with ASP 2.0 and DNN 4.02 There is
> >> > nothing
> >> > added to the site other then the basic install. And actually the site
> >> > has
> >> > been completely deleted from the server and reinstalled since this
> >> > problem
> >> > started and the problem still exist. I can go to my web page and 1
> >> > other
> >> > link
> >> > on my site from there and then the browser freezes. IE& was uninstalled
> >> > and
> >> > the problem still exist. Site works fine from any other browser
> >> > including
> >> > IE6.
> >> >> > Has anyone else seens this issue?
> >> > If your running IE7 Beta version and are willing to take the time can
> >> > you
> >> > visit the site to see if this happens on your browser too?
> >> > AnyIdeas?
> >>
> >>
> >>
>
Yes I went thorugh all your pages and they all showed up.

--
Netomatix
http://www.netomatix.com
"Dan" <Dan@.discussions.microsoft.com> wrote in message
news:0AE2BB20-DDAF-4DFF-9587-A8042B9FD33C@.microsoft.com...
> Thank you for checkin.
> After logging on you were able tonavigate to more then 1 other page?
> "Winista" wrote:
>> I have tried on different machines with IE7 now and I am able to open
>> your
>> site fine. Other than slow loading of the page I did not see any issue.
>>
>> --
>> Netomatix
>> http://www.netomatix.com
>> "Dan" <Dan@.discussions.microsoft.com> wrote in message
>> news:501BC9E8-7EF9-4F5B-B0BA-B6C74B961824@.microsoft.com...
>> > www.dtrtechnology.com
>>> > "Winista" wrote:
>>> >> Whats the URL?
>> >>
>> >> --
>> >> Netomatix
>> >> http://www.netomatix.com
>> >> "Dan" <Dan@.discussions.microsoft.com> wrote in message
>> >> news:696AB6B2-8308-4EFD-B8AC-C208152A1B9B@.microsoft.com...
>> >> >I have a strange problem as a result of installeing the beta version
>> >> >of
>> >> >IE7.
>> >> > Through a process of elimination I am 98% sure IE7 is the cause.
>> >> > What
>> >> > happens
>> >> > is I have a website that is built with ASP 2.0 and DNN 4.02 There is
>> >> > nothing
>> >> > added to the site other then the basic install. And actually the
>> >> > site
>> >> > has
>> >> > been completely deleted from the server and reinstalled since this
>> >> > problem
>> >> > started and the problem still exist. I can go to my web page and 1
>> >> > other
>> >> > link
>> >> > on my site from there and then the browser freezes. IE& was
>> >> > uninstalled
>> >> > and
>> >> > the problem still exist. Site works fine from any other browser
>> >> > including
>> >> > IE6.
>> >>> >> > Has anyone else seens this issue?
>> >> > If your running IE7 Beta version and are willing to take the time
>> >> > can
>> >> > you
>> >> > visit the site to see if this happens on your browser too?
>> >> > AnyIdeas?
>> >>
>> >>
>> >>
>>
>>
>
Thanks.
I can Only assume there is something wasted in my registry or elsewhere
Thanks so much for your time

"Winista" wrote:

> Yes I went thorugh all your pages and they all showed up.
> --
> Netomatix
> http://www.netomatix.com
> "Dan" <Dan@.discussions.microsoft.com> wrote in message
> news:0AE2BB20-DDAF-4DFF-9587-A8042B9FD33C@.microsoft.com...
> > Thank you for checkin.
> > After logging on you were able tonavigate to more then 1 other page?
> > "Winista" wrote:
> >> I have tried on different machines with IE7 now and I am able to open
> >> your
> >> site fine. Other than slow loading of the page I did not see any issue.
> >>
> >> --
> >> Netomatix
> >> http://www.netomatix.com
> >> "Dan" <Dan@.discussions.microsoft.com> wrote in message
> >> news:501BC9E8-7EF9-4F5B-B0BA-B6C74B961824@.microsoft.com...
> >> > www.dtrtechnology.com
> >> >> > "Winista" wrote:
> >> >> >> Whats the URL?
> >> >>
> >> >> --
> >> >> Netomatix
> >> >> http://www.netomatix.com
> >> >> "Dan" <Dan@.discussions.microsoft.com> wrote in message
> >> >> news:696AB6B2-8308-4EFD-B8AC-C208152A1B9B@.microsoft.com...
> >> >> >I have a strange problem as a result of installeing the beta version
> >> >> >of
> >> >> >IE7.
> >> >> > Through a process of elimination I am 98% sure IE7 is the cause.
> >> >> > What
> >> >> > happens
> >> >> > is I have a website that is built with ASP 2.0 and DNN 4.02 There is
> >> >> > nothing
> >> >> > added to the site other then the basic install. And actually the
> >> >> > site
> >> >> > has
> >> >> > been completely deleted from the server and reinstalled since this
> >> >> > problem
> >> >> > started and the problem still exist. I can go to my web page and 1
> >> >> > other
> >> >> > link
> >> >> > on my site from there and then the browser freezes. IE& was
> >> >> > uninstalled
> >> >> > and
> >> >> > the problem still exist. Site works fine from any other browser
> >> >> > including
> >> >> > IE6.
> >> >> >> >> > Has anyone else seens this issue?
> >> >> > If your running IE7 Beta version and are willing to take the time
> >> >> > can
> >> >> > you
> >> >> > visit the site to see if this happens on your browser too?
> >> >> > AnyIdeas?
> >> >>
> >> >>
> >> >>
> >>
> >>
> >>
>
are you using google desktop? if so disable indexing that may work for you.
"Dan" <Dan@.discussions.microsoft.com> wrote in message
news:D7ED38C4-1F95-4EBF-80B6-3BA929E06166@.microsoft.com...
> Thanks.
> I can Only assume there is something wasted in my registry or elsewhere
> Thanks so much for your time
> "Winista" wrote:
>> Yes I went thorugh all your pages and they all showed up.
>>
>> --
>> Netomatix
>> http://www.netomatix.com
>> "Dan" <Dan@.discussions.microsoft.com> wrote in message
>> news:0AE2BB20-DDAF-4DFF-9587-A8042B9FD33C@.microsoft.com...
>> > Thank you for checkin.
>> > After logging on you were able tonavigate to more then 1 other page?
>>> > "Winista" wrote:
>>> >> I have tried on different machines with IE7 now and I am able to open
>> >> your
>> >> site fine. Other than slow loading of the page I did not see any
>> >> issue.
>> >>
>> >> --
>> >> Netomatix
>> >> http://www.netomatix.com
>> >> "Dan" <Dan@.discussions.microsoft.com> wrote in message
>> >> news:501BC9E8-7EF9-4F5B-B0BA-B6C74B961824@.microsoft.com...
>> >> > www.dtrtechnology.com
>> >>> >> > "Winista" wrote:
>> >>> >> >> Whats the URL?
>> >> >>
>> >> >> --
>> >> >> Netomatix
>> >> >> http://www.netomatix.com
>> >> >> "Dan" <Dan@.discussions.microsoft.com> wrote in message
>> >> >> news:696AB6B2-8308-4EFD-B8AC-C208152A1B9B@.microsoft.com...
>> >> >> >I have a strange problem as a result of installeing the beta
>> >> >> >version
>> >> >> >of
>> >> >> >IE7.
>> >> >> > Through a process of elimination I am 98% sure IE7 is the cause.
>> >> >> > What
>> >> >> > happens
>> >> >> > is I have a website that is built with ASP 2.0 and DNN 4.02 There
>> >> >> > is
>> >> >> > nothing
>> >> >> > added to the site other then the basic install. And actually the
>> >> >> > site
>> >> >> > has
>> >> >> > been completely deleted from the server and reinstalled since
>> >> >> > this
>> >> >> > problem
>> >> >> > started and the problem still exist. I can go to my web page and
>> >> >> > 1
>> >> >> > other
>> >> >> > link
>> >> >> > on my site from there and then the browser freezes. IE& was
>> >> >> > uninstalled
>> >> >> > and
>> >> >> > the problem still exist. Site works fine from any other browser
>> >> >> > including
>> >> >> > IE6.
>> >> >>> >> >> > Has anyone else seens this issue?
>> >> >> > If your running IE7 Beta version and are willing to take the time
>> >> >> > can
>> >> >> > you
>> >> >> > visit the site to see if this happens on your browser too?
>> >> >> > AnyIdeas?
>> >> >>
>> >> >>
>> >> >>
>> >>
>> >>
>> >>
>>
>>
>

Strange effects from IE7 browser freezing on ASP site

I have a strange problem as a result of installeing the beta version of IE7.
Through a process of elimination I am 98% sure IE7 is the cause. What happen
s
is I have a website that is built with ASP 2.0 and DNN 4.02 There is nothing
added to the site other then the basic install. And actually the site has
been completely deleted from the server and reinstalled since this problem
started and the problem still exist. I can go to my web page and 1 other lin
k
on my site from there and then the browser freezes. IE& was uninstalled and
the problem still exist. Site works fine from any other browser including
IE6.
Has anyone else seens this issue?
If your running IE7 Beta version and are willing to take the time can you
visit the site to see if this happens on your browser too?
AnyIdeas?Whats the URL?
Netomatix
http://www.netomatix.com
"Dan" <Dan@.discussions.microsoft.com> wrote in message
news:696AB6B2-8308-4EFD-B8AC-C208152A1B9B@.microsoft.com...
>I have a strange problem as a result of installeing the beta version of
>IE7.
> Through a process of elimination I am 98% sure IE7 is the cause. What
> happens
> is I have a website that is built with ASP 2.0 and DNN 4.02 There is
> nothing
> added to the site other then the basic install. And actually the site has
> been completely deleted from the server and reinstalled since this problem
> started and the problem still exist. I can go to my web page and 1 other
> link
> on my site from there and then the browser freezes. IE& was uninstalled
> and
> the problem still exist. Site works fine from any other browser including
> IE6.
> Has anyone else seens this issue?
> If your running IE7 Beta version and are willing to take the time can you
> visit the site to see if this happens on your browser too?
> AnyIdeas?
www.dtrtechnology.com
"Winista" wrote:

> Whats the URL?
> --
> Netomatix
> http://www.netomatix.com
> "Dan" <Dan@.discussions.microsoft.com> wrote in message
> news:696AB6B2-8308-4EFD-B8AC-C208152A1B9B@.microsoft.com...
>
>
I have tried on different machines with IE7 now and I am able to open your
site fine. Other than slow loading of the page I did not see any issue.
Netomatix
http://www.netomatix.com
"Dan" <Dan@.discussions.microsoft.com> wrote in message
news:501BC9E8-7EF9-4F5B-B0BA-B6C74B961824@.microsoft.com...
> www.dtrtechnology.com
> "Winista" wrote:
>
Thank you for checkin.
After logging on you were able tonavigate to more then 1 other page?
"Winista" wrote:

> I have tried on different machines with IE7 now and I am able to open your
> site fine. Other than slow loading of the page I did not see any issue.
> --
> Netomatix
> http://www.netomatix.com
> "Dan" <Dan@.discussions.microsoft.com> wrote in message
> news:501BC9E8-7EF9-4F5B-B0BA-B6C74B961824@.microsoft.com...
>
>
Yes I went thorugh all your pages and they all showed up.
Netomatix
http://www.netomatix.com
"Dan" <Dan@.discussions.microsoft.com> wrote in message
news:0AE2BB20-DDAF-4DFF-9587-A8042B9FD33C@.microsoft.com...
> Thank you for checkin.
> After logging on you were able tonavigate to more then 1 other page?
> "Winista" wrote:
>
Thanks.
I can Only assume there is something wasted in my registry or elsewhere
Thanks so much for your time
"Winista" wrote:

> Yes I went thorugh all your pages and they all showed up.
> --
> Netomatix
> http://www.netomatix.com
> "Dan" <Dan@.discussions.microsoft.com> wrote in message
> news:0AE2BB20-DDAF-4DFF-9587-A8042B9FD33C@.microsoft.com...
>
>
are you using google desktop? if so disable indexing that may work for you.
"Dan" <Dan@.discussions.microsoft.com> wrote in message
news:D7ED38C4-1F95-4EBF-80B6-3BA929E06166@.microsoft.com...
> Thanks.
> I can Only assume there is something wasted in my registry or elsewhere
> Thanks so much for your time
> "Winista" wrote:
>

strange error - deadlock

HI Y'all,

I get following error and i'm kinda worried:

Transaction (Process ID 194) was deadlocked on lock | communication buffer resources with another process and has been chosen as the deadlock victim. Rerun the transaction.

Anyone ever saw this?

Thanks

Hi,

I saw this sometimes in our environment. What happened is the following: if you have 5 (the number doesn't implicate anything, it could be 2) web applications accessing the same database table at the same time and for some reason one of them is not be able to commit the process, as such all the other applications will be waiting for this process to commit which creates a dead lock in a sense all the applications are waiting for this process and the process it self is waiting to be completed. The only solution in this case is that the database server will stop the deadlock process.

Regards


It appears that the n number of transactions you are using, one of them is blocking operations on the other.
Transactions can be notorious as some of the tend to lock the whole table which is why any other processes trying to access data from that (locked) table it has to wait until the lock is released.

To solve this analyse all the points in your source code which use transactions. Go through each one and make sure the Transaction scope it as small as possible (Small meaning as little work is done there as possible).
This could mean you are declaring variables, doing some complex calculations etc. If you could move all of this outside the scope of the transaction you will end up avoiding this issue. If the transactions are not in the code but in stored proc do the same thing with the SQL scripts. There is a possibility that the table does not have sufficient index, add some indexes to speed up the queries.

Also if SQL Server is being used that would mean there is a possibility that the version you are using has connection limits and hence you app is waiting for a conn to be available, check the documentation of your SQL Server version for this.

Goodluck