Solved

how to use a server comport in ASP?

Posted on 2004-09-18
7
278 Views
Last Modified: 2008-01-09
I am not really familiar with asp but I think it should be easy using the Server.CreateObject. I found a lot documentation using DB (Server.CreateObject("ADODB.Recordset")) and file manipulation(server.CreateObject("Scripting.FileSystemObject")) so why not using the object for a comport?

I thought that  Server.CreateObject("MSCOMMLib.MSComm.1") was a smart idea but it turned out to be a mistake. The object is in the register but i still get error(s)
So what am I doing wrong? What should I do instead?
0
Comment
Question by:De_doos
  • 3
  • 2
7 Comments
 
LVL 13

Expert Comment

by:davidlars99
ID: 12094146
ok, here is a complete discussion of what you're looking for

http://www.experts-exchange.com/Programming/Wireless_Programming/GSM/Q_20856444.html
0
 

Author Comment

by:De_doos
ID: 12095270
Thank you for your quick response. I have some good news and some bad news. The good thing is that the code in "accepted answer" was what I had in mind so i dont feel that stupid. The bad thing is... It is not working. Instead of that, I get an error 'ASP 0177 : 80040112'

This has according to Internet something to do with licence and permission etc etc.
But:
On server I installed a program using the object (MScomm) which is working fine and also nothing is mentioned in the discussion you referred to.

So what can be wrong?
0
 

Author Comment

by:De_doos
ID: 12305926
It looks like there is no answer to be expected in the futere so i tried some things my own. I rewrote the server program in different ways and one of these programs using "createobject " returend an error 429. that rings a bell. Because it means a lot of things i decided to reinstall te server. format c and so on. I guess i mixed up two different windows. that was a week ago. Today i installed the new server and it looks to me the program itself is working as it should. I will giv a (final?) report when iam using the cpu as server again.
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 13

Expert Comment

by:davidlars99
ID: 12311005
there is an answer, but make sure you have GSM modem first, I think that is what you should have in order to use MSCOMMLIB
0
 

Author Comment

by:De_doos
ID: 12610167
Solution

I wanted to reinstall the old windows (W98) in order to find the origin of the problems but I regret to say it is likely I deleted the backup. By now I think it is about time to close this question before the administration does.

In the current situation server side and client side (ASP) are working properly using the mscomm object. This means that no other objects or programs are needed and one can stick to the asp code given in the link above QED.

So what went wrong ?
I am not sure but I think I mixed up components of  w98, w95 or nt. On server side this will create an error 429 which is recognisable using VB but on client side it does not give the 429 error. Using the object directly in VB without errors occurring will make you believe the problem is in the ASP code but this proved to be wrong. I think this info will do for anyone having the same problem I encountered.    

davidlars99 I appreciated your comments on this issue but I hope you agree that your solution has nothing to do with it. ( it might be for those who have no license for mscomm, that I don’t know. )


0
 

Accepted Solution

by:
ee_ai_construct earned 0 total points
ID: 12641589
Question answered by asker or dialog valuable.
Closed, 50 points refunded.
ee_ai_construct (replacement part #xm34)
Community Support Admin
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question