Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6139327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:58:33+00:00 2026-05-23T17:58:33+00:00

Update 6/20/2011 I can only build the test project once or twice before getting

  • 0

Update 6/20/2011
I can only build the test project once or twice before getting this error. Moles is unusable for me until this is resolved. Deleting obj/bin and closing/reopening visual studio isn’t practical.

The Error

Error 32 The command “”C:\Program Files\Microsoft Moles\bin\moles.exe” @C:\src\qp\mvc3\Solution\QP.Tests.Moles\obj\Debug\Moles\moles.args” exited with code -1002. QP.Tests.Moles

The Description

Was trying to use moles with nunit but had trouble… so I created a new mstest project with a single test. The test built and I was able to debug into the SUT and verify HttpContext contained values expected. Subsequent attempts to build the test project fail with the above.

note: I am running resharper 6 EAP (i know, i know) but I have disabled it’s mstest runner. besides, this is a build error.

What I’ve Tried

Have tried rebuild, clean and deleting obj/bin directories in the test project.

The Code

namespace QP.Tests.Moles
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        [HostType("Moles")]
        public void TestMethod1()
        {
            INewsService _newsService = new NewsService();
            BHttpContext context = BHttpContext.SetCurrent();
            BIPrincipal user = context.SetUser();
            BIIdentity identity = user.SetIdentity();
            identity.Name = "AMole";

            var newsItemViewModel = new NewsItemViewModel()
            {
                Headline = "some headline that passes validation",
                FullMessage = "some full message that passes validation",
                ProviderListItems = new List<SelectListItem>()
                {
                    new SelectListItem()
                        {
                            Selected = false,
                            Text = "some text",
                            Value = "some value"
                        }
                }

            };
            _newsService.UpdateNewsItem(newsItemViewModel, DateTime.Now);
        }
    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T17:58:34+00:00Added an answer on May 23, 2026 at 5:58 pm

    Closing and re-opening VisualStudio is a workaround for this issue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

UPDATE 2011.09.13 This bug has been resolved by Adobe. The example code below now
update: the error only occurs when logged into R from within emacs what works:
Update 25/03/2011 I've marked this question as answered, while I don't yet have the
Update 2011-Jan-06: Believe it or not, I went ahead and incorporated this interface into
How can I convert this string date to datetime in oracle. 2011-07-28T23:54:14Z Using this
Update: Check out this follow-up question: Gem Update on Windows - is it broken?
Update: Now that it's 2016 I'd use PowerShell for this unless there's a really
UPDATE - A comprehensive comparison, updated as of February 2015, can be found here:
I have the following in configure.ac: AC_CHECK_PROGS(MAKE,$MAKE make gmake,error) if test x$MAKE = xerror
Can I use Visual Studio 2011 running on the Windows 8 Developer Preview to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.