- If deploying in IIS 5 (for example: Windows XP Professional) Give the ASPNET account Full Control.
- If deploying in IIS 6 (for example: Windows Server 2003) Give the NETWORK SERVICE account Full Control. NOTE: If running your application pool under a different user than NETWORK SERVICE, then give that user account Full Control instead of NETWORK SERVICE. This is the user that the process will run under.
Wednesday, February 28, 2007
Events not showing up in EventLog
Tuesday, February 27, 2007
Java Application Server start and stop manually
Starting the Java Application Server that comes with Java Studio Enterprise 8 by running the start-domain is not recommended due to parameters that are expected by the batch file. Consequently the batch file hangs.
To properly start the Java Application Server, open a command prompt and type:
Asadmin start-domain
To properly stop the Java Application Server, open a command prompt and type:
Asadmin stop-domain
Thursday, February 22, 2007
.Net Caching Rocks!
Wednesday, February 21, 2007
SQL 2005 ROW_NUMBER()
SQL Server 2005 no makes it easy to do paging of results and every n rows queries now that the row number can be obtained without using a temp table.
The new functionality is given by ROW_NUMBER(). Here is an example that returns every other row regardless if rows have been deleted, missing pks in the sequence, etc:
select Employee_number, myrownum from
(
select
Employee_number,
row_number() over (order by sc.FIRST_NAME asc) as myrownum
from
person
) as temp_person
where
myrownum % 2 = 0
order by myrownum asc
NOTE: the LAST line it is very important if you want to see the rows returned in the order of the row numbers.
Thursday, February 1, 2007
Getting to the instance of your object when using ObjectDataSource
Sometimes when using ObjectDataSource you need to have access to the object that ObjectDataSource is using. Maybe you have a custom constructor you need to call, maybe you need to hook up an event handler, etc.
Once again, ASP.Net 2.0 comes through.
protected void ObjectDataSource1_ObjectCreated(object sender, ObjectDataSourceEventArgs e)
{
BLL bll = (BLL)e.ObjectInstance;
bll.haveToSetThis = "not really";
}
You should also look at ObjectCreating event since can be used to actually create the instance of the object.