locked
CompileWCFProxyAssembly command in a Visual Studio Command Prompt window. RRS feed

  • Question

  • Hi all,

    i am run CompileWCFProxyAssembly command in a Visual Studio Command Prompt window.give

    some error..How to remove it...


    Neeraj

    Saturday, March 17, 2012 11:40 AM

All replies

  • Hi Neeraj--

    I hope that you pasted the wrong path so you are getting the CS2001 error from command prompt.

    http://msdn.microsoft.com/en-us/library/wybhbs97(v=vs.90).aspx

    A source file name was passed to the compiler, but could not be located. Check the spelling of the file name and the location of the file.

    Thanks,


    Thanks, Amit Khare |EPM Consultant| Blog: http://amitkhare82.blogspot.com http://www.linkedin.com/in/amitkhare82

    Tuesday, March 20, 2012 11:28 AM
  • ndeed, i had the same issue.

    So to solve that issue, instead of .\Source folder, i edited the CompileWCFAssembly.cmd file and insert the full path :)

    Now, that step is working, but i have got the following message:

    ------------------------------------

    Compiling the proxy assembly

    ------------------------------------

    \Microsoft was unexpected at this time.

    What could be the issue ?

    Thanks,


    Math

    Thursday, March 22, 2012 9:43 AM
  • Ok, it was apparently an issue in my path.

    So, i just indicated the following= set OUTDIR= C:\Source and it's working.

    I have got my DLL.

    Thanks,


    Math

    Thursday, March 22, 2012 10:11 AM
  • Good, that's what I mentioned in my reply " Check the spelling of the file name and the location of the file"


    Thanks, Amit Khare |EPM Consultant| Blog: http://amitkhare82.blogspot.com http://www.linkedin.com/in/amitkhare82

    Friday, March 23, 2012 6:36 AM
  • Hi Amit,

    Thanks your Replay..

    I am using console application name-ReadProjectList and run application give some error...

     using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Web;
    using System.Net;
    using System.Web.Services.Protocols;
    using System.Web.Services;
    using System.IO;
    using PSLibrary = Microsoft.Office.Project.Server.Library;


    namespace ReadProjectList
    {
        class Program
           {
            [STAThread]
            static void Main(string[] args)
            {




                try
                {
                    const string PROJECT_SERVER_URI = "http://devastro/pwa/";
                    const string PROJECT_SERVICE_PATH = "_vti_bin/psi/project.asmx";


                    // Set up the web service objects.
                    ProjectWebSvc.Project projectSvc = new ProjectWebSvc.Project();


                    projectSvc.Url = "http://devastro/pwa/_vti_bin/psi/Project.asmx";
                    projectSvc.Credentials = CredentialCache.DefaultCredentials;
                    // Read and display the project list.
                    Console.WriteLine("Reading the project list");


                    ProjectWebSvc.ProjectDataSet projectDs = projectSvc.ReadProjectList();
                    foreach (ProjectWebSvc.ProjectDataSet.ProjectRow projectRow in projectDs.Project)
                    {
                        Console.WriteLine(projectRow.PROJ_NAME + " (" + projectRow.PROJ_UID + ")");
                    }


                }
                catch (SoapException ex)
                {
                    PSLibrary.PSClientError error = new PSLibrary.PSClientError(ex);
                    PSLibrary.PSErrorInfo[] errors = error.GetAllErrors();
                    string errMess = "==============================\r\nError: \r\n";
                    for (int i = 0; i < errors.Length; i++)
                    {
                        errMess += "\n" + ex.Message.ToString() + "\r\n";
                        errMess += "".PadRight(30, '=') + "\r\nPSCLientError Output:\r\n \r\n";
                        errMess += errors[i].ErrId.ToString() + "\n";


                        for (int j = 0; j < errors[i].ErrorAttributes.Length; j++)
                        {
                            errMess += "\r\n\t" + errors[i].ErrorAttributeNames()[j] + ": " + errors[i].ErrorAttributes[j];
                        }
                        errMess += "\r\n".PadRight(30, '=');
                    }
                    Console.ForegroundColor = ConsoleColor.Red;
                    Console.WriteLine(errMess);
                }
                catch (WebException ex)
                {
                    string errMess = ex.Message.ToString() +
                       "\n\nLog on, or check the Project Server Queuing Service";
                    Console.ForegroundColor = ConsoleColor.Red;
                    Console.WriteLine("Error: " + errMess);
                }
                catch (Exception ex)
                {
                    Console.ForegroundColor = ConsoleColor.Red;
                    Console.WriteLine("Error: " + ex.Message);
                }
                finally
                {
                    Console.ResetColor();
                    Console.WriteLine("\r\n\r\nPress any key...");
                    Console.ReadKey();
                }


            }
        }
    }


    Neeraj

    Monday, March 26, 2012 7:26 AM