Re. Global.Asax not working Server Side

J

Jimmy Jazz

Hello,

Using cookieless roles based security.

Setting

HttpContext.Current.User = New GenericPrincipal(id, Split(userData, ",
"))

in Global.asax Application_AuthenticateRequest

On my desktop works fine. Server side nada.

Any ideas?

Thanx Jim
 
J

Jimmy Jazz

Hello,

Answering my own problem after two sleepless nights.

Global.asax must be placed in root of virtual directory.

Had to completely rebuild virtual directory (contrary to Micosoft
documentation) in order to get changes to stick. Most likely setting
on the server side.

Microsoft documentation states any editing of global.asax will
automatically reset app.. Not so on the server I was working on.

Jim
 
D

Dominick Baier [DevelopMentor]

Hello Jimmy,

another option would be to package that as an HttpModule.
 
D

Dominick Baier [DevelopMentor]

Hello Jimmy,

editing of global.asax will not recycle the AppDomain - editing of web.config
will, though
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,143
Messages
2,570,822
Members
47,368
Latest member
michaelsmithh

Latest Threads

Top