Questions tagged [global-asax]

A special file in the ASP.NET framework, it provides a simplified interface to create hooks into system events in the life cycle of a web application and web pages in that application.

A special file in the ASP.NET framework, it provides a simplified interface to create hooks into system events in the life cycle of a web application and web pages in that application.

Most often used to define resources which need to be globally defined for use by all web pages and services.

1047 questions
-1
votes
1 answer

Session expire DateTime is the same for all logged in users, how to prevent that?

Session expire DateTime is the same for all logged in users, so when one user session expire, it seems to be expiring for all users because it records the same session expire datetime in the database. I am using InProc mode and the session expire…
MswatiLomnyama
  • 1,326
  • 2
  • 13
  • 19
-1
votes
1 answer

Problem about Global.asax problem after deploy to Azure

I have realized that after I deploy my project to Azure. The connection string of global.asax is not function and cause that the page that I use sql command for feature purpose were gone and cannot function. How can I fix it? Can the experiencer…
ZT Chuah
  • 9
  • 6
-1
votes
1 answer

global.asax not working on idle time

i am working on global.asax in mvc, what issues i'm facing is,i have set a scheduler to start global and its working well but after starting the global i got data, but suppose data is not available upto next 20 min global process has stopped. now…
-1
votes
1 answer

Rewrite URL in web.Config c#

I'd like to rewrite a url to match the exact name of the file name of the page. I mean: I've a http://example.com/PagePage.aspx, and on typing on the browser bar http://example.com/pagepage.aspx I'd like to obtain again…
Nick
  • 25
  • 1
  • 2
  • 6
-1
votes
2 answers

How to get caller caller IP address in Application_Start

How to get caller IP addres in ASP.NET MVC4 Global.asax.cs Application_Start event ? HttpContext.Current.Request object is not available there. Thread.CurrentPrincipal.Identity exists. I want to log user name and IP address which were used to…
Andrus
  • 26,339
  • 60
  • 204
  • 378
-1
votes
1 answer

IIS and Windows authentication not allowing error pages

I have been trying this from last two days. I am not getting whats the problem. I searched the web but didn't find any solution. i tried all the settings of IIS like "Moving negotiate down, disable other authentication" but doesn't work. SO here is…
Rebecca
  • 159
  • 1
  • 4
  • 13
-1
votes
1 answer

Switching from HTTP to HTTPS automatically in ASP.NET

How to switch from HTTP to HTTPS automatically in ASP.NET? Also no need to do same thing in Local connection
RASKOLNIKOV
  • 732
  • 2
  • 9
  • 20
-1
votes
1 answer

Global.asax class gone

Not very experienced but lets give it a shot! Excuse the text. I am making a Web application and I clicked on "Clean" on the project.csproj. Not knowing what i did I restarted my web application on IIS and I got a message saying this. Description:…
THchen
  • 11
  • 1
  • 6
-1
votes
1 answer

Use GetLastError() to retrieve custom exception properties

So I've created a custom exception class (let's call it CustomException) along with some custom properties not found in the Exception class. In the global.asax.cs file there is the Application_Error method that is called whenever an exception…
-2
votes
1 answer

Calling a stored procedure from global.asax file

Hello I had developed the below code to save the dataset in Global.asax file. To consume that in webpage.aspx.vb file, now it is working fine. In the similar way, how could I call the stored procedure in Global.asax? Please help, Thank You in…
Software Enginner
  • 675
  • 2
  • 14
  • 43
-3
votes
1 answer

Razor Project on with CSHTML files

A project kind of landed on my hands and I am having issues with one thing. I have an already working project that is installed on a local server. I am able to make changes to existing pages, but I just tried creating a new page from copying an…
Cesar
  • 1
-3
votes
1 answer

MVC - Input string was not in a correct format - Application_Error - Global.asax

I do not know where this exception is being thrown. I intercept the exception in Application_Error. Application_Error is called after the page is fully loaded. It occurs on any page. Code of Application_Error: protected void Application_Error(object…
user3812703
1 2 3
69
70