Home » VB.Net

Project publish

I have made a project in Visual Basic 2008 ex. ed. and then build and publish it. But I'm not sure what I got. Now, I see that in the Release folder I  have a few things:
- app. publish,
- my.project.exe,
- myproject. application manifest, etc. ..
I can  find myproject on the list of all programs on my computer, and I can use it as well as all other programs. I'm interested in three things:
- whether the program will work normally if I delete "myproject" in Visual Studio 2008 folder?
- whether the program will work properly if I uninstall the whole program Visual Basic 2008 ex. ed.?
- What  I need to transfer to another computer to install  and use the same program?
Sorry if questions are too silly, but this is all new for me, and I need further clarification.



3 Answers Found


Answer 1

If your program is listed on the start menu I presume you have installed it after publishing it.  Once you have done that you can delete the contents of the publish  folder as all the required elements will have been copied to the installation location.

Visual Basic is not required to run a published and installed program.

To install on another computer just copy the content of the publish folder to a CD and use that to install on the other computer.  If you set the appropriate option in the publish options an autorun.inf file will have been created and the cd will run the setup program automatically if the other computer allows that.  Otherwise just run Setup after inserting the CD.


Answer 2

Dave, thank you for the explanation. Just something else.
If I install my program on someone else's computer in such a way (without Visual Studio 2008 folder), does that mean that the unauthorized copying of program is no longer possible in any way?



Answer 3

No - it would be very easy to copy your program once it has been located on the computer.  If you wish to prevent that then there are various options available but none that work are simple to implement and I've never bothered to investigate them much.

Additionally there are tools readily available which will decompile your program allowing anyone to see the source code.  To get round that you would need to obfuscate your code.  The full VS includes a basic obfuscator or you can buy one, but they're not cheap.


Search for  Project publish


Whenever I try to save or publish a project from Project 2010(Version 14.0.4751.1000)MSO(Version 14.0.4760.1000), this fails. Project Server queue is queueing up with all kinds of notices. Has anyone got a clue based on the errormessage below what could be the problem for MS Project 2010 to not save or publish projects on Project Server? After I get the error message in Project 2010, the program shuts down. The organisation does not use workflows.

This is the error I get in the Project queue:

ActiveCacheQueuedMessageExecutionError (12005). Details: id='12005' name='ActiveCacheQueuedMessageExecutionError' uid='0eb9cb3c-4bc7-48e5-b111-010e7eb0afbd' error='System.Data.SqlClient.SqlException: Execution of user code in the .NET Framework is disabled. Enable "clr enabled" configuration option. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at Microsoft.Office.Project.Server.DataAccessLayer.DAL.SubDal.ExecuteStoredProcedureNoResult(String storedProcedureName, SqlParameter[] parameters) at Microsoft.Office.Project.Server.DataAccessLayer.CustomFieldChangesBatch.DbFlush() at Microsoft.Office.Project.Server.BusinessLayer.WinProjUtility.P12Deserializer.ProcessCustomFieldValuesContainerData(P12ContainerHeader cntrHeader, CustomFieldValues cfValues) at Microsoft.Office.Project.Server.BusinessLayer.WinProjUtility.CustomFieldValues.ProcessCustomFieldValues(Guid projGuid, String projName, DataStoreEnum store, Guid jobGuid, DateTime modDate, Int32 revRank, Int32 modRevCounter, Byte[] cntrBytes, ProjectType projectType, Guid sessionGuid, String sessionDescription, Boolean isNewProject, Guid projectOwnerGuid, Int16 dataFormatVersion, String winprojBuildNumber) at Microsoft.Office.Project.Server.BusinessLayer.WinProjUtility.WinProjSynchronousSaveProcessor.ProcessCustomFieldValuesContainer(Guid projGuid, String projName, DataStoreEnum store, Guid userGuid, Guid sessionGuid, String sessionDescription, Guid jobGuid, ProjectType projType, DateTime modDate, Int32 revRank, Int32 modRevCounter, Boolean isOverwriteSave, Boolean isNewProject, Guid projectOwnerGuid, Byte[] cntrBytes, Int16 dataFormatVersion, String winprojBuildNumber) at Microsoft.Office.Project.Server.BusinessLayer.WinProjUtility.WinProjQueueMessageDispatcher.DispatchMessage(ACMessage acMessage, Message msg, Group messageGroup, JobTicket jobTicket, MessageContext mContext)'.
GeneralQueueJobFailed (26000) - ACProjectSave.Byte[]. Details: id='26000' name='GeneralQueueJobFailed' uid='aaa5e9e1-bc3a-4d16-b77a-5b2eafd04adf' JobUID='9d144ea2-51d6-4acb-a03e-e00a4380e484' ComputerName='IS-151' GroupType='ACProjectSave' MessageType='Byte[]' MessageId='15' Stage=''. Kijk voor meer informatie in de ULS-logboeken op computer IS-151 voor vermeldingen met taak-UID 9d144ea2-51d6-4acb-a03e-e00a4380e484.  



