WHMCS createaccount...
 
Notifications
Clear all

WHMCS createaccount error code -2

38 Posts
4 Users
0 Reactions
5,767 Views
Posts: 1457
Admin
(@trobinson)
Noble Member
Joined: 9 years ago

Can you check if V:mastertoolsWIXcandle.exe is present?

 

It appears to be saying that wont load but if it is present i would try reinstall wix.

 

Adding wix to the path shouldn't be required.

Reply
3 Replies
(@glararan)
Joined: 8 years ago

Eminent Member
Posts: 38

candle.exe exists

Reply
(@glararan)
Joined: 8 years ago

Eminent Member
Posts: 38

Reinstall wix without success to move from that error :/

Reply
(@glararan)
Joined: 8 years ago

Eminent Member
Posts: 38

Second reinstall get works candle.exe, now problem with wix light.exel.. wtf Could not load file or assembly 'file:///V:master2toolswixLight.exe' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)

Reply
Posts: 38
Topic starter
(@glararan)
Eminent Member
Joined: 8 years ago

So third reinstall ended here:

 

Did you have linking problem sometimes? I couldn't find whats Light.exe dependencies.. file exists.

Reply
2 Replies
Admin
(@m-tiggelaar)
Joined: 9 years ago

Noble Member
Posts: 1967

We don't have linking issues, when i download the source fresh on our dev, my pc, etc it works directly (same for other contributors). light.exe can be found in toolsWIX check our repo: https://git.key4ce.com/SolidCP/v1.0/tree/master/tools/WIX

Reply
(@glararan)
Joined: 8 years ago

Eminent Member
Posts: 38

Last try, then Im going install virtual machine 😀

Reply
Posts: 38
Topic starter
(@glararan)
Eminent Member
Joined: 8 years ago

Alright, I installed fresh Virtual Machine with Win 10

Following install

VS 2015 Community with SQL libraries

Win SDK for .NET 3.5

Win SDK for .NET 4

Win 8 SDK for .NET 4

Wix toolset 3.10

It appears now wix is correctly installed but there is something hardcoded or what.. look on following image

Reply
5 Replies
Admin
(@m-tiggelaar)
Joined: 9 years ago

Noble Member
Posts: 1967

In this case are you building debug? as that one has a known error, the release should work fine however.

Reply
(@glararan)
Joined: 8 years ago

Eminent Member
Posts: 38

Well if I compile release then I cant debug or can I?

Reply
(@glararan)
Joined: 8 years ago

Eminent Member
Posts: 38

Release sucessfully compiled

Reply
(@glararan)
Joined: 8 years ago

Eminent Member
Posts: 38

Well if I attach process to server with release compiled pdb it says "A matching symbol file was not found in this folder" so I guess I can't just debug :/

Reply
Admin
(@trobinson)
Joined: 9 years ago

Noble Member
Posts: 1457

You can normally debug in release. The debug will fail but does work it will just be the Scheduler isnt built. Can you attach a screenshot of your error?

Reply
Posts: 38
Topic starter
(@glararan)
Eminent Member
Joined: 8 years ago

Wow, finally get debugging working, but still cant see vars values :/

BUT! I finally got ERROR name!

So WHMCS says now: "CreateAccount Fault: (Code: 0, Message: ChangeUserStatus Fault: (Code: 0, Message: SOAP Fault: (Code: 0, Message: Error Fetching http headers), Service ID: 2)"

To debugging:

I missed somehow something, so those are steps to get it working, if someone still reading and having problem.

  1. build-release.bat
  2. deploy-release.bat
  3. Stop Panel, Server, Enterprise server
  4. C:/SolidCP change dir letters from Panel to Panel_bck, Server to Server_bck etc.
  5. Copy from source code SolidCP/Deploy/Release/Install mentioned folders
  6. Copy from _bck folders web.config
  7. Start Panel, Server, Enterprise server
  8. Should work attach debug with loaded symbols 🙂

In this stage I don't see variables value, even Watch can't see :/

EDIT: to see variables I need "Use managed compability mode" which disallow remote debug, so crazy 🙁 Any idea how to get things working? I dont want to install Visual studio on server..

Reply
Posts: 38
Topic starter
(@glararan)
Eminent Member
Joined: 8 years ago

Okay one last thing to debug. Where is located optimize code in yours build.xml or something. If I turn off "optimize code" in .sln it still build optimized and disallow me to debug correctly :/

Also I figured out why error unknown. That's thanks to this: https://git.key4ce.com/SolidCP/v1.0/blob/1.1.x/SolidCP/Sources/SolidCP.EnterpriseServer.Code/Wizards/UserCreationWizard.cs#L134

Which UserController returns on add -2 there:  https://git.key4ce.com/SolidCP/v1.0/blob/1.1.x/SolidCP/Sources/SolidCP.EnterpriseServer.Code/Users/UserController.cs#L427

Which DataProvider reteurns there -2:

https://git.key4ce.com/SolidCP/v1.0/blob/1.1.x/SolidCP/Sources/SolidCP.EnterpriseServer.Code/Data/DataProvider.cs#L325

 

So misterious error comes from MS SQL 😀

You should use one of yours error codes there.

Reply
Page 4 / 5
Share: