Tutorial for C# web development [closed] - c#

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
All,
I am looking for some good tutorial material to learn C# web development. Basically, I want to create a c# web form which would extract data from Oracle database and would give provision for the user to edit the data. I also want to have security for this website. I found some materials but it had SQL Server as the backend. I installed ODP.NET but don't know how to setup the security and add the web forms.
As, I am a new programmer for C#(have previous programming experience), I don't know where to start.
Any guidance would be appreciated.
Thanks,

Have you looked at any of the asp.Net starter kits?
For permissions to edit, I'm assuming you are referring to the website, take a look at the ASP.Net Membership provider. If you are using Oracle this won't be as cut and dry as using SQL Server, but still doable.
Another option is you can role your own membership provider or a custom implementation.
To learn ASP.NET C#, there are plenty of tutorials articles on the web. For a book I recommend: ASP.NET 4 Unleashed
Update
It appears that Oracle provides an ASP.NET membership provider.

For MS-SQL, you use System.Data.SqlClient
For Oracle, you can use the MS provided ADO.NET provider:
System.Data.OracleClient
You can get the connectionstring from connectionstrings.com
Oracle has it's own ADO.NET provider for .NET now, and you should use that one instead of System.Data.OracleClient, because MS is not maintaining the System.Data.OracleClient code anymore.
For the webforms part:
Don't use ASP.NET WebForms. Use ASP.NET MVC 3 + JQuery.
You have to manage permissions yourself.
It's best to do it in a http module.
Another way is to use System.DirectoryServices to access the ActiveDirectory.
Visual Studio has an integrated development testserver.
Use that one.
If you use AJAX, be aware that IIS7 runs in IntegratedMode, while the development server runs in Classic Mode. Which can get you errors caused by the web.config file (sys not defined for example), or integrated security might not work, because in integratedMode, it runs as network-service user, and not as the current windows user.

Have a look at this blog post, its a great start:
ODP.NET C# Tutorial for Beginners Using Oracle and ASP.NET

Related

