Last post Feb 07, 2015 06:56 AM by Angie xu - MSFT
Feb 04, 2015 07:32 AM|geraldbauer|LINK
I am working in a visual studio premium 2013 solution that has a web project and class library. The web project is called UI and the class library project is called AppService. We are using ServiceStack and AngularJS. The UI project is calling the AppService
project via AngularJS controller. The class library is a pass through which calls APIs for data.
The web project was created as an empty web project that another team member created. Items were added as needed. It is set up to use IIS Express. The web project is defined to use port 30000 so that the URL is http://localhost:30000/.
When I try running the application using port 30000 I am not getting data back; heck, when I am in debug mode I am not stepping into the AppService project. I am the only person on the team experiencing this problem. There are four other developers on the
In the UI project we have a Global.asax file. In the Application_Start property we are setting a new instance of the AppServiceAppHost object. We are able to step into this method when debugging.
The crux of the problem is that when I change the port number to something other than 30000 (e.g. 30001, 30002) everything works. We are getting data; we step into the AppService project when debugging.
When I am using port 30000, I am seeing in the IIS express logs the error "Object reference not set to an instance of an object" with the stack trace pointing to ServiceStack.HttpHandlerFactory..ctor().
Feb 07, 2015 06:56 AM|Angie xu - MSFT|LINK
I am the only person on the team experiencing this problem. There are four other developers on the team.
Here are a few suggestions that might help:
•Clean and Rebuild - Cleaning and rebuilding your current Project (Right-click > Clean, Right-click Rebuild respective) and see if that makes any difference at all.
•Closing Older IIS Instances - Stop your existing application and ensure that you don't have any additional IIS processes or instances of your local Web Server running.
•Consider Restarting Visual Studio - If these issues are still persisting after the above steps, try restarting Visual Studio (and even your local machine)
•Proper Project Targeting - If you are dealing with multiple Projects, ensure that the Project that you have a breakpoint in is actually running (Right-click your Solution > Set Startup Projects... > Ensure your current Project is selected)
Please let me know if there is still has same issue.