Solved

how to use a server comport in ASP?

Posted on 2004-09-18
7
280 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

Question has a verified solution.

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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
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…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

705 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