Wednesday, June 09, 2010

fitSharp with .NET 4.0 hangs Fitnesse test

I ran into an issue with fitSharp with .NET 4.0.  I built a very simple test page, with a ColumnFixture test.  Clicked the test button, and Fitnesse hung.

I made several edits to the test page, and still had no luck.  Just hanging, with no indication what was causing the problem.  So, I went to commandline and manually executed the fitSharp runner (Runner.exe) with the command line that was being generated from the test page.  Here are the results that I got:

System.IO.FileLoadException: Could not load file or assembly 'file:///C:\tools\fitSharp\fit.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'file:///C:\tools\fitSharp\fit.dll' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework.This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm,Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.LoadFrom(String assemblyFile)
   at fitSharp.Machine.Engine.ApplicationUnderTest.AddAssembly(String assemblyName)
   at fitSharp.Machine.Application.Shell.ParseArguments(String[] commandLineArguments)
   at fitSharp.Machine.Application.Shell.RunInCurrentDomain(String[] commandLineArguments)
   at fitSharp.Machine.Application.Shell.Run(String[] commandLineArguments)

.NET 4.0 has made some changes to the default CAS policies (some details here.

The resolution to the problem?  Simply creating a configuration file for Runner.exe to enable the loadFromRemoteSources option for the assembly.

Create a file called Runner.exe.config in the fitSharp folder (with Runner.exe), and add the following to the file:

<configuration>
  <runtime>
    <loadFromRemoteSources enabled="true" />
  </runtime>
</configuration>

Re-run the test in Fitnesse, and all should be good!

54 Comments:

At 5:20 PM, Anonymous Anonymous said...

Thank you, this fixed my problem!

 
At 9:11 PM, Blogger Kay Johansen said...

Thank you SO much, I'm surprised this isn't mentioned on fitSharp's github site!

 
At 2:33 PM, Blogger PencilShinChan said...

Saved me a ton of time - thank you!

 
At 2:35 PM, Blogger PencilShinChan said...

This comment has been removed by the author.

 
At 8:28 PM, Anonymous Anonymous said...

This is really interesting, You are a very skilled blogger.
I've joined your feed and look forward to seeking more of your wonderful post. Also, I've shared your site in my
social networks!
My site : best usa casinos online

 
At 12:48 AM, Anonymous Anonymous said...

Your means of describing everything in this article
is truly pleasant, all be capable of without difficulty be aware of it, Thanks a
lot.
Look at my website : https://us.etrade.com/e/t/welcome/globaltradingsteps

 
At 8:09 AM, Anonymous Anonymous said...

What's up, I log on to your new stuff like every week. Your humoristic style is witty, keep doing what you're
doing!

Here is my site: how to make extra money on the internet

 
At 8:21 AM, Anonymous Anonymous said...

Very shortly this web site will be famous amid all blogging users, due to it's fastidious articles or reviews

Feel free to surf to my web page hot jobs houston

 
At 8:22 AM, Anonymous Anonymous said...

That is really attention-grabbing, You are an excessively skilled blogger.
I have joined your rss feed and look forward to looking for
more of your great post. Also, I've shared your web site in my social networks

Feel free to visit my homepage - online teaching jobs

 
At 8:34 AM, Anonymous Anonymous said...

I am sure this article has touched all the internet people, its really really nice article on building up new webpage.


my blog post ... making money easy online

 
At 8:42 AM, Anonymous Anonymous said...

Hello! This is kind of off topic but I need some advice
from an established blog. Is it very difficult to set
up your own blog? I'm not very techincal but I can figure things out pretty quick. I'm thinking about setting up my own but
I'm not sure where to start. Do you have any ideas or suggestions? Thank you

Look at my web-site ... High Paying Jobs Without Degree

 
At 4:52 AM, Anonymous Anonymous said...

I blog often and I really thank you for your content.
Your article has truly peaked my interest. I will take a note of
your blog and keep checking for new details about once per week.
I opted in for your Feed as well.

Also visit my website - legitimate work at home jobs

 
At 4:54 AM, Anonymous Anonymous said...

Truly no matter if someone doesn't understand then its up to other viewers that they will help, so here it takes place.

Also visit my web site: work at home jobs for moms

 
At 5:03 AM, Anonymous Anonymous said...

Nice post. I learn something totally new and challenging on blogs I stumbleupon every day.

It's always exciting to read articles from other authors and practice something from their sites.

Also visit my blog :: forex platform

 
At 6:59 AM, Anonymous Anonymous said...

I am really enjoying the theme/design of your website.
Do you ever run into any web browser compatibility problems?
A small number of my blog visitors have complained
about my site not working correctly in Explorer but looks great
in Firefox. Do you have any solutions to help fix this problem?


My weblog: quick fast Payday loan

 
At 8:37 AM, Anonymous Anonymous said...

Howdy! I realize this is sort of off-topic but I
had to ask. Does managing a well-established blog like yours take
a large amount of work? I'm brand new to writing a blog however I do write in my journal every day. I'd like to start a blog so I can share my personal
experience and thoughts online. Please let me
know if you have any suggestions or tips for brand new aspiring bloggers.
Appreciate it!

Feel free to surf to my webpage; make online money at home

 
At 9:29 AM, Anonymous Anonymous said...

Having read this I thought it was rather informative.
I appreciate you finding the time and effort to put this content together.
I once again find myself personally spending a significant
amount of time both reading and leaving comments.
But so what, it was still worth it!

my website: make money fast online

 
At 2:39 AM, Anonymous Anonymous said...

Good post. I learn something totally new and challenging on
websites I stumbleupon everyday. It will always be interesting to
read through articles from other authors and practice something from other web sites.


Take a look at my page ... gagner de l argent rapidement et gratuitement sur internet

 
At 6:22 AM, Anonymous Anonymous said...

I do not even know how I ended up here, but I thought this
post was great. I don't know who you are but definitely you are going to a famous blogger if you aren't already
;) Cheers!