I have various project types that require different sharepoint workspace templates and I'd like to be able to have a drop down selection when I publish a project to select the appropriate template to model the workspace after.  Has anyone done this and if so could you explain how?  I'm not a C# programmer but have done some programming in other languagues so as long as I have some base understanding I could get it done.  Would anyone know if the book VBA Programming for Microsoft Project book would have what I need to accomplish this task?



I opened project in project professional 2007 and then after modification save the project . but after 20 minutes still the message is displayed at the bottom of project professional 2007.

"Save job 0% complete. Expected wait time 15s"

and when I go to "Project Web Access Administration" and click on "Manage Queue" then there are also these jobs are on queue from 4 days and showing Job state "Waiting to be Processed".

although I restarted the "Queue" and "Event" Services many time.

and also "Check-In " function is not working.

Kindly tell me the solution immediately .


I used windows forms and crystal reports in this visual basic project.

Now I've finished my whole project and  I want to publish it so i can use it as an application.

I've successfully publish it , then try to set it up but after installing whenever I run the application I got errors regarding locations.

Pls. help..

error says a lot but to sum it

unhandled exception and then could not find the file (etc.......................)

'I think it cant find my database which is ms access..... but my access file is inside the debug folder.





I am inteding to publish the project plan in TFS with original estimates.

My expectation was that the Duration values in MS project would be reflected in TFS in original estimates.

However, I get no such results.

I was wondering how to configure MS Project or TFS to reflect the original estimates and worked hours ?





Hi all,

I have published a project to PS2010 and it was visible in Project Center but it is now no longer visible.  I can open it in Project Professional 2010 and I can publish it.  I can see it listed in the "Delete Enterprise Objects" screen but it does not appear in Project Center.  The tasks within the project are assigned to the resources.

Any ideas?



We are trying  to create and publish Project Plan in C# code using predefined Project template however error occur during publish project. I have used QueuePublish method() to publish the project. The template that we used it has two task, two genric resources and and two assignments.

Using PSI:
I have created Project (in draft database)
I have updatedthe respective properties and custom feilds of newly created Project Plan
the next steps is to publish the plan and I am unable to publish it

the error is :
System.Web.Services.Protocols.SoapException: ProjectServerError(s) LastError=GeneralSecurityAccessDenied Instructions: Pass this into PSClientError constructor to access all error information
   at Microsoft.Office.Project.Server.WebService.Project.QueuePublish(Guid jobUid, Guid projectUid, Boolean fullPublish, String WssURL)

your help is highly appriciated..

Thanks in advance



We have designed project server 2007 Project Centre Views for getting combined status at a glance.

How to reflect the last modified date of data reflected in these views.

Thanks and Regards,




Hi All,

I'm hoping someone could give me some outline or suggested approach of changing the publishing dialog box in Project Professional 2007 to be able to select a different sharepoint template based on the type of project being created.  I'm not a C# developer (teaching myself this now) so this is a bit of a challenge.

If someone who understand the PPSI development model really well could offer up some advice or some step by step to get me started on the right path I'd appreciate it. 



I know that Project 2010 does this easily but this client doesn't want to move from 2007 to 2010 at this time.



Dear All,

I am facing an issue when ever i am creating and publishing a new project, project workspace is not linking or associating to that project.

My Project Server environment is :-(Test and Production server have same environment)

Window server 2008 with sp2, WSS 3.0/Projectserver with sp2, SqlServer 2008 with sp1

Issue Description

For my project workspace i am using customized workspace template.

In that workspce i am using some custom workflow and using "CascadingDropDownListFieldWithFilter" which i have download from below URL :-http://cascddlistwithfilter.codeplex.com/Thread/View.aspx?ThreadId=219536

When ever i remove this utility "CascadingDropDownListFieldWithFilter" from my customized workspace template, project workspaces  successfully link to projects .

But when ever i installed above utility to my customize workspace template i am getting below ULS log errors:-

A)-  01/03/2011 11:24:20.87   Microsoft.Office.Project.Server      (0x1590) 0x1280 Windows SharePoint Services    Fields                         8l1l High     Failed to create field: Field type CascadingDropDownListFieldWithFilter is not installed properly. Go to the list settings page to delete this field.

