wcf,visual-studio-2013,microsoft-sync-framework,sql-server-2012-localdb , Using Sync Framework in Visual Studio 2013


Using Sync Framework in Visual Studio 2013

Question:

Tag: wcf,visual-studio-2013,microsoft-sync-framework,sql-server-2012-localdb

Does anyone have a walkthrough or video on how to use Sync Framework in VS 2013? I've seen nice examples using VS 2010 but some important items like local database cache object have been deprecated.

For what I have read is that LocalDB will be replacing the Sql Compact (which is deprecated). But have not found a site explaining how things should work. My solution for what I understand would be a LocalDB syncing with a SQL Server with IIS using WCF. Any pointers would be appreciated.


Answer:

there's no equivalent for the Local Database Cache project wizard in VS 2013. if you want to do what the wizard does, you can hand code it yourself. but that will be using the older sync providers.

you can find a walkthrough of how to achieve this with the newer sync providers here. The SqlSyncProvider should work with SQL Server/Express/LocalDB/Azure. You can also still SQL CE if you want to.


Related:


devenv.exe hogs CPU when debugging


asp.net-mvc,visual-studio-2013
Short version: When I debug ASP.NET MVC apps in VS2013 and try to edit razor views or css files, the CPU usage of devenv.exe skyrockets to the point where VS becomes unresponsive. Browser link is turned off, yet this still happens. Restarting debugging doesn't help, restarting VS doesn't help, restarting...

Is there a way to implement a wcf service connected to a database without paying for azure?


database,wcf,azure,windows-phone-8
It seems like everything that I read is saying that for Windows Phone 8 Development, in order to create a database that connects to my WCF Service, I need to pay for it (Azure). Is that the truth? I want to create a database that my mobile app can access...

How to get previous version using git and VS Express for web 2013?


git,visual-studio-2013
I want to find the cause of a bug which caused by one of the recent commits. Is it possible to get a specific version, and then undo the checkouts?

Visual Studio C# Unit Tests


c#,unit-testing,visual-studio-2013
I'm trying to learn Unit Testing in C#. But I don't see how to relate the testmethods to the actual methods. In one guide it told me to right click the method name and click create unit test. I don't see that. Another told me to create a Unit Test...

How can I add a .props file to a C# project?


azure,visual-studio-2013,azure-webjobs
I am trying to set up continuous delivery of Azure Web Jobs, and came across this post from the Azure blog. One of the steps there is to add a .props file to the web job application's properties. I am having difficulty adding a .props file. My web searches indicate...

RichTextbox write in place to current line


c#,text,visual-studio-2013,richtextbox
Clarification: I want to output line of text to the same "position" in a RichTextBox, replacing the previous line. In C# Windows Forms Application trying to use RichTextBox for displaying messages. Most of the messages are appended, so that is fine but at one point in the program it has...

Error cross domain call using WCF Rest


javascript,c#,jquery,ajax,wcf
I'm trying to make a WCF service with CORS calls, so far, I have my server with the classes indicated here: http://enable-cors.org/server_wcf.html I was able to make a call with a jQuery ajax call using the verb GET without any parameters, the problem comes when I try to pass parameters...

How to install Xamarin for Visual Studio 2015 when Visual Studio 2013 is installed too?


visual-studio-2013,xamarin,visual-studio-2015
I install both Visual Studio 2013 and 2015. I need install Xamarin for VS 2015. But I can't do it because by default it's installing for VS 2013.

The remote server returned an unexpected response: (413) Request Entity Too Large.?


c#,web-services,wcf
I pass some values to my WCF service from the .net application in string format. Passing string format will be in this structure, ItemName~ItemDescription~ItemPrice|ItemName~ItemDescription~ItemPrice|... Every line item will be separated by '|' character. I was passing nearly 1000 items. It was working as expected, but when I came to pass...

Adding WCF Services / Project Templates in Visual Studio Pro 2013?


c#,wcf,visual-studio-2013,sharepoint-2010
I'm very new to .NET and developing within VS, and I'm trying to make a few basic WCF Web Services for testing purposes. I'm running Visual Studio Profession 2013 on a Win 7 x64 computer that is also running Sharepoint 2010 Server. I'm trying to go through the following tutorial:...

Visual Studio 2013 closes


visual-studio,visual-studio-2013
I recently installed Visual Studio 2013, so I'm relatively new to it. I'm trying to run the code below: #include <iostream> int main() { std::cout << "Hello World! "; } but the terminal that's supposed to open to display "Hello World" closes immediately and doesnt give me the chance to...

