access Serial port in asp.net at server side?

WEll.. I have a web site.. and I want to know two things
how to make system as web server ( where i would deploy my web site)
2nd IMPORTAnt:

how can i access SERial port at server side.. like we can access on windows application. what kind of sercurity setting i need to setup. please can any one guide . vs 2005 / 2.0
LVL 4
xPert_UmerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ted BouskillSenior Software DeveloperCommented:
For one if you want to run IIS successfully your host computer needs to run a server version of Windows.  Either the 'Web Edition' or Windows Server 2003

In order to protect your server from hackers IIS runs in sandbox mode.  Basically all functionality on the website cannot access the server itself.

So in order to do this you will be exposing your computer to potential harm on the internet.  The harder you try to protect your server the more difficult this will be.

When IIS is installed on the server it runs under a special account that has guest priviledges.  The trick will be finding out how to give the guest account permissions to access the serial port.

The following link discusses the IIS accounts: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/3648346f-e4f5-474b-86c7-5a86e85fa1ff.mspx?mfr=true

This URL has a product that can likely do what you need written for ASP: http://www.activexperts.com/activcomport/howto/asp/
0
xPert_UmerAuthor Commented:
thanks for the post.. but can you plz give me piece of code which shows how to setup us user account , i mean what sort of changes i need to make in web.config ?
0
Ted BouskillSenior Software DeveloperCommented:
There isn't a 'piece of code' for managing this and can't be done with the web.config.  It's actually very difficult to do because as I said to protect your computer from hackers Microsoft blocks web applications from direct access to the system.

I gave you a link that explained the IIS accounts.  You will have to do further research to figure out how to allow those accounts to access the serial port.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.