MSSQL Linux Server Issue: SQL Server only supports SAFE assemblies [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
We recently came across an issue when trying to register some custom SQL CLR assemblies we have created on SQL Server 2017 v14.0.3238.1.
First of all, these assemblies require that they have External Access Permission, as they call external APIs. It seems that this issue is only appearing when trying to run them on an MSSQL Server that is hosted on a Linux Environment.
In addition, we have tried creating asymmetric keys (both with SN.exe tool from Microsoft SDKs and through VS 2017) and also signing these CLR assemblies, without any luck. (Followed instructions as found on: https://techcommunity.microsoft.com/t5/SQL-Server-Support/Deploying-SQL-CLR-assembly-using-Asymmetric-key/ba-p/316727)
When trying to register the assemblies, we are receiving the error:
"Assembly 'Sample_CLR' cannot be loaded because this edition of SQL Server only supports SAFE assemblies."
Has anyone stumbled across a similar issue before?
This is documented in Unsupported features & services:
The following features and services are not available SQL Server 2019
on Linux. The support of these features will be increasingly enabled
over time.
Database engine
Merge replication
Stretch DB
Distributed query with 3rd-party connections
Linked Servers to data sources other than SQL Server
System extended stored procedures (XP_CMDSHELL, etc.)
Filetable, FILESTREAM
CLR assemblies with the EXTERNAL_ACCESS or UNSAFE permission set
Buffer Pool Extension
Emphasis mine
You can only use SAFE CLR functions on SQL Server on Linux. There is no work around, as it is a documented unsupported feature.

Is there any standalone json-rpc server library for C#? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm looking for a standalone json-rpc server library for c#. I do already know ones that work with ASP.NET but couldn't find one that can be used as standalone.
The closes i could find was http://jsonrpc2.codeplex.com/ which is not actually standalone but works with ASP.Net.
Note: The project we are working on is standalone and we are also targeting mono framework which is the reason we are looking for a stand-alone json-rpc server.
Actually, https://github.com/Astn/JSON-RPC.NET
is a stand alone json rpc server. It just happens to have a plugin for ASP.net.
There is no dependency in ASP.net or IIS.
Check out the documentation on running a console server at that link you posted.
There is also a discussion there about hosting that server over raw sockets.
-- Edited url to github instead of codeplex --
SignalR matches those requirements:
http://signalr.net
Although its primary usage is for web, it is not required to run a web server: it can be run in a windows service or a standalone application.
Have you looked at PokeIn? It may suit your needs depending on your requirements.

ASP.NET User Messaging / Chat - Off the shelf solution? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
We have an ASP.NET MVC solution and we'd like to integrate collaborative features like user to user messaging, group messaging and instant messaging.
I can't help but feel we are about to re-invent a wheel which as been re-invented time and time again.
Does anyone have some recommendations for off the shelf solutions we can integrate? Commercial or Open Source both welcome.
For an open source chat client have a look at Jabbr
JabbR is a chat application built with ASP.NET using SignalR.
Don't think that for simple solution you need some 3rd part library or SDK. You can for sure relay on SignalR library delivered fro ASP.NET MVC too.
That library wraps different communication technologies, and let you to write and handle push-like notification services. The best example on those ones is actually Chat application.
The basic idea is at the moment user connects to your ASP.NET MVC server using SignalR it creates persistent connection from the server to the browser. So when the message from one client arrives you can notify other connected clients end-point (browser in this case).
Hope this helps.
It is not free, but you might want to check out CuteChat.
It runs entirely from the web browsers. A completely web-based interface, requiring only Javascript and HTML (no ActiveX, Java applets, or other downloads required).

SQL Server Secure Communication [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Improve this question
I am designing a C# application that will comunicate with na SQL Server for data keep/fetch.
This app is supposed to be used from within AND without the local network where the server will be (ie accross offices or even countries) so communicastion with the sever needs to be done over the internet.
I have setup a few tests and everything works well but now it's time to add security into the design.
With connections coming from the internet into their servers, my clientes will want the communication between the cliente app and the SQL server to be as safe as possible from net sniffers and such (ie, keep people from listening in to the data being transfered or worse, get server access)
I have read somewhere some time way back (can't find the link anymore) that SQL Server has na option for SSL connectio.
So my question is - Is this my best or even only option for security? Where can i find information/code samples on how to implement this?
Before anyone goes there - i have googled this but got no luck beyhond the information that an SSL connection option exists.
This seems to be a good article on SQL server security best pratices, it covers operative instructions and code examples.
Microsoft SQL Server Security Best Practices
I think that you have a bigger issue here with your application design though. How are you deploying and updating your apps? You probably want to have a server-side data access layer, possibly have business logic located on the server in a single location. I'd be looking at using WCF, possibly azure and web services with a thin client application.
Look into setting up encryption at the server using ssl and setting Force Protocol Encryption. Have a read of How to enable SSL encryption for an instance of SQL Server by using Microsoft Management Console
Also read this Enable Encrypted Connections to the Database Engine (SQL Server Configuration Manager)

Custom .NET Application Search Solution Needed [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
We are developing a custom .NET directory listing style application for a client and we require a powerful search solution. The application will be built in ASP .NET C# on SQL Server 08. The application is based around data which users to the organisation can enter in a profile management style area. Fields can be textboxes, textareas, selection boxes, multiselects etc. A user from the main website needs to be able to use the search function to find a result, but this result should search the entire database and not only base the results on one or two fields. It could be anything within any of the fields the user can fill out or select etc.
Can anyone help me find a possible solution for a .NET powered search engine we can use for this application? It must be preferably C#, running on .NET 3.5 and SQL Server 08. The database is a completely custom built schema and so there is no schema example to show or that can be shown.
If you need more information to provide a satisfactory answer let me know and I'll try to provide some more information specific to what you ask.
Thanks, Cian
Checkout Lucene.Net.
Lucene.Net is a source code, class-per-class, API-per-API and algorithmatic port of the Java Lucene search engine to the C# and .NET platform utilizing Microsoft .NET Framework.
You might want to check out Lucerne.NET, which is the search solution used by StackOverflow
In addition to Lucene .NET (which I've used and is very good), you could also consider SQL Server's Full-text search. This is also very powerful and if all the data you need to query is in the database is another good option for you - we used it for a large enterprise management system and it worked well for us.

Categories

Resources