Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi,
I have asp.net website. Where I am making a payment. After payment I am inserting IPN data into database. My code is working fine when I am accessing my database from local pc or in network. I have configured my application in IIS from my pc which is live IP. I can access my all pages. But when I am accessing from live url, I can not access my database.

I have mysql database
I have a database in my local server.
I want to access database from live.
How can i get connectionstring for live.

Please anyone help me....
Posted
Comments
[no name] 24-Aug-12 9:26am    
You already have a connection string otherwise it would not work from your local machine. Change your connection string to point to where your server is.
ravi sharma11 25-Aug-12 1:38am    
Actually I am also new developer and trying to make a payment from paypal and webservice. No senier is available to tell me atleast 1 word. So please help me
ravi sharma11 25-Aug-12 1:42am    
Actually I have removed connection string and all code for insertion in database and kept a code to generate log in web service but still web service not calling.
In local machine, Web service working well....

1 solution

may be your MySQL server is not allowing remote connections. I m not sure which setting thats under but in SQL Server Configuration you just have to check "Allow remote TCP/IP connections" or something like that and you are done. See if MySQL has similar settings.
 
Share this answer
 
Comments
ravi sharma11 23-Aug-12 5:43am    
Actually when I am running programme from local database, It is working but from remote, It is not working. Is it codding problem ????????
I.explore.code 23-Aug-12 5:48am    
my guess is your database server hasn't been set to allow remote connections from a URL other than localhost. When you access your external URL, your connection request comes as a TCP/IP request which is probably getting kicked-off. So do check in your server settings if it allows remote connections. If that all alright then post your code that deals with connections and we can look at it.
ravi sharma11 24-Aug-12 0:22am    
We have to set it from database or IIS?????????
ravi sharma11 24-Aug-12 0:42am    
The actual problem is that my client is saying that anyone makes payment from Paypal.com. It should send IPN data from paypal. I have enabled my page paypal so whenever anyone makes payment, It redirects to my page, where I am getting the value and post all the data in web service using ajax, But I can not access my web service.

In a web service I have set my connection string and database connection..
I think I can not access database or web service.

From local everything working properly.
ravi sharma11 24-Aug-12 0:55am    
One more thing is that I can not access my web service from live, I think this.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900