visual studio 2017 - Attempting to install NuGet server on iis 10 on w2016 yields 404 not found error - SOLVED -
i though i'd push here reference's sake. had miserable time attempting work visual studio 2017 , hope others may benefit experience.
there extremely open invitation iis-competent (something not) review process , comment/correct necessary.
my environment: windows 10 creator (1703 current updates date)
- visual studio 2017, enterprise, 15.3 of goodies turned on.
windows 2016, again current updates.
- iis 10 webdeploy installed (that's whole other installation nightmare, suffice helped there , answers out there won't go here). turned on asp.net 4.6, otherwise accepted defaults.
my process: - per nuget.server documentation, create new asp.net mvc project using "empty" template , download , install nuget.server specified. i'm using .net 4.7 framework.
- compile , configure desired (at least ensure have api key in place).
- deploy iis using "publish" | web deploy option
try in touch nuget.server on website , fail miserably! bindings 192.168.1.25 (yes, server has fixed ip address), port 80. name of site awenuget , desired url www.awenuget.com.
to sure, of works fine if take same project described above, assign local port number (creating project anyway) , running application in visual studio works fine - poor mans nuget server sure, if have machine chops (i do, xenon chip, 32g of memory), makes great local nuget server. spin in visual studio first thing , start , have local nuget server wherever i'm developing, on bus, on train, in middle of forest, etc. nice.
but, not point. when took self-same project , deployed iis, miserable failure. solution: after doing bit of digging and, please remember, complete newb when comes iis , configuring it, stumbled across following: open host file (windows\system 32\drivers\etc) , added following:
192.168.1.25 www.awenuget.com
to said file , viola! still failed (solution below).
so, isn't plea assistance skilled @ iis, etc. offer better, more robust, different, etc. solution did , tell me might make better. works ok, i'm not on why seems work fine.
in short, comments welcome!
...and answer, me, take same hosts file entry made on server server see , install in dev machine's hosts file , viola! works fine.
your mileage may vary, , am, again, asking iis competent please offer suggestions, alternatives, etc. process can done correctly , please explain why works!
those of iis newbs (like me) thank you!
Comments
Post a Comment