Solved

how to use a server comport in ASP?

Posted on 2004-09-18
7
277 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
ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

 
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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

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…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…

831 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