TAG | godaddy
21
Godaddy Hosting – Medium Trust vs Inversion of Control
0 Comments | Posted by Dann in ASP.Net, godaddy
Whatever I think of Godaddy, they haven’t caused me too much pain yet, just minor inconvenience. This time it’s my precious StructureMap.
StructureMap, I like it and alot of people do, but it just won’t work under Medium Trust! So it’s either time to change Hosts, or change IoC container. Pretty obvious which one is the easier choice here.
So what choice do you have? Well not much. So the answer is:
Here’s a nice manual to go with it.
And what’s not able to be run in medium / partial trust:
Windsor Castle
Spring.Net
StructureMap
There was someone who was explaining how to download and build Spring.Net to allow it to run under Medium Trust, but that seems pretty likely to cause issues when you hack code (try to ignore my NHibernate post when I say that).
It may be the same for the other 2, but off the bat, Unity wins.
*Caveat: Unity is restricted in what it can do when run without ReflectionPermission (which is what Medium Trust disallows), but typically this won’t affect much from the normal IoC behaviour. The restrictions are explained on this MSDN doc, but it’s to do with internal and private constructors and properties. If it’s public you should be sweet.
18
DNSDataView saves my life from GoDaddy’s DNS servers, again.
0 Comments | Posted by Dann in Uncategorized
Its always tough to figure out what’s happening to your domains when you register them, set the Name Servers and… well nothing happens.
So you do this:
1) Download DNSDataView and run it
2) Write in your Domain name and your expected DOMAIN NAME SERVER
3) Click OK and if you get something to show (like below), then you can put these names as the primary and secondary name servers for your domain! (ping the servers to get the IPs if needed). If not try another server in the list.
The usual nameservers for me were:
ns14.domaincontrol.com
ns15.domaincontrol.com
ns25.domaincontrol.com
ns26.domaincontrol.com
ns48.domaincontrol.com
ns49.domaincontrol.com
ns50.domaincontrol.com
ns51.domaincontrol.com
