WatiN Help C#

hi i'm trying to do the first WatIn  tutorial thing and i seem to be getting stuck and don't know why

here is my code

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
using WatiN.Core;
namespace GettingStarted
{
    [TestFixture]
    [RequiresSTA]
   public class Class1
    {
        [Test]
        public void Should_start_google()
        {
            using (var browser=new IE("google.com")) 
            {
                browser.TextField(Find.ByName("q")).TypeText("hello");
                browser.Button(Find.ByName("btnG")).Click();
            }
        }
    }
}

Open in new window


and the errors are

Warning	1	A reference was created to embedded interop assembly 'c:\screencasts\GettingStarted\packages\WatiN.2.1.0\lib\net40\Interop.SHDocVw.dll' because of an indirect reference to that assembly created by assembly 'c:\screencasts\GettingStarted\packages\WatiN.2.1.0\lib\net40\WatiN.Core.dll'. Consider changing the 'Embed Interop Types' property on either assembly.	c:\screencasts\GettingStarted\GettingStarted\CSC	GettingStarted
Warning	2	A reference was created to embedded interop assembly 'c:\screencasts\GettingStarted\packages\WatiN.2.1.0\lib\net40\Microsoft.mshtml.dll' because of an indirect reference to that assembly created by assembly 'c:\screencasts\GettingStarted\packages\WatiN.2.1.0\lib\net40\WatiN.Core.dll'. Consider changing the 'Embed Interop Types' property on either assembly.	c:\screencasts\GettingStarted\GettingStarted\CSC	GettingStarted
Error	3	Program 'c:\screencasts\GettingStarted\GettingStarted\obj\Debug\GettingStarted.exe' does not contain a static 'Main' method suitable for an entry point	c:\screencasts\GettingStarted\GettingStarted\CSC	GettingStarted



how do i fix this to get this to run

thanks
Tiger858Asked:
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.

Marten RuneSQL Expert/Infrastructure ArchitectCommented:
You could try to temporarily turn of UAC, or execute as administrator

Regards Marten
0
käµfm³d 👽Commented:
Highlight the ShDocVw DLL within the Solution Explorer's "References" folder. The press the F4 key to bring up the "Properties" window. Change the "Embed Interop Types" value to False.

Screenshot
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
.NET Programming

From novice to tech pro — start learning today.