Unity registration by convention doesn't work unless you rebuild solution - asp.net-mvc-4

I am trying to use the Registration by Convention feature of Unity in a pretty standard MVC4 app. I'm using the following code...
unityContainer.RegisterTypes(AllClasses.FromAssembliesInBasePath(),
WithMappings.FromMatchingInterface,
WithName.Default,
WithLifetime.ContainerControlled);
Here's my problem. If a rebuild is done on the solution, the registration works perfect. If I go right back into debugging the app after I end it, not causing a build, the registration does not work. It appears to add some registrations to the container, but not all.
Has anyone ran into a similar problem or have a solution to this one? I'll provide any additional information that is needed, but I'm assuming this one will only be fixed by "I've seen this before" :)

Related

Can I get by without adding Vetur to my Vue.js 3 Apps?

I'm using Visual Studio Code to develop Vue.js 3 apps. In my early learning on vuemastery.com it was instructed to use Vetur, but I'm finding that Vetur is too much of a hassle to get it working, and it's consuming a lot of time. The Vetur documentation is just "tossed salad" and doesn't target specific issues; it needs a lot of editing, too. Can I get by without Vetur?
Vetur can't find tsconfig etc.
Cannot find module '../assets/ etc.
In terms of necessity, nothing obliges you to use it it just helps with for example definition jumping and completion in some cases.
As stated in some comments, its main purpose it to ease development and if doesn't do that for you no need to have it. I would still recommend setting some time aside so you can figure it out and try and having it running :D

Not able to import and use correctly gson on javaEE web

I'm trying to change from netbeans to IntelliJ, so I'm a bit confused.
The project is simple, a java controller, connected from a Android device, and using plsql to make all the stuff on the database.
Everything works fine until we reach the first library, GSON, seems like I don't import it well, but I have used all the fixes that I have found on internet.
So when i make a search from my android device, I get this Exception.
Also, the libraries don't show on the Libraries section
[I'm not able to put more than 2 links because of my rep, i will put in a comment below]
Thanks for everyone that tries to help this little noob!
Gretings, rudeboy.
Okay, the problem was solved on this post, and basically is putting all the libraries on WEB-INF/lib, and it solve it, hope this helps to anyone

My Ftp Custom Provider is not invoked

I've gone through all steps in tutorial on IIS Website, how create my own custom Ftp Logging/Authentication Provider. Unfortunately, it doesn't work still. What can I do?
I've been struggling with this problem for past few days. And I finally got it.
Sometimes it doesn't work at all. Sometimes, it works for a while and suddenly, after few changes in code [or somewhere else] it stops and you can't find out what happened [that was in my case].
To solve my problem [and, I believe, many others] helps me this article:
http://blogs.msdn.com/b/robert_mcmurray/archive/2012/08/28/troubleshooting-custom-ftp-providers-with-etw.aspx
It's pretty hard to google, but value of tool from article is enormous.
I hope you can find and solve your problem with it, too.

Accidental delete iOS framework

So i have been having the hardest time getting my iphone application approved. And i sorta when on a little rampage through some of my code.
In my shear stupidity I thought that maybe I did not need the SenTestingKit.framework. So i attempted to remove it from my program, and when asked if i would like to delete or remove references i accidently clicked delete.
However upon reviewing some crash logs PRE-Deletion of SenTestingKit.framework I found the following...
Again this error was before I deleted the framework. The crash code to this is 0xe7ffdefe
Could someone please tell me where i might get the sentestingkit.framework from? And also if you have anyidea why it is causing the crash that would be so amazing to hear.
Thanks!!!
To restore that framework, just re-install Xcode. Or maybe your trash still has it.
About the iOS devices that complain about not finding the SenTestkingKit: I'd assume so, as it's a Xcode-only framework used for test cases. You aren't supposed to link it when distributing the app. Why would the user want to run test cases?

Setup project with managed custom actions. Big heck of a headache

I'm trying to create a setup project and I can't believe how painful it could be. Non of the tools that I've tried to use, haven't satisfy me.
How come? Well, let's see:
First and easiest option: Setup project built in Visual Studio. Easy and fast. you can easily implement custom actions, even if you're code was written in c# or vb.net. Exactly what I wanted. But this approach has some drawbacks and the major one is unbelievably painful way to implement custom dialogs. For example if I need to ask for DB credentials, authorize the user and proceed with the rest of installation. But no. There is no way to build custom setup dialog in VS. Actually there is a way, but it's not an easy one. I mean what, are you kidding me? I have to spent a day to create a couple of simple dialogs?
Second option: Use some kind of a tool. Like InstallShield. You have to pay for it, yes, fortunately it's damn cheap. Only $5500. Not a big deal, right? Well maybe, but for me it's like "dude, forget about it"
Third option: Use WIX Nice, has many options. Not so easy to use like the one built-in VS but has many much better features. The only problem - I spend a few hours trying to convince that thing to run my code written in c#. I failed. Nothing helped and I give up.
Now. Please, please my fellow experts, all knowing developers. Help me. What should I do? What's the best way to solve my problem (believe me my boss will kill me, he likes to achieve results over dead bodies of his employees).
Tell me is there any better way to edit .wid files. Using Orca tool, isn't an easy solution.
Or show me a real example of setup project built with WIX which can run managed c# code.
Thank you!
I implemented a custom dialog by simply displaying a form in my custom action. This is a straightforward thing to do.
I don't suggest using either "Setup Projects" ( aka Visual Studio Deployment Projects ) or Managed Custom Actions ( in your context you are referring to InstalUtil custom actions ).
For managed custom actions I use Windows Installer XML - DTF ( Deployment Tools Framework ). This builds and packages your CA to look and feel to MSI like a C++ CA which means you can then consume it using InstallShield, WiX, Wise and so on.
I also don't suggest using CA's as fake dialogs. If you want a fancier UI write an external UI handler ( not a simple task ). I suspect your real problem though is that VDRPOJ doesn't expose this very well, that WiX is lot's of writing in XML. InstallShield gives you a drag drop IDE for working on custom dialogs. But then that would be one of the many reasons it isn't free.