To run your WATiN Automation code/Script from web application or by using web application
Jus add this Header tag in .aspx file
< AspCompat="true" >
Example: - suppose that you have code file as MyWatinCode.aspx and MyWatinCode.aspx.cs.
Now go to MyWatinCode.aspx file and replace the top most Header Tag
<@ Page Language="C#" AutoEventWireup="true" CodeBehind=" MyWatinCode.aspx.cs" Inherits="AutomationTesting._ MyWatinCode" ValidateRequest="false">
By
<@ Page Language="C#" AutoEventWireup="true" CodeBehind=" MyWatinCode.aspx.cs" Inherits="AutomationTesting._ MyWatinCode" AspCompat="true" ValidateRequest="false" >
And run your Automation code in web Application .if still you are facing any issues please reply me.
Correction/Comments are always welcome :)
Happy Automation.....
Thanks,
Md.Jawed