Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

I want buy item from myshop.

Newbie Spellweaver
Joined
Dec 16, 2016
Messages
15
Reaction score
0
I've done every progress in the tutorial video.


And I can't buy item in myshop.

attatch1 - I want buy item from myshop. - RaGEZONE Forums




Yes, I already know the disccusion about this problem about linking with IIS webserver and database.


But I don't understand what they means, cus I don't care about computer language whole my life time.


I already change ip of client at 5 position with my ip.(start with 180.)


Let me know what I have to do and how can I fix it.




1. I confuse the making webserver.


I guess the program Ms SQL server including the IIS program or something like that because the server can run.


But seeing that the server don't respond when buying the item myshop, I guess three possibility.


first. I need another program and additional progress for webserver.(Using like AMP or php, mysql)


second. I miss the some progress what I have to do.


three. there exists more progress what I have to do.


Which is right?




2. I don't understand about 'link webserver with database'


If MS SQL server includes IIS program, I've done for linking webserver with database. And I have to accomplish more progress to link completely.


Or the progress including obdcad32.exe might be the linking progress. But I follow that progress exactly what I see. In this case some computer setting is wrong condition.




I know the fact that above guesses is worthless for you. I just have to sort my thinking for understanding your advices.
















I'm really appreciate if you explain what I have to do in step by step.


And I prepare some picture for your convenience.








1. run the trickster client


2. Myshop disconnect

3. Create IIS server.


4. Install PHPManagerForIIS-1.2.0-x64


5. Create new windows user "tricktser"




6. install php driver for sql server
>> my computer has ODBC dirver 11. so i installed php 5.6(non thread safe for IIS) and SQLSRV 3.2, right? I just follw the microsoft recommendation.
php-5.6.29-nts-Win32-VC11-x64


7. I select php_pdo_sqlsrv_56_nts.dll, php_sqlsrv_56_ts file and paste it in C:\inetpub\php-5.6.29-nts-Win32-VC11-x64\ext where php ext file.


8. I change the context of php.ini file.
attatch2 - I want buy item from myshop. - RaGEZONE Forums


9. I create connect file. and paste it wwwroot file. the context is below.


<?php
$ServerName = "HK-PC\SQL";
$connectionInfo = array( "Database"=>"gmg_account");


$conn = sqlsrv_connect( $serverName, $connectionInfo);


if( $conn )
{
echo "Connection established.\n";
}
else
{
echo "Connection could not be established.\n";
die( print_r( sqlsrv_errors(), true));
}


?>






10. And I got HTTP 500 errer sitll........ (from my localhost/connect.php...)




11. Distributed Transaction Coordinator start it, also to make it automatic startup




12. I install webmatrix for asp file. opened C:\Trickster\trickster-online-s2-server-release\CBA\Inc\config.asp change like below.




<%@LANGUAGE="VBSCRIPT" CODEPAGE="950"%>
<%
Option Explicit
response.Buffer = True
response.Charset = "big5"
Server.ScriptTimeout = 180


Dim MsSqlIp, MsSqlData, MsSqlUserName, MsSqlPassWord
Dim HostName


'################MsSQLシニセレョwウsアオウ]クm################
MsSqlIp = "192.168.25.28,1443"
MsSqlData = "gmg_account"
MsSqlUserName = "eliza"
MsSqlPassWord = "password" << my sql password


'####################ウ]クmコクォHョァ####################
HostName = "http://" & request.ServerVariables("HTTP_HOST") & "/"
%>








13. I edit web.config from C:\Trickster\trickster-online-s2-server-release\CBA like below.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<clear />
<add value="index.html" />
<add value="index.asp" />
</files>
</defaultDocument>
</system.webServer>
<system.data>
<DbProviderFactories>
<remove invariant="System.Data.SqlServerCe.4.0" />
<add invariant="System.Data.SqlServerCe.4.0" name="Microsoft® SQL Server® Compact 4.0" description=".NET Framework Data Provider for Microsoft SQL Server Compact" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
</DbProviderFactories>
</system.data>
<connectionStrings>
<add connectionString="server=HK-PC\SQL;database=gmg_account;uid=eliza;pwd=password" name="gmg_account" providerName="System.Data.SqlClient" />
<add connectionString="Server=HK-PC\SQL;Database=trickster;Uid=eliza;Pwd=password" name="trickster" providerName="System.Data.SqlClient" />
</connectionStrings>
</configuration>




I don't have idea about DbPrividerFactories contents. What should I write there?


14. I hexed my clinet 5 position(search 180). Where is the two additional position needed fixing?