Feel free to visit my web page ... how to make money fast online

 
At 6:28 AM, Anonymous Anonymous said...

Touche. Sound arguments. Keep up the amazing spirit.



Here is my web blog - http://www.youtube.com/watch?v=FNzF2Z6ZLF8

 
At 2:01 PM, Anonymous Anonymous said...

I think the admin of this website is actually working
hard in support of his website, because here every stuff is quality based stuff.


Feel free to surf to my page: earn money For Free online

 
At 10:54 PM, Anonymous Anonymous said...

Ahaa, its nice conversation on the topic of this post here at this blog, I have read all that,
so at this time me also commenting here.

my weblog: emergency money for bills

 
At 10:48 AM, Anonymous Anonymous said...

Write more, thats all I have to say. Literally, it seems
as though you relied on the video to make your point.
You definitely know what youre talking about, why throw away your intelligence on just posting videos to your weblog when you could be
giving us something informative to read?

My web blog: easy way to make money online for free

 
At 8:53 AM, Anonymous Anonymous said...

I think this is one of the most vital information for me.

And i am glad reading your article. But want to remark on few general things,
The web site style is ideal, the articles is really great :
D. Good job, cheers

Take a look at my site :: how to make money fast

 
At 10:51 PM, Anonymous Anonymous said...

Hello, i think that i saw you visited my blog thus i got here to go back the want?

.I'm attempting to in finding issues to enhance my website!I suppose its good enough to make use of a few of your ideas!!

Look at my page: make money online

 
At 11:42 PM, Anonymous Anonymous said...

Thank you a lot for sharing this with all folks you really know
what you're speaking approximately! Bookmarked. Please also consult with my web site =). We can have a link trade contract between us

Feel free to visit my web blog; http://www.youtube.com/watch?v=jLuC1nG5cPk

 
At 2:46 PM, Anonymous Anonymous said...

constantly i used to read smaller posts which also clear their motive, and that is also
happening with this article which I am reading here.

