ASP Pages, Permission Problems

ASP Pages, Permission Problems SearchSearch

SMS & MMS Technical Forum » NowSMS Support - MMS & Advanced Issues (Product Support Only) » Archive through July 14, 2004 » ASP Pages, Permission Problems « Previous || Next »
Author Message
Kurt Gooding
Unregistered guest
Posted on Thursday, March 18, 2004 - 02:34 pm:   

Hi all,

I'm a keen 16 year old wanting to set up a new website. This product is amazing I must say, simple to set up (however harder to configure :p). Anyway I'm facing a problem when I'm reading of my database.

Basically, I have a page which reads ringtones of the database (ringtones.asp) which in order to get working I had to add the site to IIS and set the permissions through that. http://localhost/ringtones.asp it works fine here and lists the database entries, I ALSO have a button next to each entry which goes to "Send MMS Message.asp" (where the MMSFile is a hidden field which reads the URL paramater "ringtoneID" from ringtones.asp). The problem is it wont send the ringtone from the IIS server, obviuosly. But when I connect to http://localhost:8800/ringtones.asp(nowsms server), i dont get an error as such, but It is obviusly not reading of the database. I am pretty sure it is due to permissions or something. I am sorry I haven't asked a question in particular but I would like some guidance when linking to database.

Thank you all,

Kurt
Anonymous
 
Posted on Thursday, March 18, 2004 - 02:50 pm:   

Kurt,

I am holding a project similar to yours, but i am having a problem in sending what i read from the database as mms through the nowsms gateway. after i read the entries from the database, how do i send them to nowsms gateway? if you could please provide me with sample ASP code.
Kurt Gooding
New member
Username: Kurt

Post Number: 1
Registered: 03-2004
Posted on Thursday, March 18, 2004 - 02:58 pm:   

Are you using IIS? As i said mine works fine without using the NowSMS gateway, but as soon as I had the port number it wont, therefore i cant send.

Ill happily have a look at your code for you, if you have MSN it may be easier to send/recieve.

Cheers for the quick reply,

Kurt
Kurt Gooding
New member
Username: Kurt

Post Number: 2
Registered: 03-2004
Posted on Thursday, March 18, 2004 - 03:48 pm:   

Could I ask how your reading off the database, this is getting very frustrating now. It just wont allow it.

Cheers,
Kurt

Note: I have attached the code Which reads off the database and sends for you. Maybe give it a go and see if it works with you.

application/octet-streamASP files
Send MMS Message.asp (13.2 k)


application/octet-streamreading of the db
ringtones.asp (3.2 k)
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2160
Registered: 10-2002
Posted on Thursday, March 18, 2004 - 07:03 pm:   

Kurt,

I'd probably have to see the request that is going in to NowSMS in order to understand the logic flow.

Put NowSMS into debug mode by manually editing SMSGW.INI, and adding debug=Yes under the [SMSGW] section header. Then restart the NowSMS SMS service.

Repeat your attempt, and post the SMSDEBUG.LOG so that I can see what the transaction is that gets sent into NowSMS.

-bn
Kurt Gooding
New member
Username: Kurt

Post Number: 3
Registered: 03-2004
Posted on Saturday, March 20, 2004 - 04:57 pm:   

application/octet-streamsmslog
SMSDEBUG.LOG (21.9 k)


cheers for ur assistance so far.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2195
Registered: 10-2002
Posted on Monday, March 22, 2004 - 05:10 pm:   

Hmm ....

I forgot that we try to parse the multipart before we log it.

Is it possible to see the request that your ASP is generating?

From what I can see, we are receiving a request, where the value of the MMSFILE parameter is:

<%=(rsSendMMS.Fields.Item("MMSFile").Value)%>

This statement does not seem to be getting processed as ASP ... and instead is being posted as the literal value for the parameter.

There also seems to be a problem connecting to your modem. I'd recommend installing a modem driver for the modem under "Phone and Modem Options" in the Windows Control Panel. If your modem does not have a specific driver of its own, just pick the Standard 19200 bps driver from the list.

-bn
Kurt Gooding
New member
Username: Kurt

Post Number: 4
Registered: 03-2004
Posted on Tuesday, March 23, 2004 - 01:51 pm:   

Hi bryce,

thanks for your support, must be a busy man as I can see the amount of replys u post. Yes there were problems with the modem but thats fine.

Your right with the asp not getting processed, I dont know why. Reading through the forum I think ASPtear is the solution. But I need to clarify how to use this. My thoughts are that the ASPtear takes the asp page then posts it as a html, thefore I can then send it through to the NOWsms gateway. Is this right? I found a tutorial on a site called something like 4webguys.com which is on the ASPtear download site. Do I have to use any 3rd party software to use ASP?

Cheers

Kurt
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2205
Registered: 10-2002
Posted on Tuesday, March 23, 2004 - 07:47 pm:   

Hi Kurt,

Now I think I understand the problem.

You've tried to put the ASP into the HTML files on the NowSMS server. NowSMS won't process ASP. In order to process ASP, IIS has to be the web server.

The form in your ASP might POST to the NowSMS server ... so the ASP actually resides on the IIS server, but the request is actually submitted to NowSMS.

ASPTear is useful if you want to have your ASP script issue an HTTP request to another web server (like NowSMS). As I described above, the target of your form could always be NowSMS ... but for security reasons, you probably would not want anyone on the internet to be able to post to your NowSMS server.

Using something like ASPTear, the end users always connect into your ASP scripts. Your script then controls the submissions to NowSMS so that end users do not connect directly.

ASP.Net's HTTPWebRequest object can provide similar functionality. I posted a few pointers in the following thread...

http://support.nowsms.com/discus/messages/1/252.html

One of these days, I'll have to spend more time working with ASP myself ... but so far people have been pretty happy with the suggestions in the above thread.

Cheers!
Kurt Gooding
New member
Username: Kurt

Post Number: 5
Registered: 03-2004
Posted on Tuesday, March 23, 2004 - 09:20 pm:   

Thanks again bryce,

A Question for all NOWsms users:

Has anyone got any samples they would like to kindly share of a page using ASPtear. I would just like to see how it is done. I want to send ringtones from a database. Do I create a page which reads of the database then I create a sending page in ASP (where information such as the file to send is being read of the database and stored on the asp page). Then would ASPtear convert this to HTML but putting correct information onto the page instead of things being read of the database.

Just need to clarify how this ASPtear works.


Thank you asll,

Kurt

Login Login / Register Logout Logout Search Last 30 Days Topics Topics