Posts tagged: project

Queue Job Status shows “Waiting to be processed” and then never completes

By , February 8, 2011

Symptoms
In Microsoft Office Project Web Access 2007, when you click Server Settings and then click Manage Queue, the Job State of jobs that are in the queue are displayed as “Waiting to be processed” and do not leave this state. You receive the following errors in the Event Viewer Application Log:
In Application log, we receive the following errors:
Standard Information:PSI Entry Point:
Office SharePoint Server
EventID 7757
Project User: <DOMAIN>\<user>
Correlation Id: ef47ace4-7aaf-44c7-99c2-241db1ea71bb
PWA Site URL: http://<servername>/PWA
SSP Name: <shared service provider name>
PSError: Success (0)
Queue System Restarting due to an unexpected error. Queue type (Project, Timesheet
queue etc): ProjectQ. Error: System.NullReferenceException: Object reference not
set to an instance of an object.
at
Microsoft.Office.Project.Server.BusinessLayer.Queue.BaseQueueAccess.SqlCallRetry.Ret
ryableSqlCallBase.ExecuteRetryableSqlCall()
at
Microsoft.Office.Project.Server.BusinessLayer.Queue.BaseQueueAccess.SqlCallRetry.Pur
geDeadReceiversSqlCall.PurgeDeadReceiversRetry(Int32 timeOut)
at
Microsoft.Office.Project.Server.BusinessLayer.Queue.BaseQueueAccess.PurgeDeadReceive
rs(Int32 timeOut)
at
Microsoft.Office.Project.Server.BusinessLayer.Queue.Receiver.PeriodicTasks()
==========
Standard Information:PSI Entry Point:
Office SharePoint Server
EventID 7761
Project User: <DOMAIN>\<user>
Correlation Id: ef47ace4-7aaf-44c7-99c2-241db1ea71bb
PWA Site URL: http://<servername>/PWA
SSP Name: <shared service provider name>
PSError: Success (0)
An unxpected exception occurred in the Project Server Queue. Queue type (Project
Queue/Timesheet Queue): ProjectQ. Exception details: Object reference not set to an
instance of an object.
Resolution
Although there may be other causes for this error, this issue can occur when the SQL retry limit value is set to 0.

Add Embedded Resources by C#

By , August 25, 2010

Add Embedded Resources

To add a text file and an image file to your project as embedded resources, follow these steps:

  1. Create a new Windows Application project for this demonstration. This form is used to display the resources that are accessed from the executing assembly during run time.
  2. Right-click your project name, click Add, and then click Add New Item.
  3. In the New Item dialog box, select Text File from the menu, and name the file MyTextFile.txt. When the file opens in the integrated development environment (IDE), add some text, and then close the file.
  4. Repeat steps 1 and 2 to add a bitmap image to your project, but instead of selecting Text File as the new item type, select Bitmap File, and then change the file name to MyImage.bmp. When the new image is opened in the IDE, draw something on the image, and then close the file.
  5. Right-click either the text file or the bitmap, and then select Properties.
  6. In the Properties dialog box, locate the Build Action property. By default, this property is set to Content. Click the property and change the Build Action property to Embedded Resource.
  7. Repeat steps 4 and 5 for the other file.

The next time you build the project, the compiler adds these files to your assembly. The compiler adds the root namespace of the project to the name of the resource when it is included in the project. For example, if the root namespace of your project is MyNamespace, the resources are named MyNamespace.MyTextFile.txt and MyNamespace.MyImage.bmp.