When using Microsoft Html Control the ReadyState never gets further than Interactive - ihtmldocument2

We are using the Microsoft MSHtml control to render and modify web pages, we have today deployed to Citrix and found that the document state often does not get any further than interactive while we are expecting it to get to completed.
We are using c# and we do have a UI, like i said in my question this is an intermittant issue. Even when we are loading the same pages, on a normal desktop its fine, through Citrix we get the intermittant issue – Kev Hunter 1 min ago [delete this comment]
We are using the Microsoft.MsHtml and interop dll's – Kev Hunter
Has anyone seen this before?

What language/technology are you using?
Have you confirmed that all of the resources in the page are actually downloaded?
When you say "Microsoft MSHTML Control" which control are you using specifically? The Web Browser Control? Or literally the MSHTML object alone?
http://msdn.microsoft.com/en-us/library/aa752047(VS.85).aspx
If you use MSHTML outside of a web browser control, you need to make sure you run a message loop or the document will never load. ...

Related

Run WinForms control inside WebForms and take screenshot of it

Like the title says, is it possible to run a winforms component inside a asp.net website and then take a screenshot of it?
It is possible to place a user control on a web page but my experience with it in the past were really bad.
I tried this back in 2005 and it worked on Internet Explorer only, and even in a well-defined intranet there were machines where it failed.
So I would vote against.
For the screenshot part, please see this SO posting.
Short answer: no. The ASP.NET runtime won't let you create a Form within its sandbox. Access to the Graphics library is also tied to WinForms, so I doubt that will be much help.
I would take a look at WPF; the XAML markups for layout of controls can be rendered in a forms app or a web browser, allowing you to create a web control that looks like a windows form control.

running a server side exe from an asp page

i have a classic asp page that calls an exe that does some complex processes. I want the asp page to wait until the exe completes processing. I tried shell. no luck. any solution?
-Vivek
AspExec used to be a popular tool, but it doesn't seem like the company sells it anymore. You can still find it here for download. See this article for using it, as well as other options.

What is meaning of ACTIVE in ASP.NET(ACTIVE Server Pages)?

What is meaning of ACTIVE in ASP.NET(ACTIVE Server Pages)?
Can you please provide an explanation on why it is named 'ACTIVE'?
Active was one of Microsoft's favorite words when the original ASP first came out. Other items like ActiveDirectory, ActiveSync, and ActiveX Data Objects also came out of this mid-late 90's "Active" era.
It had more to do with marketing than anything IMO.
EDIT: And ActiveX and Active Accessibility...
This is referring to the fact that the pages are running ActiveX scripts and server controls, from here:
Microsoft® Active Server Pages (ASP)
is the server-side execution
environment in Microsoft Internet
Information Server (IIS) 3.0 that
enables you to run ActiveX™ scripts
and ActiveX server components on the
server. By combining scripts and
components, developers can create
dynamic content and powerful Web-based
applications easily.
It is due to you are Actively Running Scripts.
Developing functionality in ASP websites is enabled by the active scripting engine's support of the Component Object Model (COM), with each object providing a related group of frequently-used functions and data attributes.
See here.
This is purely my opinion (and not necessarily the fact) but I would assume because unlike an HTML page it's not static. It's just another word for Dynamic.
Edit: David's post offers a better actual description of it.
i think it might have to do with ActiveX ... see here -> http://en.wikipedia.org/wiki/Active_Scripting
An active web document consists of a computer program(JS,applet etc.) that the server sends to the browser and that the browser must run locally. • When it runs, the active document program can interact with the user and change the display continuously.
It means that the pages have behavior... that they act to generate the result the user sees, rather than simply being a copy of the document the user ends up seeing.

ViewState and Web Load Testing

I'm trying to do load testing against an ASP.NET web site and I need to be able to parametertise field value of a page to test different code paths.
I had great success with JMeter when load testing a JSP web site before. However, because ASP.NET encodes all form values in the ViewState, changing control values does not really work.
I Googled this problem and people said the web testing tool in Visual Studio Team Tester Edition works well with ASP.NET pages. However, it cost quite a bit so I am just wondering does anyone know how to get around the ViewState issue with JMeter or WAPT?
I've used WebLoad before. Its scripting language is basically JS, so you may be able to find controls on the page using JS and invoke them as part of your load script.
WebLoad is free.
I've figured out how to do this, basically you cannot simply record a static script with JMeter. What you need to do is to record a request, send it, capture the viewstate in the response and send the viewstate back in next request.
If you need more details, I've documented how to do this along with some screenshots on my blog post
As webapps get more complex (ViewState, AJAX, etc) it is tougher and tougher to use traditional load testing tools. That's because they try to jam a ton of virtual users on a very small amount of hardware resources.
My company, BrowserMob, took a different approach. We build a load testing service that uses real web browsers to drive load. Your scripts end up being essentially functional tests (specifically Selenium scripts). My background has been in Selenium for some time (I created Selenium RC and founded OpenQA.org), so as soon as cloud computing made it possible to rent the 5TB+ of RAM necessary to do this, I jumped on the idea :)

How to capture image from client webcam in asp.net

I am working on an ASP.Net application and I want users to be able to take a picture with their local webcam and then upload it to the server.
I can, of course, rely on users doing this manually via their locally installed software, save the image as a file and do a normal file upload. However, what I really want to do is incorporate it all into a UI in the browser.
I know this means accessing local resources so do I need an ActiveX control or Silverlight or is there something I could do in Javascript for example?
This is initially intended for an Intranet app so I can have control of the client's environemnt, including stipulating the browser etc, which means I can use an ActiveX control if I have to. However, it would be nice if I could write this in a generic way so it could be used in an internet app generally (happy to stipulate that it only works on Windows clients but would be good to get it to work in FireFox).
Thanks.
The only acceptable and universal way to this for now is Flash/Flex application. Flash player presets literally in every browser in the world and all of them has such capability.
VideoCap Pro is quite popular, and it offers an ActiveX version, have you checked it out?
This sounds very suspicious to me. You realize the nefarious applications this could be applied to, right? A web page that when a user browses to it, unknownst to them, their webcam snaps a pic of them. ... I don't like it.
You could use the Nimbb API to do the webcam video recording inside a browser.
It is possible to get the image from client webcam in asp.net, you have to install the Silverlight 4 with Visual Studio 2010:
Go to following link:
http://wildermuth.com/2009/11/23/Taking_a_WebCam_Photo_with_Silverlight

Resources