Photon can't start app because it can't find a dll

Options
Hello everyone.

I am trying to understand photon and it isn't easy as there doesn't seem to be a guide on how it works and how to set it up. I have had to rely on youtube videos of version 3 RC3, so you can imagine some things have changed...

I have gotten to the point of trying to load up a server I created and compiled. It made a DLL file, calles PiratesServer.dll.

I get the following error in the log:
372: 12:52:23.915 - CService::OnException() - Exception: CManagedHost::CreateApplicationInNewAppDomain() - Failed to create new application domain for : "Pirates Server" - Can't find PiratesServer.dll in or C:\photon\deploy\PirateServer\bin

I can confirm 100% that the dll is in C:\photon\deploy\PirateServer\bin and is indeed names PiratesServer.dll.

Here is the section i created in the PhotonServer.config file: (I had to use the round brackets because it wouldn't show up otherwise...)

(Pirates
MaxMessageSize="512000"
MaxQueuedDataPerPeer="512000"
PerPeerMaxReliableDataInTransit="51200"
PerPeerTransmitRateLimitKBSec="256"
PerPeerTransmitRatePeriodMilliseconds="200"
MinimumTimeout="5000"
MaximumTimeout="30000"
DisplayName="PiratesServer")

(!-- 0.0.0.0 opens listeners on all available IPs. Machines with multiple IPs should define the correct one here. --)
(!-- Port 5055 is Photon's default for UDP connections. --)
(UDPListeners)
(UDPListener
IPAddress="0.0.0.0"
Port="5055"
OverrideApplication="Master")
(/UDPListener)
(UDPListener
IPAddress="0.0.0.0"
Port="5056"
OverrideApplication="Game")
(/UDPListener)

(/UDPListeners)

(!-- 0.0.0.0 opens listeners on all available IPs. Machines with multiple IPs should define the correct one here. --)
(TCPListeners)
(!-- TCP listener for Game clients on Master application --)
(TCPListener
IPAddress="0.0.0.0"
Port="4530"
OverrideApplication="Master"
PolicyFile="Policy\assets\socket-policy.xml"
InactivityTimeout="10000"
)
(/TCPListener)

(TCPListener
IPAddress="0.0.0.0"
Port="4531"
OverrideApplication="Game"
PolicyFile="Policy\assets\socket-policy.xml"
InactivityTimeout="10000")
(/TCPListener)

(!-- DON'T EDIT THIS. TCP listener for GameServers on Master application --)
(TCPListener
IPAddress="0.0.0.0"
Port="4520")
(/TCPListener)
(/TCPListeners)

(!-- Policy request listener for Unity and Flash (port 843) and Silverlight (port 943) --)
(PolicyFileListeners)
(!-- multiple Listeners allowed for different ports --)
(PolicyFileListener
IPAddress="0.0.0.0"
Port="843"
PolicyFile="Policy\assets\socket-policy.xml")
(/PolicyFileListener)
(PolicyFileListener
IPAddress="0.0.0.0"
Port="943"
PolicyFile="Policy\assets\socket-policy-silverlight.xml")
(/PolicyFileListener)
(/PolicyFileListeners)


(!-- WebSocket (and Flash-Fallback) compatible listener --)
(WebSocketListeners)
(WebSocketListener
IPAddress="0.0.0.0"
Port="9090"
DisableNagle="true"
InactivityTimeout="10000"
OverrideApplication="Master")
(/WebSocketListener)

(WebSocketListener
IPAddress="0.0.0.0"
Port="9091"
DisableNagle="true"
InactivityTimeout="10000"
OverrideApplication="Game")
(/WebSocketListener)

(/WebSocketListeners)

(!-- Defines the Photon Runtime Assembly to use. --)
(Runtime
Assembly="PhotonHostRuntime, Culture=neutral"
Type="PhotonHostRuntime.PhotonDomainManager"
UnhandledExceptionPolicy="Ignore")
(/Runtime)

(!-- Defines which applications are loaded on start and which of them is used by default. Make sure the default application is defined. --)
(!-- Application-folders must be located in the same folder as the bin_win32 folders. The BaseDirectory must include a "bin" folder. --)
(Applications Default="Master")

(Application
Name="Pirates Server"
BaseDirectory="PirateServer"
Assembly="PiratesServer"
Type="PiratesServer.Server"
ForceAutoRestart="true"
WatchFiles="dll;config"
ExcludeFiles="log4net.config"
)
(/Application)
(/Applications)
(/Pirates)


I'd appreciate any help. Thank you!

Comments