ASP.NET is the development platform that most Microsoft developers use. At the Couchbase Connect Silicon Valley 2017 conference, I spoke to some .NET developers in a workshop. I asked them what type of content they’d like to see me create that would be most useful for them. The answer was: videos on getting started.
ASP.NET Tools to Get Started
The below video takes you from having no code to having an HTTP-based REST API that uses Couchbase Server, built with ASP.NET.
The video uses the following tools:
- Visual Studio 2017
- Couchbase Server 5.0 Community Edition (Enterprise Edition will also work just fine)
- Couchbase .NET SDK
- ASP.NET (not ASP.NET Core, that’s coming in a later video)
- Swagger (provided by Swashbuckle)
Getting Started Video
In the video, I briefly gloss over Scan Consistency. For more details on that, check out the Scan Consistency documentation or read a blog post that I wrote introducing AtPlus, which also covers the other types of Scan Consistency.
Summary
This video gives you the absolute minimum to get started with Couchbase by walking you through a simple CRUD application. Stay tuned for a similar video on getting started with ASP.NET Core.
If you have any questions, please leave a comment. Or, you can always ask me questions on Twitter @mgroves.
Great tutorial.
May I know about its pricing and licensing ?. Is this free ?. It seems it is, but for commercial use, we need to pay. I need to the details.
Regards
Ali
Hi Ali,
In the video, I showed the Community edition, which is open source and free (even in production). We also have the Enterprise edition, which requires a commercial license for production. For more information, check out https://www.couchbase.com/editions and https://www.couchbase.com/subscriptions-and-support
Great tutorial.
May I know about its pricing and licensing ?. Is this free ?. It seems it is, but for commercial use, we need to pay. I need to the details.
Regards
Ali Kolahdoozan
Hi Mathew,
Great Tutorial, but I have a exception.
I followed the process from A to Z of your video, with the sames class names, properties, etc…
The only difference is the URI because my couchbase is in another server. I put: http://xx.xxx.xxx.xx:8091/
The actions Get(Guid), Edit and Delete are OK, But not the GetAll I think that is because I use query N1QL.
The exception:
Couchbase.Linq.CouchbaseQueryException: ‘An error occurred executing the N1QL query. See the inner exception for details.’
SocketException: A connection attempt failed because the connected party did not respond properly beyond a certain time or an
established connection failed because the connection host did not respond 52.166.184.59:8093.
Have you an idea?
Best regards,
Martinsse
Hi Martinsse, it sounds like that port (8093) might not be open to your application. You can try running sdk-doctor to verify https://github.com/couchbaselabs/sdk-doctor and if the problem persists, I would recommend posting to the forums with more information about your network setup: https://forums.couchbase.com/c/net-sdk