15. ISS connection stiring.
connection stiring.PNG - I want buy item from myshop. - RaGEZONE Forums


Q. How could I link gmg_account and trickster databases to my IIS webserver?
Q. I use wireless router. And I can run the server with my ipconfig ip(IPv4 192.168.25.48 now). But I wondering I have to use public ip where is confirmed by internet web site.211.212.6.190




This content is all the thing I have done.


I waiting for your advices. Thanks.
 

Attachments

You must be registered for see attachments list
Last edited:
Newbie Spellweaver
Joined
Nov 15, 2015
Messages
36
Reaction score
15
If you are using SQL Server Express Edition with myshop build
Please check the following link and video.





 
Last edited:
Upvote 0
Newbie Spellweaver
Joined
Feb 1, 2012
Messages
73
Reaction score
3
install IIS service role
and add ASP feature

lunars - I want buy item from myshop. - RaGEZONE Forums

then plz test by open web browser and access cShop/index.asp
 
Last edited:
Upvote 0
Newbie Spellweaver
Joined
Dec 16, 2016
Messages
15
Reaction score
0
If you are using SQL Server Express Edition with myshop build
Please check the following link and video.








Thanks very much! Above contents are helpful a lot!



The MyShop stuff runs on classic ASP, not PHP. You don't need the PHP stuff.

Thanks! You saved me!



install IIS service role
and add ASP feature

lunars - I want buy item from myshop. - RaGEZONE Forums

then plz test by open web browser and access cShop/index.asp

Thanks for your advice! ..And it approaches another problem....
attatchment - I want buy item from myshop. - RaGEZONE Forums
IIS.PNG - I want buy item from myshop. - RaGEZONE Forums

+ how can i use the spoiler button?
 

Attachments

You must be registered for see attachments list
Last edited:
Upvote 0
Newbie Spellweaver
Joined
Feb 1, 2012
Messages
73
Reaction score
3
click start

Seatch for "Internet Information (IIS) Manager" open it

Default Web Site
double click at Directory Browsing
1 - I want buy item from myshop. - RaGEZONE Forums

Enable then Apply
2 - I want buy item from myshop. - RaGEZONE Forums

Goto Application Pool
DefaulAppPool -> Advance Setting
Enable 32-bit Application choose "Ture"
Classic.Net AppPool -> Advance Setting
Enable 32-bit Application choose "Ture"
4 - I want buy item from myshop. - RaGEZONE Forums

Restart Manage Server
3 - I want buy item from myshop. - RaGEZONE Forums

Then plz test you cShop/index.asp again
 

Attachments

You must be registered for see attachments list
Upvote 0
Newbie Spellweaver
Joined
Dec 16, 2016
Messages
15
Reaction score
0
click start

Seatch for "Internet Information (IIS) Manager" open it

Default Web Site
double click at Directory Browsing
View attachment 159108

Enable then Apply
View attachment 159107

Goto Application Pool
DefaulAppPool -> Advance Setting
Enable 32-bit Application choose "Ture"
Classic.Net AppPool -> Advance Setting
Enable 32-bit Application choose "Ture"
View attachment 159109

Restart Manage Server
View attachment 159106

Then plz test you cShop/index.asp again

I did it. And it isn't work. I don't know where I am start.

attatch1 - I want buy item from myshop. - RaGEZONE Forums attatch2 - I want buy item from myshop. - RaGEZONE Forums



web.config script
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<tracing>
<traceFailedRequests>
<add path="*">
<traceAreas>
<add provider="ASP" verbosity="Verbose" />
<add provider="ASPNET" areas="Infrastructure,Module,Page,AppServices" verbosity="Verbose" />
<add provider="ISAPI Extension" verbosity="Verbose" />
<add provider="WWW Server" areas="Authentication,Security,Filter,StaticFile,CGI,Compression,Cache,RequestNotifications,Module,FastCGI" verbosity="Verbose" />
</traceAreas>
<failureDefinitions statusCodes="500" />
</add>
</traceFailedRequests>
</tracing>
<handlers>
<add name="ASPhtml" path="*.html" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\SysWOW64\inetsrv\asp.dll" resourceType="Unspecified" preCondition="bitness32" />
<add name="ASPhtm" path="*.htm" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\SysWOW64\inetsrv\asp.dll" resourceType="Unspecified" preCondition="bitness32" />
<add name="asp module" path="*.asp" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\SysWOW64\inetsrv\asp.dll" resourceType="Unspecified" preCondition="bitness32" />
<add name="added Classic asp" path="*.asp" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\SysWOW64\inetsrv\asp.dll" resourceType="Unspecified" preCondition="bitness32" />
</handlers>
<security>
<authentication>
<basicAuthentication enabled="false" />
</authentication>
</security>
<staticContent>
<mimeMap fileExtension=".asp" mimeType="text/html" />
</staticContent>
<asp enableParentPaths="true" />
</system.webServer>
<system.web>
<identity impersonate="false" />
</system.web>
</configuration>

