If you're building a new Web Part, in order to debug it,
1)You have to manually attach the Visual Studio debugger to the W3SVC.EXE process
2)Select Debug -> Attached to Process...
3)And then selecting one or more instances of the W3SVC.EXE process, and click Attach.
Some times this throws error message saying "Cannot load symbols" and our code lines are not hit by debugger.
Then in that case we have to point the debugger to symbols in following way.
1)Copy the PDB file we have with our application and move to put the debugging symbols in the same location as the assembly.
2)Start » Run then type in run command prompt "%systemroot%\assembly\gac "
This will open the GAC folder. Now select your file of choice which is in following format
[assembly file name -.DLL extention]\[assembly version in format of #.#.#.#]__[assembly public key token].
3)Copy the PDB file to that folder and then attach the debugger.
Monday, 23 June 2008
Friday, 20 June 2008
How to Identify the Search Settings for the Farm
Steps to Identify the Search Settings for farm
1) Open command prompt
2) stsadm -o spsearch action list..
This details the primary information about the search settings of the farm.
To identify the search settings of SSP.
1) Open central admin
2) Navigate to "Manage this farms Shared services"
3) Right click the SSP Name for its "Edit Properties" link.
1) Open command prompt
2) stsadm -o spsearch action list..
This details the primary information about the search settings of the farm.
To identify the search settings of SSP.
1) Open central admin
2) Navigate to "Manage this farms Shared services"
3) Right click the SSP Name for its "Edit Properties" link.
Tuesday, 10 June 2008
Calculate difference between two dates
Today I had a cute requirement which is pretty small. The user want to see the time difference between two different time stamps.
Steps to do this
1) Create a column Date1 of DateTime
2) Create a column Date2 of DateTime
3) Create another column of Datatype Calculated type.
then enter the following formula in that column settings
=TEXT([DATE2]-[DATE1],"H:MM").
then you are done
Steps to do this
1) Create a column Date1 of DateTime
2) Create a column Date2 of DateTime
3) Create another column of Datatype Calculated type.
then enter the following formula in that column settings
=TEXT([DATE2]-[DATE1],"H:MM").
then you are done
Subscribe to:
Posts (Atom)