Android AsyncTask with JSON Parsing error


java,android,json,web-services,wcf
Error coming in this section: protected void onPostExecute(JSONObject json) { try { // Getting JSON Array user = json.getJSONArray(TAG_USER); JSONObject c = json.getJSONObject(0); String id = c.getString(TAG_ID); String name = c.getString(TAG_NAME); Log.i("id",id); } } ------- Webservice Result--- {"GetDataResult":{"ID":8,"Name":"Foo Bar"}} Working Link - http://127.0.0.1/WcfService4/Service1.svc/getData/?key=8 Provide the better solution for solving this....

VS2013 Is Not Compatible With VS2015 Project Type


asp.net-mvc,visual-studio-2013,asp.net-mvc-6
I am using Visual Studio 2013. But when i open the MVC project code in Github: https://github.com/betimer/Mvc I found that the solution was built on the new type (project contains: xxx.xproj + xxx.json) (I think they are VS 2015 types) Is there any way to let my VS 2013 compatible...

Visual Studio Ctrl + F search freezes when including a '(' character


visual-studio,visual-studio-2013
For some reason whenever I include the '(' character in a Ctrl + F search in Visual Studio 2013 the search bar never works. It doesn't matter what other text is included in the search bar. It doesn't matter if I choose to search on just the current document, or...

Visual Studio 2013 C# compile with /main


c#,visual-studio-2013
I'm new to programming and I'm trying to write a code for a port scanner. When I click build I'm getting the following error messages...I realize its the same error just in two different locations but I figured it would hurt to list both: Error 1 Program 'c:\Users\pat_000\Documents\Visual Studio 2013\Projects\WpfApplication2\WpfApplication2\obj\Debug\WpfApplication2.exe'...

How do I install the Wix extension on after a Visual Studio 2013 Update?


visual-studio-2013,wix
I have installed Wix 3.9 on VS 2012. Recently, I just got VS 2013 and I am not sure how to install just the extension on there? How do I do without uninstalling wix 3.9 and reinstalling it back again?...

How to use ajax to post json string to controller method?


jquery,asp.net-mvc,visual-studio-2013,asp.net-mvc-5
I want to be able to post a json string to a control action but it's always receive the string as null. If I create a view model for the controller method, it works, but that's not what I want since there will be too much view models to maintain....

OData Endpoint with .NET


c#,asp.net,visual-studio-2013,odata,web-api
I am trying to create an odata endpoint for a table valued function in a database. I am sure with the code, however upon running the application i get the error Server Error in '/' Application. Parser Error Description: An error occurred during the parsing of a resource required to...

WCF Services In Background


c#,web-services,wcf
I'm trying to figure out how to run WCF Services as background Windows Services. So far, in all the examples I've seen, for either a REST-WCF Web Service Host or a Duplex WCF Service Host, they end up running a small console that starts up the interface/service and waits for...

Visual Studio 2013 LINK : fatal error LNK1181: cannot open input file


c++,visual-studio,opencv,visual-c++,visual-studio-2013
I am using Visual Studio 2013. I'm trying to build some code given to me from my professor and I keep getting this error: LINK : fatal error LNK1181: cannot open input file 'C:\Users\manduchi\Documents\eyegaze\EyeGazeDemo..\Libraries\OpenCV\lib\opencv_core249.lib' However, on my computer opencv_core249.lib is located somewhere else. I've tried updating the linker directories to...

VS2013 Error: LNK2019 When trying to build ZeroMQ server


c++,visual-studio-2013,zeromq
I'm trying to build this simple ZeroMQ server in C++ on Visual Studio 2013. #include "stdafx.h" #include "zmq.hpp" #include <string> #include <iostream> #include <windows.h> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { // Prepare context and socket zmq::context_t ctx(1); zmq::socket_t sckt(ctx, ZMQ_REP); sckt.bind("tcp://*:5555"); while (true) { zmq::message_t request; //...

The name 'Thread' does not exist in the current context


c#,visual-studio-2013,namespaces
When I put this code Thread.Sleep(2000); it gives me the error: The name 'Thread' does not exist in the current context`. I already included the namespace using System.Threading;. See System.Threading.Thread.Sleep() on MSDN....

using for loop for a textbox in selenium C#


c#,visual-studio-2013,selenium-webdriver
for(int i=0;i<=10;i++) { Driver.Instance.Find Element(By.Id("id of element")).Send Keys("auto"+i); } I used this code but it does not work 1 to 10 numbers are printing in one attempt I am searching for the code which dynamically increment in each run with out changing the sendkeys values again and again...

Can I throw a message fault back to a WCF client from a routing service


c#,.net,web-services,wcf,encryption
My company has long used ASPX and windows services through a routing program to manage the connections and allow our datacenters to control where the clients make connections. Just recently we started using MVC and WCF. Yes in 2015 we are just moving to these things. Anyway they figured out...

TF400889 Long path error received from TFS


visual-studio-2013,tfs,tfvc
Can someone please help me out with this? I tried using long path tool but they want me to pay in order to delete the folder. However I cant find the file the system is complaining about. I went to the folder C:\Users\Casey\Desktop\Workspace\LegalHoldings\Sprints\Sprint5\Expunctions\LegalHoldings.Expunctions.Service.External\ServiceReferences\FillingReviewMDEService\LegalHoldings.Expunctions.Service.External.FilingReviewMDEService.GetFeesCalculationsResponse.datasource This file:...

Method declared with dynamic input parameter and object as return type in fact returns dynamic


c#,.net,dynamic,visual-studio-2013
namespace ConsoleApplication1 { class Program { static void Main(string[] args) { var objectGetter = new ObjectGetter(); var obj = objectGetter.GetItem(); //Visual Studio shows that obj type is System.Object } } public class ObjectGetter { public object GetItem() { dynamic dObj = "123"; var obj = this.Convert(dObj);//Visual Studio shows that obj...

How to implement an additional non-wcf service contract interface in a WCF service contract interface implementation


asp.net,asp.net-mvc,wcf,wcf-data-service
I'm creating a WCF service: [ServiceContract] public interface IContractManagementServices { ... } and i want the contract implementation to also implement another interface: public interface ILogin { bool GetLoginCredential(String LoginID, String Password); } For example: public class ContractManagementServices : IContractManagementServices, ILogin { ... } But I am getting an error....

Cannot add new shared dataset to report


visual-studio-2013,reporting-services,sql-server-2008-r2,ssrs-2008-r2
I have a summary report with about 20 datasets, linking to 20 detail sub-reports. I have added datasets based on stored procedures for each of the detail reports. Now when I try to add another one I get an error message Could not create a list of fields for the...

Searching user tasks by task.body text


c#,visual-studio-2013,vsto,outlook-addin
Good morning all! I have spent a good bit of time searching and reading forums about this, but I can't seem to find a solution. Any help you all can offer is greatly appreciated. I have created an Outlook Add-In via C# and Visual Studio 2013. This add-in will create...

When I type static, Visual Studio replaces it with ContextStaticAttribute [closed]


c#,visual-studio-2013
Every time I'd put in static it would keep replacing it with ContextStaticAttribute. I need 10 rep to post images, but here's the link: http://i.imgur.com/jBOOF3s.png) I also do not want to have to press the right arrow to put in a local variable!...

How to make a programs icon in the task bar change based on something like time? [duplicate]


c#,.net,vb.net,visual-studio-2013
This question already has an answer here: Can I change my programs tray icon while it runs in c#? 1 answer I just want to know how to change the default program icon to have the current time on it and have it update whenever necessary. Thanks for any...

Using/abusing a conditional breakpoint to manipulate a value


.net,visual-studio-2013,visual-studio-debugging
For a temporary workaround, I have to set User.ID to 0 in a certain line. My usual approach for similar cases is to set a breakpoint at the corresponding line and use the watch to manipulate the value: User.ID = 0 In an attempt to streamline this by automatically setting...

Visual Studio Assembly force-installs Target Framework


c#,.net,visual-studio-2013,.net-framework-version
I have this Assembly targeted at .NET 3.5. The code will work on later versions as well, but I like this to work on Windows XP. I mean, .NET is backwards compatible, right? I can run apps for .NET 3.5 on Windows 8.1. However, when I run my own assembly,...

Visual Studio 2013 Report RDLC with related datasets


visual-studio-2013,report,relational-database,rdlc
I currently have two tables in a database "customer" and "pricelist" where a customer can have multiple pricelist items linked to their ID. I'm trying to build a report in VS2013 where it lists all customers [alphabetically], then all of their pricelist items [alphabetically], then page break between each customer....

Using Try/Catch block to set file path?


visual-studio,visual-studio-2013
I'm having a bit of trouble figuring out an assignment for my Visual Basic course. I am told to assume that a given text file is not in the \bin\Debug folder of my program, so I am trying to throw an exception error and get the correct path from the...

Can't reinstall package


visual-studio-2013,nuget
On a new Win8.1 reinstall, with all of my code restored from backup, I'm suddenly now getting a yellow NuGet warning when I issue the command update-package -reinstall -project ui: Skipped reinstalling package 'AeroWizard 2.0.9' in project 'Ui' because the package does not exist in the package source. I'm using...

The Address property on ChannelFactory.Endpoint was null. The ChannelFactory's Endpoint must have a valid Address specified


c#,asp.net,wcf
I have hosted by WCF service on a URL (http://192.168.2.131:8089/). Now, I'm trying to invoke the WCF service from a Windows form, but I'm getting this error: The Address property on ChannelFactory.Endpoint was null. The ChannelFactory's Endpoint must have a valid Address specified. Here is the win form C# code:...

Visual Studios building and debugging .cpp file without main()


c++,assembly,visual-studio-2013
Professor just gave us a block of c++ code in order to learn about the debug windows in Visual Studio, however after creating a blank win32 console project and then dragging in the .cpp file I get the missing .exe error message when attempting to debug. I've looked everywhere and...

Not able to create a WCF RestFul Service's client


asp.net,web-services,wcf,rest
I am newbie with web services. I am trying to create a WCF Restful web service . I have implemented a simple service that accepts parameter name and when the client requests the service it prints hello with name. I have created a web client and added the reference of...

How can I run “query session” using vb.net?


vb.net,visual-studio-2013,cmd
I would like to get the results from executing "query session" in the cmd.exe and Store them in a string variable using VB.NET. I have been searching for two days now and I cannot get to run the command, I will try to save the result once I get the...

Why do we need to publish or deploy web services or WCF?


web-services,wcf
I am in the path of learning WebServices and WCF. So far I understand that webservice or Wcf contains web methods which can be consumed by client side or on the service side too. But my question is why do we need to publish/deploy a webservices or wcf in IIS...

HTTP Error 403.14


asp.net-mvc,visual-studio-2013
I'm developing my MVC 5 app using VS 2013, it was working fine, but suddenly it's giving the following error. HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this directory. I've already read this post, and it didn't solve the problem. I've...

How to stop visual studio generate typescript js and js.map files while publishing


visual-studio-2013,configuration,typescript,publishing
I set up my project that combine javascript output into file to $(ProjectDir)dist\output.js and uncheck generate source maps. Tools -> Options -> Text Editor -> Typescript -> Project -> Automatically compile Typescript files which are not part of a project is unchecked as well. While building and running project from...

Redirect Visual Studio to new TFS Location


visual-studio-2013,tfs
We have migrated TFS from one server to another. I have verified that the source files and history do exist in the new server location. How do I now redirect Visual Studio to look at the new server location? I would like to not lose any of the files, history...

How to create a folder that contains the current date and time instead of name


winforms,visual-studio-2013,c++-cli
I use C++ Windows Form application in Visual Studio 2013 for one project. I wonder how to create a folder that contains the current date and time instead of name? It is possible to make such folder?? DirectoryInfo^ directory = Directory::CreateDirectory("C:\Users\Desktop\" + ??); ...

Creating a 25fps slow motion video from a 100fps GoPro .mp4 video with C++/OpenCV


c++,opencv,video,visual-studio-2013,slowmotion
I have a 100fps .mp4 GoPro video and I want to create from it a slow Motion one with 25fps. I'm trying since two days but to no avail. I could play the video, save a video from the GoPro's WiFi stream, but when I try to read the 100fps...

IIS Express 8 - Max allowed length


c#,asp.net,iis,visual-studio-2013,iis-express
In case the below is too long, my question is whether IIS Express 8 in Visual Studio 2013 obeys the maxAllowedContentLength attribute or if it has some overriding value that prevents large requests When debugging some webapi calls against Visual Studio 2013, I'm receiving this error: Maximum request length exceeded....

In Visual Studio 2013, what does this black arrow-shaped symbol in the breakpoint bar mean? [duplicate]


c#,visual-studio,visual-studio-2013,ide
This question already has an answer here: Black dash / line on visual studio 2012 left margin 1 answer Somehow, one of the lines in my source code became marked with a black arrow-shaped icon pointing to the right. I'm familiar with bookmarks and breakpoints, but I can't find...

Change mapping option replaced with cloak option in TFS


visual-studio-2013,tfs
I want to change the mapping location for trunk in TFS and get latest but instead of 'change mapping' I now have the option to 'cloak'. What do I need to do in order to get the 'change mapping' option back again? I can't see a way to change the...