Feel free to visit my website ... http://www.youtube.com/watch?v=3fvHz3wGzyQ

 
At 3:42 PM, Anonymous Anonymous said...

This excellent website really has all the information I needed concerning this subject and didn't know who to ask.

Look at my weblog ... http://www.youtube.com/watch?v=aIM8WR8SlpY

 
At 1:37 AM, Anonymous Anonymous said...

Hi friends, how is everything, and what you want to say
about this paragraph, in my view its genuinely amazing in support of
me.

my page - Real Work From Home Jobs

 
At 2:18 AM, Anonymous Anonymous said...

Hi to all, how is the whole thing, I think every one is getting more
from this web page, and your views are good designed for new viewers.


Feel free to visit my homepage http://www.youtube.com/watch?v=sB4GcBp3hpM

 
At 1:21 PM, Anonymous Anonymous said...

Ahaa, its nice conversation concerning this article here at this webpage,
I have read all that, so at this time me also commenting here.


My site - http://www.youtube.com/watch?v=MohyYgkbfvg

 
At 1:28 PM, Anonymous Anonymous said...

Thanks for sharing your thoughts about work from home jobs.
Regards

Feel free to visit my page; how to work from home on your Computer

 
At 1:43 PM, Anonymous Anonymous said...

I know this if off topic but I'm looking into starting my own weblog and was curious what all is required to get setup? I'm assuming having a blog
like yours would cost a pretty penny? I'm not very web savvy so I'm not 100% certain. Any tips or advice would be greatly appreciated. Many thanks

Take a look at my site :: best way To make money online

 
At 3:01 PM, Anonymous Anonymous said...

Hello There. I found your blog using msn. This is a
really well written article. I'll be sure to bookmark it and return to read more of your useful info. Thanks for the post. I will certainly comeback.

Feel free to visit my web page: http://www.youtube.com/watch?v=swBAUzWV35w

 
At 4:28 PM, Anonymous Anonymous said...

Hurrah, that's what I was looking for, what a data! present here at this web site, thanks admin of this website.

Feel free to visit my web page: work from home online jobs

 
At 8:39 AM, Anonymous Anonymous said...

When someone writes an piece of writing he/she maintains the image of a user
in his/her mind that how a user can understand it.
Therefore that's why this post is amazing. Thanks!

my page - http://www.youtube.com/watch?v=ElGsgM51U9k

 
At 10:52 AM, Anonymous Anonymous said...

Great article, totally what I wanted to find.


Also visit my blog How to make online money

 
At 1:15 PM, Anonymous Anonymous said...

I have been exploring for a little for any high
quality articles or blog posts on this kind of
space . Exploring in Yahoo I ultimately stumbled
upon this web site. Studying this info So i am satisfied to convey that I have an incredibly excellent uncanny feeling I
found out exactly what I needed. I so much definitely will
make certain to do not put out of your mind this web site
and give it a glance regularly.

My web page ... http://www.youtube.com/watch?v=W5jSKDxWpgs

 
At 1:05 PM, Anonymous Anonymous said...

What's up to every one, the contents present at this site are genuinely awesome for people knowledge, well, keep up the good work fellows.

My blog post - http://www.youtube.com/watch?v=Uw6v_3nV_co

 
At 1:48 PM, Anonymous Anonymous said...

Woah! I'm really loving the template/theme of this site. It's
simple, yet effective. A lot of times it's challenging to get that "perfect balance" between usability and visual appeal. I must say you have done a amazing job with this. Also, the blog loads very quick for me on Opera. Outstanding Blog!

Feel free to visit my site: http://www.youtube.com/watch?v=e-PcE-YfT-Y

 
At 2:54 PM, Anonymous Anonymous said...

Hurrah! Finally I got a blog from where I can in fact take useful information regarding my study and knowledge.


Feel free to surf to my homepage - http://www.youtube.com/watch?v=2RzOqNkVMoE

 
At 7:54 PM, Anonymous Anonymous said...

