Timer Jobs Status Stuck ..
i.e. when you check in the Centrl Admin under Solution Management, all you see is ...deploying, retracting, ...
Create a batch file and execute the following before and after the solution deployment on each application and web server in the SharePoint farm:
Content of the batch file below:
stsadm.exe -o execadmsvcjobs
sleep 15
net stop SPTimerV3
sleep 5
net stop SPAdmin
sleep 5
net start SPTimerV3
sleep 5
net start SPAdmin
sleep 5
iisreset /noforce
NOTE: Can't find sleep command. Use the external sleep command you can search for Windows Server 2008 Resource Kit or Windows Server 2003 Resource Kit
Jul 22, 2009
May 5, 2008
SharePoint the Content Editor WebPart (Dark Horse)
Content Editor WebPart or CEWP provides us lot's of capability:
* Write HTML inside it
* Use javascript to do anything
like
- calling Sharepoint WebServices
- create left treeview navigation
* Insert CSS inside the content page
* URL manipulation (i.e. URL Query String or Parameters)
* CSS for Infopath forms (like making tool tip size small) otherwise seems impossible
Snippet
"... Using a content editor web part you can insert the required Html (also CSS) into a page. Leveraging this technique we were able to add a content editor web part (CEWP) to our custom application page which hosts the infopath form. This content editor web part envelopes the CSS changes required to the tool tip...."
Now you are free to do anything using CEWP, CSS, HTML, Javascript, Javascript calling SharePoint WebServices and so on.
* Write HTML inside it
* Use javascript to do anything
like
- calling Sharepoint WebServices
- create left treeview navigation
* Insert CSS inside the content page
* URL manipulation (i.e. URL Query String or Parameters)
* CSS for Infopath forms (like making tool tip size small) otherwise seems impossible
Snippet
"... Using a content editor web part you can insert the required Html (also CSS) into a page. Leveraging this technique we were able to add a content editor web part (CEWP) to our custom application page which hosts the infopath form. This content editor web part envelopes the CSS changes required to the tool tip...."
Now you are free to do anything using CEWP, CSS, HTML, Javascript, Javascript calling SharePoint WebServices and so on.
Apr 1, 2008
Writing SharePoint WebParts with Elevated Privilege and Custom Tool Part ( Hello World SharePoint WebPart )
Topic
Writing / Creating Sharepoint WebPart with Elevated Privilege and Editor Part
( Hello World SharePoint WebPart )
( Hello World SharePoint WebPart )
Prerequisites
- Microsoft Visual Studio 2005
- SharePoint 2007 Farm
Occasionally your code calls restricted methods within the Windows SharePoint Services(WSS/MOSS) object model.
This code will throw error, access denied in the event logs if not called properly. To make the code run even though the request is initiated by a nonprivileged user, you must be able to elevate the privilege of your code as it executes on the Web server. This blogs exactly shows you how to achieve this.
What is Editor Part
Basically the Properties of a Web Part.
These properties can be edited in the webpart page edit mode as shown below:
Tools used in the demo solution
* VeWss for Visual Studio
i.e. Windows SharePoint Services 3.0 Tools: Visual Studio 2005 Extensions, Version 1.1
Download: link
* Deployment Tool
Download link SharePoint Solution Installer
WebPart Development Steps
* Download the source code for the demo
* Open in VS 2005 and you will see a folder hierarchy as shown in the diagram
Files / Components involved
* WebPart Code
* Custom Editor Part
* Cab.ddf
* Manifest.xml
* Element.xml
* Feature.xml
* Mango.webpart
* Build the downloaded Project Solution File in VS 2005
* Edit Setup.exe.config as/if required
SafeControl Assembly="Mango, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9f4da00116c38ec5" Namespace="Mango" TypeName="*" Safe="True" />
* Use the setup.exe to install the solution
* To make sure everything work as expected, execute the following from command prompt
stsadm -o execadmsvcjobs
* Activate WebPart, and then Add WebPart to the page.
Download Link source code
* Mango.webpart
* Run "CreateSolutionPackage.cmd" (under package directory of source code)
* Build the downloaded Project Solution File in VS 2005
* Drag and drop the assembly in the GAC
* Modify the web.config to add assembly as safe control
<* Edit Setup.exe.config as/if required
SafeControl Assembly="Mango, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9f4da00116c38ec5" Namespace="Mango" TypeName="*" Safe="True" />
* Use the setup.exe to install the solution
* To make sure everything work as expected, execute the following from command prompt
stsadm -o execadmsvcjobs
* Activate WebPart, and then Add WebPart to the page.
Download Link source code
Enjoy Coding!
Oct 12, 2007
Dual Boot: Windows Vista and Windows XP or Windows Server
"PreInstalled Windows Vista" and Windows xp/2k3/... as Dual Boot
(windows distant view and x, how to ...)
Mr. Xyz thinks to buy a Hybrid Car and came to know if he will buy High Tech Hybrid Car he becomes ineligible to keep his old Ford Truck. DOES'NT THAT sound insane, well that's what i am talking about ...
Windows Vista is a family product of Microsoft LETS prove it!
If you are willing to buy laptop pre-installed with vista, Have windows xp/xyz ready and few hours of spare time to make your new laptop usable (Well, if you just wanna surf (the net) it's alright you can go to the beach and enjoy the sunshine).
If you want to have third party software or even Microsoft products the chances are bleak it's supported by Vista (distant relative), as the time will go by your luck will work.
What i am trying to say is be ready to enter the world of Dual Boot. Well if you have ram 3GB or more, it's better to use VMWare or Microsoft Virtual PC.
Let's get Started
1) Make a partition.
Click this: Google Search Partition your hard drive
or
Site Hard Drive Partition with Screen Shots
Note: Make note of the newly created partition, it can't be C.
2) Change the Boot Sequence in BIOS
Click this: Boot Sequence
3) Insert the Windows xp/2k3/xyz cd/dvd and reboot your machine.
Click this: Install Windows XP
Note: Select the newly created drive step 1.
4) Reboot your machine
Great you just lost your vista ... but don't forget to verify whether windows xp/xyz installation was successful or not. Good Luck for the Drivers compatibility.
5) Insert your Restore CD, the one which came with your machine
or
choose the Restore option at the boot time which mean pressing the right Function key on
your machine.
Then Choose Repair, do not select full Restore and repair the vista without deleting or
formatting the drive.
6) Boot into Vista, well that's the only option you have.
7) Look for bcdedit.exe and bootsect.exe on your drive, these are hidden files.
8) If you can't find the files mentioned in step 7, Download Easy BCD
9) Install it but launch/play with it at your own risk.
DON'T LAUNCH IT
10) Find the above mentioned files bcdedit.exe and bootsect.exe
11) Copied from hereNote You can run the commands in the following procedure by using the command prompt. If you run these commands in Windows Vista, run them at a command prompt that has elevated user rights. To do this, click Start, click Accessories, right-click the command-prompt shortcut, and then click Run as Administrator.
1. | Use Bootsect.exe to restore the Windows Vista MBR and the boot code that transfers control to the Windows Boot Manager program. To do this, type the following command at a command prompt: Drive:\boot\Bootsect.exe /NT60 All In this command, Drive is the drive where the Windows Vista installation media is located. Note The boot folder for this step is on the DVD drive. | ||||||||
2. | Use Bcdedit.exe to manually create an entry in the BCD Boot.ini file for the earlier version of the Windows operating system. To do this, type the following commands at a command prompt. Note In these commands, Drive is the drive where Windows Vista is installed.
| ||||||||
3. | Restart the computer. |
12) You are Done, helping vista to be a family member of Microsoft Products.
Jul 7, 2007
Subscribe to:
Posts (Atom)