PDA

View Full Version : Access Denied Error


silverbullet
12-13-2006, 04:13 AM
Code:

[quote]


Dim api As New discountASP.CustomerApi
Dim blnTest As Boolean
Try
blnTest = api.VerifyKey("XXX Correct Key XXX")
MsgBox(blnTest.ToString)
Catch ex As Exception
MsgBox(ex.Message)
End Try
api.Dispose()
api = Nothing</CODE>Results in:

[quote]


System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> DiscountASP.net.UserErrorException: Access denied.</CODE>


My IP address is on the white list and in fact I cannot run any of the test apps from this forum. Am I totally missing something?


Thanks!

vvsharma
12-13-2006, 08:11 AM
Are you running the code on DASP Servers or locally? In the former case ,you will need to add dasp server's Ip to the whitelist for which you will need to issue a ticket.
Its most probably an IP issue assuming the key you provided is correct.

Vikram

DiscountASP.NET
www.DiscountASP.NET (http://www.discountasp.net/)

silverbullet
12-13-2006, 08:24 AM
The code is being run locally (not from DASP servers), from a winforms app. I've checked the IP on the setup screen, and the one it says I am using is in the whitelist. I am also using the key listed on the same page. Could it have something to do with the fact that my machine is using an internal IP (10.1.1.x) and is not actually directly exposed to the outside?

Thanks,
Brett

vvsharma
12-13-2006, 09:02 AM
Yes,if you are behind a router,your public Ip needs to be white listed and not your internal Ip.

To know your Ip see: http://myipaddress.com/show-my-ip-address/

Vikram

DiscountASP.NET
www.DiscountASP.NET (http://www.discountasp.net/)

silverbullet
12-13-2006, 09:08 AM
My external IP is in the white list. In fact, it won't let you put in an internal IP as I tried that to make sure.

Thanks,
Brett

Aristotle
12-13-2006, 10:18 AM
If you have more than one entry in your IP whitelist, make sure that it's comma separated with no spaces.

Aristotle

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)

silverbullet
12-13-2006, 10:25 AM
I have it such as: "1.1.1.1,2.2.2.2"

vvsharma
12-13-2006, 11:23 AM
Just reconfirm your Ip once again,because that the cause of your error.
You should see your IP in the Control panel itself,something like -Your current IP Address: X.X.X.X

If the problem still persists,issue a ticket, so that DASP support will be able to help you with it.

Vikram

DiscountASP.NET
www.DiscountASP.NET (http://www.discountasp.net/)

silverbullet
12-13-2006, 11:51 AM
I have created a ticket. Thanks!

silverbullet
12-14-2006, 03:38 AM
All seems to be ok now. I received an e-mail from support saying there was an issue with the API database that has now been resolved.

Thanks!
Brett

wisemx
12-14-2006, 09:00 AM
Yep, they sent that e-mail to everyone that signed up for the API launch, I believe.
As usual the support guys here are top shelf.
Salute,
Mark

mjp
12-18-2006, 05:29 AM
It wasn't sent to everyone, just those who we had to generate new keys for.


We're glad to see so many API users! But then DiscountASP.NET users are an "early adopter" bunch, so it's not surprising. ;)


mjp
DiscountASP.NET
<SUB><SUP>http://DiscountASP.NET (http://DiscountASP.NET)

selcukyavuz
05-07-2007, 01:55 AM
I received same error, I read this topic and Idid what say previous posts.

Ihave a ticket and I received this answer : "Please try also posting your issue on our community forum. We do have numerous experienced customers and staff members who actively participate in providing conding related solutions and recommendations."

What should i do ?

Thanks.

Aristotle
05-07-2007, 05:14 AM
Have you added your IP address or the calling computer's IP address to the IP white list?

Aristotle

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)

selcukyavuz
05-07-2007, 09:00 AM
Yes. I am sure.

Is threr wrong anything this screenshot ?

vvsharma
05-07-2007, 09:28 AM
I see your Whitelist texbox empty.Please populate it with the IP address in the screenshot!

Vikram

DiscountASP.NET
www.DiscountASP.NET (http://www.discountasp.net/)

selcukyavuz
05-09-2007, 09:52 AM
Oohh http://community.discountasp.net/emoticons/eyes.gif

HowI amstupid :(

I think everything isok, when i see my ip under textbox.

Thanks a lot vvsharma !

JamesIrish
12-22-2007, 08:09 AM
Hi Guys,


I'm afraid I have the same kind of error, ASP.Net kicks out:
Server was unable to process request. ---> Access denied.
instead of
Server was unable to process request. ---> DiscountASP.net.UserErrorException: Access denied.
as stated in Bretts first post.


I DO NOT get this error when connecting locally from my dev machine, I HAVE entered my server's IP address into the whitelist box. However that seems to have made no difference. As far as I am aware I have entered everything correctly, no spaces etc..


Can one of the admin's please take a look at my account (domain: brnc.co.uk) -- I have tried raising a ticket, but they dont wish to know! lol


Many Thanks


James

Post Edited (Irish) : 12/24/2007 10:15:29 PM GMT

bruce
12-24-2007, 06:37 AM
You'll need to include the primary IP on the server rather than your unique IP because windows makes an outbound connection using the primary IP.

Create a support ticket and we can supply the server IP to you.

Bruce

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)

JamesIrish
12-24-2007, 07:12 AM
Ah right, cheers Bruce, will do.


James



Note to those who havea similar problem to myself:
When creating a ticket ask for the "servers interface IP" (mine was 64.79.X.X)

Post Edited (Irish) : 12/24/2007 10:18:08 PM GMT