Nice respond in return of this query with genuine arguments and
describing everything regarding that.

my webpage - http://www.youtube.com/watch?v=PA_ADwAcO2k

 
At 8:49 PM, Anonymous Anonymous said...

Thank you for sharing your info. I really appreciate your efforts and I
will be waiting for your further post thank you once again.


my web blog - http://www.youtube.com/watch?v=BlwW8-iwjKY

 
At 9:32 PM, Anonymous Anonymous said...

I'm not sure exactly why but this blog is loading extremely slow for me. Is anyone else having this issue or is it a issue on my end? I'll check
back later on and see if the problem still exists.

Feel free to surf to my blog; http://www.youtube.com/watch?v=izTRFX1H_oQ

 
At 1:45 AM, Anonymous Anonymous said...

Hmm it seems like your blog ate my first comment (it
was super long) so I guess I'll just sum it up what I wrote and say, I'm thoroughly enjoying your blog.
I too am an aspiring blog blogger but I'm still new to the whole thing. Do you have any tips for newbie blog writers? I'd genuinely
appreciate it.

my site ... http://www.youtube.com/watch?v=JvHtc6p4seE

 
At 1:44 PM, Anonymous Anonymous said...

Greetings! Very helpful advice within this post! It is the little changes that produce the most significant changes.
Many thanks for sharing!

Feel free to visit my page :: legit ways to make Money Online

 
At 7:32 AM, Anonymous Anonymous said...

Hello mates, fastidious paragraph and fastidious arguments
commented at this place, I am genuinely enjoying by these.


Here is my site Miscrits cheats

 
At 12:12 AM, Anonymous Anonymous said...

Very interesting points you have noted ,
thanks for posting . "My work is a game, a very serious game." by M.

C. Escher.

Also visit my web-site: earn cash for doing stuff you normally do on the internet

 
At 2:07 PM, Anonymous Anonymous said...

Very good blog post. I definitely appreciate this site.
Keep writing!

my homepage :: my sex games

 
At 1:11 PM, Anonymous Anonymous said...

I have read so many posts on the topic of the blogger lovers but
this article is really a nice article, keep
it up.

my website: free ps3

 
At 5:47 PM, Anonymous Anonymous said...

I believe this web site holds some very
wonderful info for everyone. "It is easy enough to define what the Commonwealth is not. Indeed this is quite a popular pastime."
by Elizabeth II.

Feel free to visit my website; psn code

 
At 10:37 AM, Anonymous Anonymous said...

Hi there, yeah this article is really fastidious
and I have learned lot of things from it concerning blogging.
thanks.

Also visit my web site; Forex Binary Options Brokers

 
At 4:13 PM, Anonymous Anonymous said...

I've recently come across a new racing app for smartphones, its name is Real Race: Asphalt Road Racing and it seems to be nearly like a racing sim with arcade gameplay.
It boasts really advanced AI and I'm playing it already 6 times in a row or so and it's still amusing and interesting. It's kinda fresh to drive and overcome other players on six or so maps. Game feels similar to grand prix featuring GT cars like lamborghini or porsche. Racing through dunes and grasslands, asphalt and roads, it's like Need for Speed Carbon or Most Wanted, and as a matter of fact the newest part, NFS: Rivals. There are no chases with law enforcement, but I suppose it's for the best as multiplayer gameplay grants awesome occasion to demonstrate your cool underground drag racing prowess.
In-game great velocity gives an illusion of literally being there and racing with top racers as seen on TV. Stress spikes are not far and few.

On a scale of 1 to ten I'd give it a strong eight. List of features is nearly staggering, so is its playability. Besting the leaderboards really entangles you and you're directly pulled in. It trully reminds me of Fast and Furious. Overall it's a awesome, ambitious free game.

 
At 5:00 PM, Anonymous Anonymous said...

thank you , I spent whole day to figure out how I can handle this error.

 

Post a Comment

<< Home