Hi guys. I have added the following class to the app_code in order to assign a role to new members after they are created. It works great on my local system, but the ApplicationStarted never runs when the code is executed on my Unoeuro hosted site. The log entries aren't added to the log file, which is why I believe ApplicationStarted does not run at all (in other parts of the code, log entries are added just fine).
Any ideas as to what can be wrong?
Btw. to make sure the application has restarted, I "touched" the web.config file.
An update after I fiddled around with it some more: I changed the Build Action in VS2010 on the .cs file of the above mentioned class to "compile" from "content" and now it does actually run the ApplicationStarted on my Unoeuro site. However on my local system it now runs twice! Any ideas?
ApplicationStarted never runs
Hi guys. I have added the following class to the app_code in order to assign a role to new members after they are created. It works great on my local system, but the ApplicationStarted never runs when the code is executed on my Unoeuro hosted site. The log entries aren't added to the log file, which is why I believe ApplicationStarted does not run at all (in other parts of the code, log entries are added just fine).
Any ideas as to what can be wrong?
Btw. to make sure the application has restarted, I "touched" the web.config file.
Code below:
An update after I fiddled around with it some more: I changed the Build Action in VS2010 on the .cs file of the above mentioned class to "compile" from "content" and now it does actually run the ApplicationStarted on my Unoeuro site. However on my local system it now runs twice! Any ideas?
is working on a reply...