I am not able to find the root cause of the problem that why the connection from SFS lost Automatically, their is no such condition in which it losts ........I am working on a game and due to which my game get stuck.......Game is working fine on localhost but as we upload the game on server it goes out.Following are some details that i want to give
1.As backend we are using asp.net(3.5 framework with visualstudio2008) with c#:
For this i am using sfs 1.2.6 dotnet Api.
2. And for Iphone side we are using
Latest iPhone API 1.0.0 RC4
3. Note: our client server contains dotnet 4.0 frame work, due to which i have convert the code using framework 4.0(visual studio 2010), Api that i am using will be the same .
below is my web config that i am using
Code: Select all
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<appSettings>
<add key="SFSServerIp" value="MyIP-Address"/>
<add key="SFSServerPort" value="9339"/>
<!--Mail Server Details-->
<add key="MailAddrFrom" value=""/>
<add key="SmtpClient" value=""/>
<add key="NetworkCredential" value=""/>
<add key="Password" value=""/>
<!--End Mail Server Details-->
<add key="AvtarImgHeight" value="85"/>
<add key="AvtarImgWidth" value="60"/>
<add key="AvtarLargImgHeight" value="50"/>
<add key="AvtarLargImgWidth" value="50"/>
<add key="ImgHeightBig" value="150"/>
<add key="ImgWidthBig" value="185"/>
<!--<add key="FilePath" value="E:\Deepika\TeinLen/Error1.txt"/>-->
<add key="UploadImageURL" value="UploadedImages/"/>
<!--Error Messages-->
<add key="InvalidLogin" value="Invalid user name or password"/>
<add key="StatusMsg" value="Not Successfully"/>
</appSettings>
<connectionStrings>
<add name="ConnTienLen" connectionString="Data Source=98.130.0.26;Initial Catalog=b24solu_killergame;User Id=b24solu_killergame;Password=KillerGame1;" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true" targetFramework="4.0">
<assemblies>
<!--<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>-->
</assemblies>
</compilation>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<webServices>
<protocols>
<add name="HttpPost"/>
<add name="HttpGet"/>
</protocols>
</webServices>
<sessionState mode="InProc" timeout="200">
</sessionState>
<customErrors mode="Off" defaultRedirect="Index.aspx"></customErrors>
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/></system.web>
<!--
The system.webServer section is required for running ASP.NET AJAX under Internet
Information Services 7.0. It is not necessary for previous version of IIS.
-->
</configuration>
3. on server side we have denoted MaxSocketIdleTime =100000 and MaxUserIdleTime=100000
Please Help me with this problem
Thanks
Deepika Mehta