Setup Server throwing exception

Options
HectorLlanos
edited August 2012 in Photon Server
So I was following the setup guide in the Getting Started Section and long story short I start the server as an application and it starts then stops. I looked at the logs and its throwing an exception.

Here is the log file:


2580: 10:04:36.059 - ---
2580: 10:04:36.059 - Service: "Photon Socket Server" starting
2580: 10:04:36.059 - Config File: C:\Photon\deploy\bin_Win64\PhotonServer.config
2580: 10:04:36.061 - Will produce at most: 10 crash dumps
2580: 10:04:36.061 - Action:debug
2580: 10:04:36.061 - Server Starting...
2580: 10:04:36.061 - Tick count: 57899583 (wraps in: 49.0401 days)
2580: 10:04:36.061 - Tick count 64: 57899583
2580: 10:04:36.061 - Photon Version: 3.0.27.1684
2580: 10:04:36.061 - PID: 2668
2580: 10:04:36.061 - Config File: C:\Photon\deploy\bin_Win64\PhotonServer.config
2580: 10:04:36.097 - Max message size: 512000
2580: 10:04:36.097 - S2S: MaxInboundMessageSize: 512000
2580: 10:04:36.097 - S2S: MaxOutboundMessageSize: 512000
2580: 10:04:36.097 - S2S: No inactivity timeout
2580: 10:04:36.100 - Max Reliable Data In Transit (awaiting ACKs) per peer : 51200 bytes
2580: 10:04:36.100 - Per peer bandwidth limit
2580: 10:04:36.100 - Transmit Rate Limit: 256 KB/Sec
2580: 10:04:36.100 - Limit period: 200ms
2580: 10:04:36.100 - Limit per period: 52428 bytes
2580: 10:04:36.100 - Max queued data for transmission per peer: 512000 bytes
2580: 10:04:36.100 - Minimum retransmit timeout: 200
2580: 10:04:36.100 - Minimum ENet timeout: 5000ms
2580: 10:04:36.100 - Maximum ENet timeout: 30000ms
2580: 10:04:36.100 - Outbound ENet: MaxInboundMessageSize: 512000
2580: 10:04:36.100 - Outbound ENet: MaxOutboundMessageSize: 512000
2580: 10:04:36.106 - About to load runtime: PhotonHostRuntime.PhotonDomainManager from PhotonHostRuntime, Culture=neutral, PublicKeyToken=02C301B61B060C4D
2580: 10:04:36.106 - CLRBaseDirectory set to "C:\Photon\deploy"
2580: 10:04:36.106 - Optimising event broadcast for 20 or more peers
2580: 10:04:36.108 - About to load CLR - versions available:
2580: 10:04:36.108 - v2.0.50727
2580: 10:04:36.108 - v4.0.30319
2580: 10:04:36.108 - No preference in configuration file, will load latest.
2580: 10:04:36.108 - About to load version: "v4.0.30319"
2580: 10:04:36.111 - Loaded version: "v4.0.30319"
2580: 10:04:36.480 - Photon host runtime loaded
2580: 10:04:44.021 - DefaultDomain:1 - GetLicenseInformation() failed. Exception:
System.IO.FileNotFoundException: Could not load file or assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

=== Pre-bind state information ===
LOG: User = WIN-93GWOYW9UI2\Administrator
LOG: DisplayName = System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
(Fully-specified)
LOG: Appbase = file:///C:/Photon/deploy/bin_Win64/
LOG: Initial PrivatePath = NULL
Calling assembly : PhotonLicensing, Version=3.0.27.1684, Culture=neutral, PublicKeyToken=02c301b61b060c4d.
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Version redirect found in framework config: 2.0.0.0 redirected to 4.0.0.0.
LOG: Post-policy reference: System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
LOG: The same bind was seen before, and was failed with hr = 0x80070002.

at...
System.IO.FileNotFoundException: Could not load file or assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

=== Pre-bind state information ===
LOG: User = WIN-93GWOYW9UI2\Administrator
LOG: DisplayName = System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
(Fully-specified)
LOG: Appbase = file:///C:/Photon/deploy/bin_Win64/
LOG: Initial PrivatePath = NULL
Calling assembly : PhotonLicensing, Version=3.0.27.1684, Culture=neutral, PublicKeyToken=02c301b61b060c4d.
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Version redirect found in framework config: 2.0.0.0 redirected to 4.0.0.0.
LOG: Post-policy reference: System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
LOG: The same bind was seen before, and was failed with hr = 0x80070002.

at PhotonHostRuntime.Licensing.GetLicenseInformation(IPhotonServerShutdown shutdown, Int32& maxConcurrentConnections, String[]& validIps, Boolean& isBootstrap, Version assemblyVersion, ILogToUnmanagedLog unmanagedLog, PhotonDomainManager domainManager)
at PhotonHostRuntime.PhotonDomainManager.PhotonDefaultAppDomainBehavior.GetLicenseInformation(IPhotonServerShutdown shutdown, Int32& maxConcurrentConnections, String[]& validIps)
at PhotonHostRuntime.PhotonDomainManager.GetLicenseInformation(IPhotonServerShutdown shutdown, Int32& maxConcurrentConnections, String[]& validIps)


