Thursday, March 26, 2015

WCF on IIS 8 Windows Server 2012

Problem
I have a asp.net website that uses WCF to serve up JSON.  Recently this website was to a windows 2012 server.  When this was done, my posts to the WCF service stopped working.

Solution
I had to install features to .Net 4.5 to include HTTP-Activation for WCF Services.  Once I did this my WCF requests worked.

Steps
1. Press Windows + q to search and enter server manager in the search box

2. click on local server 


3. type in .net in roles and features select ASP.Net 4.5 click on add roles and features


4. select the server you want to work with and click next


5. click on features on the left
6. expand the .Net Framework 4.5 Features
7. expand WCF Services
8. Check HTTP Activation
9. click install.



Now your MVC app should work


Wednesday, March 25, 2015

SQL Server Reporting Services (SSRS) and MVC application with reports controller on same server

I ran into this problem recently and it took me a bunch of time to figure this out.

Problem
Getting prompted for a windows userid and password when accessing an MVC Controller action named http:\\mywebsite\reports.

Environment
Windows server 2012
SQL Server 2014 with SSRS
All of these items are on the same server as this was a development server.


Fix
I renamed my SSRS report manager URL to something other than reports.


Explanation
My MVC url http:\\mywebsite\reports was going to the reporting server, not my controller.  By renaming my SSRS report manager URL the names were now different and my problem was solved.


Friday, March 13, 2015

Tail for Notepad++

In notepad++ there is a plugin that lets you monitor logs just like tail.

I have tried it and it works great, much better than waiting for notepad++ to tell you the file is changed and hit refresh.

Here is a nice blog post on how to do this.

The name of the blog is great to.

http://fix.lazyjeff.com/2011/11/how-to-tail-file-in-windows-using.html