I am trying to initialize a singleton class in my azure web role. I tried initializing it in Role.OnStart, but OnStart is called as part of WallSHost.exe process and the requests coming to the role go to w3wp.exe process, where the singleton class is not initialized yet. So it gets initialized when the first request comes to the role. But I am in a situation where the singleton object should be initialized before the first request comes to the role. Application_Start runs as part of w3wp.exe I guess, but Application_start runs only when first request comes to the role. So is there anyway to initialize the singleton object in w3wp.exe before first request comes to the role.
Initialize objects in w3wp.exe process of azure role
41 Views Asked by Sai Sunder At
0
There are 0 best solutions below
Related Questions in AZURE
- How to update to the latest external Git in Azure Web App?
- I need an azure product that executes my intensive ffmpeg command then dies, and i only get charged for the delta. Any Tips?
- Inject AsyncCollector into a service
- mutual tls authentication between app service and function app
- Azure Application Insights Not Displaying Custom Logs for Azure Functions with .NET 8
- Application settings for production deployment slot in Azure App Services
- Encountered an error (ServiceUnavailable) from host runtime on Azure Function App
- Implementing Incremental consent when using both application and delegated permissions
- Invalid format for email address in WordPress on Azure app service
- Producer Batching Service Bus Vs Kafka
- Integrating Angular External IP with ClusterIP of .NET microservices on AKS
- Difficulty creating a data pipeline with Fabric Datafactory using REST
- Azure Batch for Excel VBA
- How to authenticate only Local and Guest users in Azure AD B2C and add custom claims in token?
- Azure Scale Sets and Parallel Jobs
Related Questions in INITIALIZATION
- How do I initialise a class within a class
- Initializing problem with a variable for a distance calculator in Java with if and else statement
- Is there are a way to determine process stages from inside a library
- Could an unitialized pointer be a NULL pointer?
- Initialization of an empty Bash indexed array
- Flutter dropdownMenue with conditions
- How to migrate to standalone in angular
- for loop initialization failure
- Why does my console.log output the incorrect HTML slider value in JavaScript?
- Why does VS Code give me this error? : non-aggregate type 'list<int>' cannot be initialized with an initializer listgcc
- Initialize std::array of certain type, but any size?
- Why would anyone declare a variable before defining it? Please provide example
- Why is clang-tidy giving me an uninitialized error for this c++ code?
- Why is my C++ program running fine with the debugger but not without it?
- Is there a way trough some method or property to postopone initialization of setGrid method of some ChildComponent in Angular?
Related Questions in AZURE-WEB-ROLES
- Publishing Azure Cloud Services (extended support) from Visual Studio fails - Object reference not set to an instance of an object
- How to give read-only access to Azure application insight logs to a user?
- Azure RBAC: Error renewing website certificate (Let's Encrypt)
- Error: The client does not have authorization to perform action 'Microsoft.Web/sites/config/list/action'
- Azure solution for hosting TCP server
- Can't access Identity Provider in Azure App Service Authentication menu
- No Web Role for Visual Studio 2022 Azure Cloud Service
- Options for doing App Services health check for WebJob application
- Azure permission missing Microsoft.Web/sites/host/properties/read
- Access specific web role node on Azure Cloud Service
- Azure global admin cannot(disabled) add roles under "Access Control(IAM)"
- CreateIfNotExists() of CloudBlobContainer always throw status code 400
- Cloud Service Warmup using IIS
- ASP.Net Core MVC Web application roles management
- Azure Default Reader vs Built-in Monitoring Reader
Related Questions in W3WP.EXE
- one or more threads of w3wp.exe are waiting to finish network I/O
- Visual Studio 2017 throws error on debugging an ASP.NET MVC application
- The file is locked by: "w3wp.exe" after windows update
- VB.net aspX image resize and created file permission denied
- CPU usage of w3wp suddenly rise high when user force quit browser during request
- Can not debug with attach to process VS Pro 2017
- process serving application pool suffered a fatal communication error 5011
- W3wp.exe is running high memory
- Attach debugger to app pool on recycle
- Initialize objects in w3wp.exe process of azure role
- w3wp.exe process missing "Script" type
- Debugging a solution with multiple projects
- Getting an Error in my event log of Team Foundation Server
- Overall CPU utilization is over the threshold in IIS 7.5
- Is it possible that w3wp.exe deleted my files?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?