Jump to content


Can't the P4API.net to work.


  • Please log in to reply
4 replies to this topic

#1 TheMaddog1068

TheMaddog1068

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 10 January 2014 - 08:11 PM

Using c# in a 64 windows 7 enterprise environment.

  I have made a reference to the p4api.net and everything seems to be working fine until I run the code.  When it tries to set the server

Server p4Server = new Server(new ServerAddress(uri));

I get a source not found message...

The file 'c:\tmp\35948059\P4.NET\r13.3\p4api.net\p4api.net\Server.cs' does not exist.

What am I doing wrong?  It seems I might need the P4api.dll as well as I have seen this calel dout in some docs but I have been unable to find this dll on the site here anywhere.

Any help welcome!!

#2 P4Matt

P4Matt

    Advanced Member

  • Members
  • PipPipPip
  • 1383 posts

Posted 10 January 2014 - 10:03 PM

This link should give you a build with the dlls pre-built for you: p4api.net64.zip

You might have picked up the source package of the .NET API.

#3 TheMaddog1068

TheMaddog1068

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 13 January 2014 - 03:18 PM

Thaks but I still have the same issue.  Is there a P4.Api that the P4Api.net needs to run?  This is what I have..

a 2013 VS project with

a reference to
    \Documents\Old Deployomatic\p4api.net\p4api.net.dll

In the Folder

\Documents\Old Deployomatic\p4api.net\

p4api.net.dll
p4api.net     (Program Debug Database)
p4api.net.xml    XML Document
p4bridge.dll
p4bridge (Program Debug Database)


In my code I have

using Perforce.P4;

Am I missing some dll (Like the original P4Api.dll ?)  or something.  I am still getting the same error above with the ref to the dll you sent the link to.

Thanks.

#4 TheMaddog1068

TheMaddog1068

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 13 January 2014 - 03:35 PM

I created a brand new project with just the make connection code in it.  It now gives me the error..

Unable to load DLL 'p4bridge.dll':  the specified module could not be found

Working on place to put the dll now..

#5 TheMaddog1068

TheMaddog1068

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 13 January 2014 - 03:59 PM

Ok I put the p4bridge.dll file into my Bin folder and it works now.  Now onto resolving syntax errors and new ways to do the old stuff I did before.

Thanks,
Ben




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users