config.asp script
<%@LANGUAGE="VBSCRIPT" CODEPAGE="950"%>
<%
Option Explicit
response.Buffer = True
response.Charset = "big5"
Server.ScriptTimeout = 180

Dim MsSqlIp, MsSqlData, MsSqlUserName, MsSqlPassWord
Dim HostName

'################MsSQLシニセレョwウsアオウ]クm################
MsSqlIp = "192.168.25.44" 'シニセレョwウsアオヲaァ}ヲpェGヲウコン、f・iィマ・ホIP,コン、f帝
MsSqlData = "gmg_account" 'ケCタクアbクケシニセレョwヲWコル
MsSqlUserName = "eliza" 'シニセレョw・ホ、皋W
MsSqlPassWord = "password" 'シニセレョwアKスX

'####################ウ]クmコクォHョァ####################
HostName = "http://" & request.ServerVariables("HTTP_HOST") & "/"
%>
But I'm glad to your kindness. Merry Christmas!


+ Can I get your web.config and CBA file for comparing to mine?
 

Attachments

You must be registered for see attachments list
Last edited by a moderator:
Upvote 0
Newbie Spellweaver
Joined
Nov 15, 2015
Messages
36
Reaction score
15
@lunars
Will you upload SS when you opened myshop in a game?

tags are entered by handwriting. I also want to ask the moderator.
 
Upvote 0
Initiate Mage
Joined
Dec 25, 2016
Messages
3
Reaction score
0
we have a same problem.

npFc60w - I want buy item from myshop. - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Last edited by a moderator:
Upvote 0
Newbie Spellweaver
Joined
Dec 16, 2016
Messages
15
Reaction score
0
@lunars
Will you upload SS when you opened myshop in a game?

tags are entered by handwriting. I also want to ask the moderator.
myshop.PNG - I want buy item from myshop. - RaGEZONE Forums

My IIS log is below.

#Software: Microsoft Internet Information Services 7.5
#Version: 1.0
#Date: 2016-12-25 00:02:48
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status time-taken


req error log
failed req log.PNG - I want buy item from myshop. - RaGEZONE Forums


Thanks.
 

Attachments

You must be registered for see attachments list
Last edited:
Upvote 0
Newbie Spellweaver
Joined
Nov 15, 2015
Messages
36
Reaction score
15
I suppose that "Cash Fail" appears that you probably have not been able to connect to SQL yet.
A sample with instance name connection and user ID set to "sa" is shown below.
config.asp
C:\Trickster\trickster-online-s2-server-release\CBA\Inc\config.asp
PHP:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="950"%>
<%
Option Explicit
response.Buffer = True
response.Charset = "big5"
Server.ScriptTimeout = 180
Dim MsSqlIp, MsSqlData, MsSqlUserName, MsSqlPassWord
Dim HostName
'################MsSQL數據庫連接設置################
MsSqlIp = "HK-PC\SQL"   '數據庫連接地址如果有端口可使用IP,端口
MsSqlData = "gmg_account"   '遊戲帳號數據庫名稱
MsSqlUserName = "sa"    '數據庫用戶名
MsSqlPassWord = "password"  '數據庫密碼
'####################設置網站信息####################
HostName = "http://" & request.ServerVariables("HTTP_HOST") & "/"
%>
web.config
C:\Trickster\trickster-online-s2-server-release\CBA\web.config
PHP:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
 <system.webServer>
  <defaultDocument>
   <files>
    <clear />
    <add value="index.html" />
    <add value="index.asp" />
   </files>
  </defaultDocument>
 </system.webServer>
 <system.data>
  <DbProviderFactories>
   <remove invariant="System.Data.SqlServerCe.4.0" />
   <add invariant="System.Data.SqlServerCe.4.0" name="Microsoft® SQL Server® Compact 4.0" description=".NET Framework Data Provider for Microsoft SQL Server Compact" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
  </DbProviderFactories>
 </system.data>
 <connectionStrings>
  <add connectionString="server=HK-PC\SQL;database=gmg_account;uid=sa;pwd=password" name="gmg_account" providerName="System.Data.SqlClient" />
  <add connectionString="Server=HK-PC\SQL;Database=trickster;Uid=sa;Pwd=password" name="trickster" providerName="System.Data.SqlClient" />
 </connectionStrings>
