473,387 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

ASP and COM

Hi,

With this mail I would like to ask some professional expertise.

I've created an ASP form in vb.net which uses an external application.
Everything works fine. However, Currently, Only 1 user at a time uses the
webpage.

What I would like to know:
If, for example, 25 users at one time, are using the same webform,
triggering the same application (Word, Excell or something else for
example), what would happen ? Is every request automaticly in a que and
waits its turn or does an error occure? Let's assume that every action to be
executed by the external application takes 1 second. Or do I have to create
some sort of applications which holds a request que?

I know that using external applications is not the right approach but in
this case I do not have a work arround.

Looking forward to you responses

Thanks

John

Jan 8 '08 #1
10 1078
"John Devlon" <jo********@hotmail.comwrote in message
news:L6*********************@phobos.telenet-ops.be...
I've created an ASP form
Presumably you mean an ASP.NET form...?
If, for example, 25 users at one time, are using the same webform,
triggering the same application (Word, Excel or something else for
example), what would happen?
There's a strong possibility that your web app will crash, and may even hang
your web server...

Office is simply not designed to be used via server-side Automation -
Microsoft do not recommend it because it is so risky and unstable, and will
not support any solution which tries to do this...
http://support.microsoft.com/default...US;q257757#kb2
http://support.microsoft.com/default.aspx/kb/288367
I know that using external applications is not the right approach but in
this case I do not have a work arround.
http://www.aspose.com/Products/Default.aspx
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jan 8 '08 #2
Thanx Mark,

Yes, ASP.NET, that's what I meant.

An Office product was just an example. But then the same thing will happen
with other applications I asume.
I hoped that the os would que the requests.

But, again, thanx for the intel.

John

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:eP**************@TK2MSFTNGP04.phx.gbl...
"John Devlon" <jo********@hotmail.comwrote in message
news:L6*********************@phobos.telenet-ops.be...
>I've created an ASP form

Presumably you mean an ASP.NET form...?
>If, for example, 25 users at one time, are using the same webform,
triggering the same application (Word, Excel or something else for
example), what would happen?

There's a strong possibility that your web app will crash, and may even
hang your web server...

Office is simply not designed to be used via server-side Automation -
Microsoft do not recommend it because it is so risky and unstable, and
will not support any solution which tries to do this...
http://support.microsoft.com/default...US;q257757#kb2
http://support.microsoft.com/default.aspx/kb/288367
>I know that using external applications is not the right approach but in
this case I do not have a work arround.

http://www.aspose.com/Products/Default.aspx
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jan 8 '08 #3
No, other applications don't have to crash. It depends on what they are
doing and how they are built. Can 25 instances of them run in the same time?

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"John Devlon" <jo********@hotmail.comwrote in message
news:4G*********************@phobos.telenet-ops.be...
Thanx Mark,

Yes, ASP.NET, that's what I meant.

An Office product was just an example. But then the same thing will happen
with other applications I asume.
I hoped that the os would que the requests.

But, again, thanx for the intel.

John

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:eP**************@TK2MSFTNGP04.phx.gbl...
>"John Devlon" <jo********@hotmail.comwrote in message
news:L6*********************@phobos.telenet-ops.be...
>>I've created an ASP form

Presumably you mean an ASP.NET form...?
>>If, for example, 25 users at one time, are using the same webform,
triggering the same application (Word, Excel or something else for
example), what would happen?

There's a strong possibility that your web app will crash, and may even
hang your web server...

Office is simply not designed to be used via server-side Automation -
Microsoft do not recommend it because it is so risky and unstable, and
will not support any solution which tries to do this...
http://support.microsoft.com/default...US;q257757#kb2
http://support.microsoft.com/default.aspx/kb/288367
>>I know that using external applications is not the right approach but in
this case I do not have a work arround.

http://www.aspose.com/Products/Default.aspx
--
Mark Rae
ASP.NET MVP
http://www.markrae.net


Jan 8 '08 #4
"John Devlon" <jo********@hotmail.comwrote in message
news:4G*********************@phobos.telenet-ops.be...
But then the same thing will happen with other applications I asume.
Impossible to generalise...

Office doesn't work in this environment principally because it's
single-threaded and designed to interact with the desktop i.e. pop message
boxes, etc...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jan 8 '08 #5
Office doesn't work in this environment principally because it's
single-threaded and designed to interact with the desktop i.e. pop message
boxes, etc...
Also because it's a headache from licensing perspective.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:uj**************@TK2MSFTNGP03.phx.gbl...
"John Devlon" <jo********@hotmail.comwrote in message
news:4G*********************@phobos.telenet-ops.be...
>But then the same thing will happen with other applications I asume.

Impossible to generalise...

Office doesn't work in this environment principally because it's
single-threaded and designed to interact with the desktop i.e. pop message
boxes, etc...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jan 8 '08 #6
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:%2****************@TK2MSFTNGP05.phx.gbl...
>Office doesn't work in this environment principally because it's
single-threaded and designed to interact with the desktop i.e. pop
message boxes, etc...

Also because it's a headache from licensing perspective.
Well yes, but that goes without saying... :-)
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jan 8 '08 #7
Webform using Office bits to produce something?