2580: 10:04:44.022 - CService::OnException() - Exception: CManagedHost::GetLicenseInformation() - Failed to obtain runtime license information. - The system cannot find the file specified.
2580: 10:04:44.022 - Server shutting down...
2580: 10:04:44.022 - Notifying CLR applications of shutdown...
2580: 10:04:44.023 - Shutting down TCP Outbound Connection Manager...
2580: 10:04:44.023 - Shutting down ENet Outbound Connection Manager...
2580: 10:04:44.023 - Disconnecting all outbound peers...
2580: 10:04:44.023 - Shutting down socket servers...
2580: 10:04:44.023 - Shutting down ENet thread pool...
2580: 10:04:44.023 - Shutting down TCP inactivity timers...
2580: 10:04:44.023 - Shutting down CLR applications...
2580: 10:04:44.023 - Shutting down business logic thread pool...
2580: 10:04:44.023 - Shutting down I/O thread pool...
2580: 10:04:44.024 - Flushing ENET buffer allocator...
2580: 10:04:44.024 - Flushing TCP buffer allocator...
2580: 10:04:44.024 - Flushing TCP buffer handle allocator...
2580: 10:04:44.024 - Flushing stream socket allocator...
2580: 10:04:44.024 - Flushing inbound datagram socket allocator...
2580: 10:04:44.024 - Flushing outbound datagram socket allocator...
2580: 10:04:44.024 - Destroying ENet thread pool
2580: 10:04:44.024 - Destroying Business logic thread pool
2580: 10:04:44.024 - Destroying servers
2580: 10:04:44.024 - Destroying TCP Outbound Connection Manager
2580: 10:04:44.024 - Destroying resolver
2580: 10:04:44.024 - Destroying TCP Proxy Connection Manager
2580: 10:04:44.024 - Destroying TCP inactivity timer
2580: 10:04:44.024 - Destroying ENet host
2580: 10:04:44.024 - Destroying ENet host
2580: 10:04:44.024 - Destroying CLR dispatcher
2580: 10:04:44.024 - Destroying CLR applications
2580: 10:04:44.039 - Destroying I/O thread pool
2580: 10:04:44.039 - Destroying ENet buffer allocator
2580: 10:04:44.039 - Destroying TCP buffer allocator
2580: 10:04:44.039 - Destroying TCP socket allocator
2580: 10:04:44.039 - Destroying ENet inbound socket allocator
2580: 10:04:44.039 - Destroying ENet outbound socket allocator
2580: 10:04:44.039 - Destroying performance counters
2580: 10:04:44.039 - Shutdown complete...
2580: 10:04:44.039 - Service shutting down
2580: 10:04:44.040 - Service shut down complete

What am I doing wrong??

Comments

  • Oh my machine specs:


    OS Name Microsoft® Windows Server® 2008 Enterprise
    Version 6.0.6002 Service Pack 2 Build 6002
    Other OS Description Not Available
    OS Manufacturer Microsoft Corporation
    System Name WIN-93GWOYW9UI2
    System Manufacturer System manufacturer
    System Model System Product Name
    System Type x64-based PC
    Processor Intel(R) Core(TM)2 Duo CPU E7300 @ 2.66GHz, 2660 Mhz, 2 Core(s), 2 Logical Processor(s)
    BIOS Version/Date American Megatrends Inc. 0402, 7/9/2008
    SMBIOS Version 2.4
    Windows Directory C:\Windows
    System Directory C:\Windows\system32
    Boot Device \Device\HarddiskVolume1
    Locale United States
    Hardware Abstraction Layer Version = "6.0.6002.18005"
    User Name WIN-93GWOYW9UI2\Administrator
    Time Zone Pacific Daylight Time
    Installed Physical Memory (RAM) 2.00 GB
    Total Physical Memory 1.99 GB
    Available Physical Memory 779 MB
    Total Virtual Memory 4.24 GB
    Available Virtual Memory 3.07 GB
    Page File Space 2.28 GB
    Page File C:\pagefile.sys
  • Hi,

    have you downloaded the .zip package of Photon 3.0 and unzipped it with the Windows Explorer's built-in extracting tool? In that case, Windows marks the whole Photon directory as "blocked" (because it's a suspicious internet download :D) and prevents it from loading any DLLs dynamically.
    As a workaround - please us a real ZIP tool (like WinRar, 7zip, WinZip, ...) OR download the new self-extracting package of Photon 3.0 from our download site: http://www.exitgames.com/download/Photo ... 7-3631.exe - OR mark the zip file as "unblocked" (more details here: viewtopic.php?f=5&t=1255#p8998) before extracting it.

    If that was not the cause...
    - have you tried "Run As Administrator" when you start Photon?
    - does the same happen if you install & run Photon as a Service?
  • Try installing .Net Framework 4: http://www.microsoft.com/en-us/download ... x?id=17851

    I had the same issue and resolved it by installing the extended framework.
  • Today is my day off, so I'll look at it Monday. But .net 4.0 is installed and I haven't tried the .zip package. I'll give it a try and let you know!!
  • installing .Net Framework 4 is the final True^^

    Thank you~