Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Protection of specific files in local
Message
From
05/07/2006 11:21:15
 
 
To
05/07/2006 10:02:05
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01133718
Message ID:
01133852
Views:
15
I have found why the restrictions are not being interpreted from the web.config file. I have a global.asax which looks like this:
<object id="LXFramework" runat="server" class="Framework.Framework.App" scope="Application" />

<script runat=server>

    Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
        LXFramework.nApplicationMode = 3
        LXFramework.oServer = Server
        LXFramework.Initialize()
    End Sub

    Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)
        LXFramework.oRequest = Request
        LXFramework.oResponse = Response
        LXFramework.oServer = Server
        LXFramework.BeginRequest()
    End Sub
    
    Sub Application_EndRequest(ByVal sender As Object, ByVal e As EventArgs)
        LXFramework.oResponse.Write(LXFramework.GetJavascriptMessage)
        LXFramework.EndRequest()
    End Sub

    Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
        LXFramework.LogError()
    End Sub

    Sub Application_PreRequestHandlerExecute(ByVal sender As Object, ByVal e As EventArgs)
        Dim loPage As System.Web.UI.Page = Context.Handler
        LXFramework.oPage = loPage
    End Sub
   
</script>
The way it is now, it will work if I comment the BeginRequest, Error and PreRequestHandlerExecute sections. But, if I use the file as is, this will make global.asax to take over the file, try to interpret it, before web.config has priority. So, basically, my global.asax is conflicting with the web.config file. But, I really need the global.asx file to be as is. Is there a way to have my global.asx to be as is and still have web.config to take priority over the restrictions I will put in the httpHandlers?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform