Deploying a BreezeJS using EntityFramework and WebAPI - entity-framework

I am trying to deploy an application created using Breezejs and EntityFramework using the Breeze WebAPI. When I run it in my development environment it runs perfectly, but the minute I upload it to our server I get the following error "Error: Metadata query failed for: ../api/Entity/Metadata; Not Found" when I try and make a call.
In my development environment if I go to "localhost:59510/api/Entity/Metadata" I can see the xml displayed, but if I go to "www.example.com/api/Entity/Metadata" I get the error.
Am I missing a dll somewhere? Is it an error with my configuration in breezejs, web api's or with EntityFramework?
Thanks
Jeff

Sounds like you are missing something. Check the event viewer on the deployment machine. Could also be missing the breeze controller dlls

Related

VSO Migration: Unable to retrieve information for security object $PROJECT:vstfs:///

I have installed OpsHub and trying to migrate the source code from VSTF2013 to VSO. After selecting the TFS Endpoint and VSO Endpoint, clicking on Next. When trying to load the projects to be migrated I am getting this error, "TF50608: Unable to retrieve information for security object $PROJECT:vstfs:///Classification/TeamProject/faedd6e7-e2bc-4f91-917f-3823c951e71b, it does not exist."
When I select some other TPCs in the same VSTF server, I am able to load the projects in VSTF. Could not understand this error code if this is related to security configuration at TPC level or OpsHub is trying to load some project which is does not exist?
I have done some search on this error code TF50608, looks like this issue can occur if any Team Project is deleted and created with the same name. I am able to connect to TPC and load the projects using TFS Administration Tool (http://tfsadmin.codeplex.com/) but OpsHub fails to load the projects.
Is there any work around to skip this error and continue with the selection of the Team Project?
We have verified it is a defect. It will be resolved in the next build coming out soon.
use VERSION 1.0.1.005, in which this issue is resolved

.NET Framework Method Not Found 'Void System.GC.Collect'

I'm trying to run some service and I'm getting this message
Method not found: 'Void System.GC.Collect(Int32,
System.GCCollectionMode)'
I suspect the server because this service runs on other servers.
I really want to know what the source of this problem because I came across this problem on other servers.
I try to take of code from my service and finally I realized that even I run a console application with only one static main and call the GC I get this error,
I'm using Windows Server 2003 with Framework 2.0 and 3.5
When you create your console application make sure your target framework is not set to Client Profile FrameWork 3.5.
The above setting is in Application tab of your project properties
If you want to use GCCollectionMode and Framework 2.0 you will have to install .NET 2.0 Service Pack 1

How to deploy ASP.NET MVC4 application with SQL Server CE to Azure website

I deployed a ASP.NET MVC4 app with SQL Server CE database, but I'm getting
Sorry, an error occurred while processing your request
I am using VS2012 to publish this app to azure website. How can I solve this issue? Thanks.
To summarize and so an answer can get marked on this to help the next person that comes by.
When running into issues on azure-web-sites FTP is a handy debugging tool which enables you to:
Verify that the dll exists in your bin directory
Sometimes the .gitignore file blocks directories from being checked in
Verify that your web.config file has the proper version of the assembly configured
NuGet can help, but it's ultimately up to you to verify your dependencies
Here is a good article to follow on the subject: http://www.dotnetcurry.com/showarticle.aspx?ID=883
Unfortunately with VS 2013 Compact edition is not supported any more, so things are somewhat tricky.

weborb and wcf service library with ado .net entity framework

i've created a wcf service library with ado .net entity framework to handle the retrieving of data from the database and send it to the user.
i've been testing it in visual studio without any problems.
so, i moved the dll of the service and the xml configuration file to the bin folder of weborb, changed the web.config to add my service.
but when i invoke the service from the webconsole i get this error:
>The server was unable to process the request due to an internal
>error. For more information about the error, either turn on
>IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute
>or from the <serviceDebug> configuration behavior) on the server in
>order to send the exception information back to the client, or turn on
>tracing as per the Microsoft .NET Framework 3.0 SDK documentation and
>inspect the server trace logs"
can anyone give any help with this?
how can i get a working wcf service library using ado .net entity framework in weborb?
help would be appreciated.
thanks in advance.
Have you checked the WebORB log?
Then start off by trying the WebORB examples from here.
The WebORB log should give you more detail about the error. With that info, I would post a question on the WebORB forum.

ASP.NET Ajax client framework failed to load

We developed an web application using visual studio 2008. In my development PC, the application is working fine. In production server I am getting the following exception "ASP.NET AJAX CLIENT FRAMEWORK FAILED TO LOAD". What should I do to make it work?
Thanks,
P.Gopalakrishnan.
I'd start with making sure all of the appropriate service packs are applied and that the 3.5 framework is actually installed on the box.
Also, make sure any assembly you reference that isn't part of your deployment is gac'd on the machine. Check version numbers.
All else being equal, I'd guess the server is just way out of date on it's updates.