</configuration>
I hope it will work.
Generation
I think the cause is probably different from lunars.
 
Upvote 0
Newbie Spellweaver
Joined
Dec 16, 2016
Messages
15
Reaction score
0
I suppose that "Cash Fail" appears that you probably have not been able to connect to SQL yet.
A sample with instance name connection and user ID set to "sa" is shown below.
config.asp
C:\Trickster\trickster-online-s2-server-release\CBA\Inc\config.asp
PHP:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="950"%>
<%
Option Explicit
response.Buffer = True
response.Charset = "big5"
Server.ScriptTimeout = 180
Dim MsSqlIp, MsSqlData, MsSqlUserName, MsSqlPassWord
Dim HostName
'################MsSQL數據庫連接設置################
MsSqlIp = "HK-PC\SQL"   '數據庫連接地址如果有端口可使用IP,端口
MsSqlData = "gmg_account"   '遊戲帳號數據庫名稱
MsSqlUserName = "sa"    '數據庫用戶名
MsSqlPassWord = "password"  '數據庫密碼
'####################設置網站信息####################
HostName = "http://" & request.ServerVariables("HTTP_HOST") & "/"
%>
web.config
C:\Trickster\trickster-online-s2-server-release\CBA\web.config
PHP:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
 <system.webServer>
  <defaultDocument>
   <files>
    <clear />
    <add value="index.html" />
    <add value="index.asp" />
   </files>
  </defaultDocument>
 </system.webServer>
 <system.data>
  <DbProviderFactories>
   <remove invariant="System.Data.SqlServerCe.4.0" />
   <add invariant="System.Data.SqlServerCe.4.0" name="Microsoft® SQL Server® Compact 4.0" description=".NET Framework Data Provider for Microsoft SQL Server Compact" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
  </DbProviderFactories>
 </system.data>
 <connectionStrings>
  <add connectionString="server=HK-PC\SQL;database=gmg_account;uid=sa;pwd=password" name="gmg_account" providerName="System.Data.SqlClient" />
  <add connectionString="Server=HK-PC\SQL;Database=trickster;Uid=sa;Pwd=password" name="trickster" providerName="System.Data.SqlClient" />
 </connectionStrings>
</configuration>
I hope it will work.
@Generation
I think the cause is probably different from lunars.

Could you let me know how I can add the <DbProviderFactories> and ProviderName="System.Data.SqlClient" in connectionStrings?

I try to rewrite it in web.config file, But added information cause error on IIS.


I solved problem "cashfail" by adding .asp on request filtering in IIS.
but next error page come out.

First.PNG - I want buy item from myshop. - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Upvote 0
Newbie Spellweaver
Joined
Dec 16, 2016
Messages
15
Reaction score
0
Anyone who can translate this?
translate.PNG - I want buy item from myshop. - RaGEZONE Forums

co - I want buy item from myshop. - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Upvote 0
Newbie Spellweaver
Joined
Nov 15, 2015
Messages
36
Reaction score
15
The code I posted is just a rewrite of the web.config that lunars wrote first
You do not need to add it, because you are configuring it using the sengi123 guide using IIS.
I have not been able to solve it, So, I would like to hear opinions from other members.

An error in the screen shot is shown below.
Code:
[COLOR=#000000]Microsoft OLE DB Provider for ODBC Drivers error '80004005'[/COLOR]
[COLOR=#000000][Microsoft][ODBC SQL Server Driver][SQL Server] Login failed- User: Reason: Not defined as a valid user of a trusted SQL Server connection
[/COLOR]


I'm sorry I couldn't be much of a help
 
Last edited:
Upvote 0
Newbie Spellweaver
Joined
Dec 16, 2016
Messages
15
Reaction score
0
The code I posted is just a rewrite of the web.config that lunars wrote first
You do not need to add it, because you are configuring it using the sengi123 guide using IIS.
I have not been able to solve it, so I want to have an account with other members.

An error in the screen shot is shown below.
Code:
[COLOR=#000000]Microsoft OLE DB Provider for ODBC Drivers error '80004005'[/COLOR]
[COLOR=#000000][Microsoft][ODBC SQL Server Driver][SQL Server] Login failed- User: Reason: Not defined as a valid user of a trusted SQL Server connection
[/COLOR]



When I stuck in some progress, I format my OS to start as initial condition. And.....I forgot the progress I had....

Thank for your translation!
 
Upvote 0
Back
Top