B)- 01/03/2011 11:24:20.87  Microsoft.Office.Project.Server (0x1590) 0x1280 Project Server                 Project Server Sharepoint Integ 76tw Monitorable Error is: WSSCreateSiteFailure. Details: Attributes:  c5a39dd2-777c-4a94-bd4c-81c69bba72b0  http://ingurswebepm01p/RollOut/proposal3/proposal3  proposal3  . Standard Information: PSI Entry Point:   Project User: AP01\ngoya001  Correlation Id: a130f6c9-528a-4e64-a5a8-ec7c9799d894  PWA Site URL: http://ingurswebepm01p/RollOut  SSP Name: SharedServices2  PSError: WSSCreateSiteFailure (16400) a130f6c9-528a-4e64-a5a8-ec7c9799d894

c)-Attempt to create another instance of unique list type ,116 when it already exists in http://ingurswebepm01p/RollOut/proposal3

d)-Possible mismatch between the reported error with code = 0x81070504 and message: "There is no Web named "/RollOut/proposal3"." and the returned error with code 0x80070002.

E)-There is no Web named "/RollOut/proposal3".

Note:- But on my test server project workspaces are sucessfully creating and linking to Projects with this utility "CascadingDropDownListFieldWithFilter" installed on test server customized workspace template .

Kindly help me to resolve this issue.

Thanks in advanced


From August to December, I would upload a new project plan onto our team server, and under file, there would be a "Publish" option. I went to training and somehome my MS Project was affected, and I no longer have the publish option. I have uninstalled and reinstalled the software multiple times and have been unable to get back the publish option. Other members of my team are able to log into the server, open plans and publish them, but I am not.

I have already contacted my work technology practice, who was unable to help. I have also already checked my permissions in Project Web Access.

I am on Windows 7.



How do you publish or make the project templates appear on the server for everyone's use? I am able to create a project template using project professional and saving it as a file but when I save it on the server, it doesn't show up anywhere on the server's page (pwa). Where is it supposed to show? am I missing something? I tried publishing the template but its impossible. I'm new to using epm so any help is greatly appreciated.

Thanks, George



I have quite interesting issue with majority of the projects that were published to Project Server 2010. There areabout 15 local .mpp files that we successfully published and they used for a while via Project Professional 2010 being saved and published after people finished their day work.

Today we realized that almost all local files are not connecting to the server when staff open them and all changes are saving locally, not to the Project Server. When we open File tab we see that publish button is disabled and we need first convert and save to project server and then publish. But all these projects exist on the server and staff used them couple of weeks.

It looks like that local .mpp files lost their association with the project server, but I can' understand why.

Can somebody shed the light on this situation and provide any ideas what happened and how to fix it (not publishing them again, because we have to delete projects from PWA in this case)



I am haveing a very strange problem.  I have a project that can be editied and published on the Project Server 2010 but when I say to open it in project pro, the grid is empty... no data at all.  The project infomation sub screen in pro shows the original custome field information and updated custom fields but the project plan shows nothing.  I have also tried to open it directly in project pro and when I do I get the same result.   Any ideas on how to get the project to open successfully in pro.  There may have been a save issue on the server but I have saved and published the project in PWA many times since but cannot see any data in Project Pro.   Any ideas on how I can get the project back to project pro?

Thanks Doug 


I am using VS2010. I have a project that has been deployed for several years.  Project builds fine but now suddenly I get the message "Cannot publish because a project failed to build.  How can I tell what is going wrong.  This program is been updated and published hundreds of times.

Any Ideas ?



We're mapping Project tasks to TFS using TfsFieldMapping.  Once is link is established, we can't link new tasks in Project to TFS:  The Publish and Refresh column field for the new task is greyed out.  This may be related to the mapping:

<?xml version="1.0" encoding="utf-8"?>
    <!-- Mapping to Project system fields -->
    <Mapping WorkItemTrackingFieldReferenceName="System.Title" ProjectField="pjTaskName" />
    <Mapping WorkItemTrackingFieldReferenceName="System.AssignedTo" ProjectField="pjTaskResourceNames" />
    <Mapping WorkItemTrackingFieldReferenceName="DriveCam.ActualWork" ProjectField="pjTaskActualWork" ProjectUnits="pjHour" />
    <Mapping WorkItemTrackingFieldReferenceName="Conchango.TeamSystem.Scrum.EstimatedEffort" ProjectField="pjTaskBaselineWork" ProjectUnits="pjHour" />
    <Mapping WorkItemTrackingFieldReferenceName="Conchango.TeamSystem.Scrum.WorkRemaining" ProjectField="pjTaskRemainingWork" ProjectUnits="pjHour" />
    <!-- Mapping to Project text fields -->
    <Mapping WorkItemTrackingFieldReferenceName="System.WorkItemType" ProjectField="pjTaskText2" ProjectName="Item Type" />
    <Mapping WorkItemTrackingFieldReferenceName="System.State" ProjectField="pjTaskText3" ProjectName="State" />
    <Mapping WorkItemTrackingFieldReferenceName="System.Id" ProjectField="pjTaskText10" ProjectName="TFS Item ID" />
    <Mapping WorkItemTrackingFieldReferenceName="Conchango.TeamSystem.Scrum.Team" ProjectField="pjTaskText11" ProjectName="Team" />
    <Mapping WorkItemTrackingFieldReferenceName="Conchango.TeamSystem.Scrum.TaskPriority" ProjectField="pjTaskPriority" ProjectName="Task Priority" />
    <Mapping WorkItemTrackingFieldReferenceName="Conchango.TeamSystem.Scrum.BusinessPriority" ProjectField="pjTaskText13" ProjectName="Business Priority" />
    <Mapping WorkItemTrackingFieldReferenceName="System.Rev" ProjectField="pjTaskText23" />
    <!-- Mapping to Project Outline Codes -->
    <Mapping WorkItemTrackingFieldReferenceName="System.AreaPath" ProjectField="pjTaskOutlineCode9" ProjectName="Area Path" />
    <Mapping WorkItemTrackingFieldReferenceName="System.IterationPath" ProjectField="pjTaskOutlineCode10" ProjectName="Iteration" />
    <!-- Reserved mapping (must stay in this order) -->
    <LinksField ProjectField="pjTaskText26" />
    <SyncField ProjectField="pjTaskText25" />