If so, it could cause problems, especially if you are actually spinning up
the application on the server, rather than using the DLLs from Office. I am
not sure whether or not it would crash, however. This would depend on what
you are doing and how long the process takes to complete. And, probably most
importantly, whether or not you are locking data in the Office application.

If you are not locking data in the database, it is unlikely, with 25 users,
that two will hit the application instance at the precise same moment, so
you might have no problem. This is, of course, assuming you are only using
the application to produce a result you do not feel you could produce with
other bits. If you are somehow stacking 25 users on a single thread, you
will blow up. I can pretty much guarantee that.

So far I have focused on Office, but it appears you also have other
applications in mind. And, they too may cause problems, but it really
depends on how they are instantiated. Anything that only allows a single
instance could be a blocking point if it does not contain some form of
standard in and standard out for you to use it like a server/service. With
some applications, however, you might be able to spin up 25 instances of the
application without a problem and none of the clients will block another
client. The big issue here is how much memory the application takes when it
is in memory and how long it takes to spin up.

Without having a specific, this is about the best answer I can give you.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************
| Think outside the box!
|
*************************************************
"John Devlon" <jo********@hotmail.comwrote in message
news:L6*********************@phobos.telenet-ops.be...
Hi,

With this mail I would like to ask some professional expertise.

I've created an ASP form in vb.net which uses an external application.
Everything works fine. However, Currently, Only 1 user at a time uses the
webpage.

What I would like to know:
If, for example, 25 users at one time, are using the same webform,
triggering the same application (Word, Excell or something else for
example), what would happen ? Is every request automaticly in a que and
waits its turn or does an error occure? Let's assume that every action to
be executed by the external application takes 1 second. Or do I have to
create some sort of applications which holds a request que?

I know that using external applications is not the right approach but in
this case I do not have a work arround.

Looking forward to you responses

Thanks

John

Jan 8 '08 #8
Office doesn't work in this environment principally because it's
single-threaded
Really? :)
Jan 8 '08 #9
An Office product was just an example. But then the same thing will happen
with other applications I asume.
I hoped that the os would que the requests.
As long as the object was designed for this purpose in mind it'll be ok.
The main difference with Office apps is that they need to interact with the
desktop and are not designed to be automated from the web. Most COM
components will work fine via asp as long as they don't do anything that
interacts with the desktop, or puts locks on common resources etc.

But as has been said, "it depends", you can't generalise, but COM as a
technology is perfectly suitable for automation via asp or asp.net, however
what your COM object does may reduce it's suitability for automation.
Jan 8 '08 #10

It's my opinion that using external applications, is not the best solution
and never to be used in a server applicication...Using components gets
better results...

However, some components are so expensive... It will make your head spin....
In some company's is buying a component up to 25.000 $ not an option ....

John


"Aidy" <ai**@xxnoemailxx.comwrote in message
news:Ye******************************@bt.com...
>An Office product was just an example. But then the same thing will
happen with other applications I asume.
I hoped that the os would que the requests.

As long as the object was designed for this purpose in mind it'll be ok.
The main difference with Office apps is that they need to interact with
the desktop and are not designed to be automated from the web. Most COM
components will work fine via asp as long as they don't do anything that
interacts with the desktop, or puts locks on common resources etc.

But as has been said, "it depends", you can't generalise, but COM as a
technology is perfectly suitable for automation via asp or asp.net,
however what your COM object does may reduce it's suitability for
automation.

Jan 9 '08 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: William C. White | last post by:
Does anyone know of a way to use PHP /w Authorize.net AIM without using cURL? Our website is hosted on a shared drive and the webhost company doesn't installed additional software (such as cURL)...
2
by: Albert Ahtenberg | last post by:
Hello, I don't know if it is only me but I was sure that header("Location:url") redirects the browser instantly to URL, or at least stops the execution of the code. But appearantely it continues...
3
by: James | last post by:
Hi, I have a form with 2 fields. 'A' 'B' The user completes one of the fields and the form is submitted. On the results page I want to run a query, but this will change subject to which...
0
by: Ollivier Robert | last post by:
Hello, I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9 system. The link succeeds but everytime I try to run php, I get a SEGV from inside the libcnltsh.so library. ...
1
by: Richard Galli | last post by:
I want viewers to compare state laws on a single subject. Imagine a three-column table with a drop-down box on the top. A viewer selects a state from the list, and that state's text fills the...
4
by: Albert Ahtenberg | last post by:
Hello, I have two questions. 1. When the user presses the back button and returns to a form he filled the form is reseted. How do I leave there the values he inserted? 2. When the...
1
by: inderjit S Gabrie | last post by:
Hi all Here is the scenerio ...is it possibly to do this... i am getting valid course dates output on to a web which i have designed ....all is okay so far , look at the following web url ...
2
by: Jack | last post by:
Hi All, What is the PHP equivilent of Oracle bind variables in a SQL statement, e.g. select x from y where z=:parameter Which in asp/jsp would be followed by some statements to bind a value...
3
by: Sandwick | last post by:
I am trying to change the size of a drawing so they are all 3x3. the script below is what i was trying to use to cut it in half ... I get errors. I can display the normal picture but not the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.