SQL Server Secure Communication [closed] - c#

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)

Related

Looking for a service/way to maintain dns server from c# [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I need to be able to from code to setup dns records. What options do I have?
The solution will be run on Windows Azure, so running a virtual machine with a DNS server and manage that from code is okay if thats possible. What other options do I have?
I am new to DNS administration and need to figure how how to best do this. Our task is simple, we will dynamicly deploy websites and would like to add dns records such .ourdomain.com or .sites.ourdomain.com get created automatic when new sites are created. So a short intro to what to read up on is also welcome. I have a basic understanding of DNS and know what different records mean, but have always just manual maintained those for my own site in a web interface at some free service.
You can run your own DNS server in Azure on a Virtual Machine. Unfortunately, interacting with Windows Server DNS's service on an API level is tough.
One suggestion is to look into other DNS providers that offer API access. Here's a link to Stackoverflow question that covers this subject: Cloud DNS Service with API
Another alternative to consider is to have a small reliable website that is hosted under the catch-all domain (.yourcompany.com) and would inspect the host headers and redirect based on those. This is assuming that all of your domains are needed to host websites and not some other apps. Using host-header inspection will eliminate the need to screw around with DNS and transfer the logic to your application's routing layer - which is usually much simpler to deal with.
HTH

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).

What to do after the web application is developed? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
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.
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.
Improve this question
I am a newbie to IT Field.
I have just finished a small web application using mvc in C#.net (Visual Studio 2012)
And I have used SQL Server Management studio 2008 to create database.
Now I want my site to be hosted on Server.
So, my questions are :
1) Should I copy my database(.mdf and .ldf) files to App_Data? If yes then how?
2) After the database issue is cleared how to deploy the web application and
put it on the server?
Can anyone suggest me a simple nice tutorial? Or can you give me just basic understanding?
One way of doing it is
Create a database in somee.com and deploy your database over there. You can access your database in somee.com from management studio
Get your ftp access from somee.com and publish your project over there from visual studio.
thats it..
Consider this thread http://forums.asp.net/t/1903127.aspx
there are lots of article written on how to accomplish this on codeproject

Tutorial for C# web development [closed]

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

Embedded FTP Server with 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
Is there any open source .NET-based (no Win32 native, ActiveX, COM+ etc) library so I will can easily set up a ftp server? It is going to be a ftp server that will update a SQL Server database, and not regular files.
Thank you.
I think it is worth mentioning the Lumisoft.NET library which contains an FTP server component. I haven't used it myself but it appears to meet your requirements (100% managed FTP server library). As a bonus it is free for private and commercial use (similar to LGPL).
I am attempting to do a similar thing (FTP server getting files and folder structure from SQL database). I've been using darwen's FTP server on Code Guru.
It does have some problems, notably cross threading issues, but with a little work these can be fixed. Also of note is to check that it uses the correct format for the IP addresses.
I have found this works for connections from FileZilla, but as yet I haven't been able to connect to it directly from windows explorer. I have been unable to find anything better for free.
http://www.codeproject.com/KB/IP/AdvancedFTPServer.aspx is very good
http://sourceforge.net/projects/xfftp/
For my FTP needs I use edtFTP.
Also, something you might want to look at is FTPLib.
Both are free and .NET

Categories

Resources