I've done long Internet searches and haven't found an answer (or anyone else experiencing greyed-out Project fields after connecting to a TFS project).  Any ideas?






If I wanted to write an application that publishes code to a directory that I specify how would I do that?

For example. I write an application and now I want to deploy it, but I want to make it so easy all I have to do is click one button and it deploys everything and it knows where to deploy it etc. I vaguely remember there being some command prompt tool that you could run against a project. Any ideas?

The reason I am asking - we have many applications that we have to deploy to 3 different environments. It would be nice to just click a button for each one and it's deployed with no problems. This is obviously the ideal situation. I would like to investigate running SQL compare (between environments on the deployment) and integrate that into the deployment application application as well.

This is just a fun project I am keen to start looking at. Suggestions are welcome, but pointing me to my first question would be great.


Sorry if this is the wrong place for this. Please point me in the right direction if this is not where it should be :)







I am using project server 2007 and sql server 2008.

I have task to upload/publish around 100 projects simultaneously.Is there any tool available for completing this task.

I heard that this can be done through Proj tool,but did not find any option to publish projects from my local machine (browse option).

Please help.



Completed Project Server, Sharepoint (..etc) 2010 Installations a few weeks ago and things have been running fine.

In the last two days however, I am suddenly getting publishing errors which have brought my teams work to a halt. I am using the same templates which I have checked in many times - so I am at a loss as to what could be happening.

Microsoft.Office.Project.Server.BusinessLayer.Queue.Message:ProjectPublishFailure (23000). Details: id='23000' name='ProjectPublishFailure' uid='575fa3a0-ce2b-495f-a3c5-3c2da24cebad' projectuid='a3604d6b-83d6-4047-91d4-946071d5c162' messagetype='Microsoft.Office.Project.Server.BusinessLayer.QueueMsg.PublishProjectMessage' messageID='82' stage='' blocking='Block'. Queue:GeneralQueueJobFailed (26000) - ProjectPublish.PublishProjectMessage. Details: id='26000' name='GeneralQueueJobFailed' uid='9d50d76c-ea58-4683-8f73-fc6b49b731d5' JobUID='4cf9fd6e-d716-4dad-b4c6-12fe7f322545' ComputerName='CHELT2WEB01' GroupType='ProjectPublish' MessageType='PublishProjectMessage' MessageId='82' Stage=''. For more details, check the ULS logs on machine CHELT2WEB01 for entries with JobUID 4cf9fd6e-d716-4dad-b4c6-12fe7f322545.


I have built a WPF project using Visual Studio 2008 Professional Edition. While debuging the project I located the 'DomoGraphDll.dll' in the bin/debug directory and all works just fine.

Then,  I compiled the project in "Release" mode and tried to publish it.

However, I encouter problems when trying to publish the project (properties -> publish) and install it on another computer.

The published was completed without any errors, but when trying to install it on another computer (a target computer)  i got the next error message:

"Unable to install or run the application. The application requires that assembly Microsoft.DirectX.DirectInput version 1.0.2902.0 be installed in the global assembly cash (GAC) first..."

It is important to say that during the development process of my WPF project I had to install the next SDK's:

Elecard Codec SDK G4 9.0 SDK Windows SDK Windows SDK 

It is obvious that I don't want to install those SDK's on the target computer. How can I use the 'Publish' feature in such a way that no SDK will be required ?

It is worth mentioning that even after installing those SDK's on the target computer I got the same error message mentioned above, and I couldn't get the application to work!

All the best,



<< Previous      Next >>

Microsoft   |   Windows   |   Visual Studio   |   Sharepoint   |   Azure