|
Koushal Dosi wrote: I want to create c# application setup with Ms Access Database
No, I'm pretty sure you don't; you really want to use SQL Server Express.
|
|
|
|
|
Using an application that creates setups. You can choose from ClickOnce, InnoSetup, InstallShield and others.
Bastard Programmer from Hell
|
|
|
|
|
|
Hi,
When I tried to access a method of webservice, I got the below exception in my windows application(.net 3.5).
"Client found response content type of 'multipart/related; but expected 'text/xml'."
When I searched, I found the solutions for web applications using MTOM encoding in wsHttpBinding. How can I resolve this issue in windows application(without installing WSE)
Thanks in advance.
|
|
|
|
|
|
Was the reply typed by mistake?
|
|
|
|
|
Try to use a tool like TCP monitor to check what is being sent over the wire.
It could be that you are getting a response like 'authentication failed' which your client is not able to read.
You cannot use MTOM without using WSE (unless you are use WCF).
|
|
|
|
|
TCP monitor showing the below response
"<soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:body><ns1:getclientidresponse xmlns:ns1="http://abc.com/data/xx/xxService">
--MIMEBoundary_4a93bd5d7dcbb70d03b467000df991e9537137eb808fad18--
"
There is no repsonse with 'authentication failed'
I used WCF Service Library project and added the wsdl file as webreference. Still I'm getting the same exception "Client found response content type of 'multipart/related; but expected 'text/xml'"
|
|
|
|
|
Hi,
I have a DataGridView called MyDataGrid1. Based on a field value I need to hide the bottom line for certain rows.
DataTable MyStudentsDtb = new DataTable();
MyStudentsDtb.Columns.Add("sl_no", Type.GetType("System.String"));
MyStudentsDtb.Columns.Add("standard", Type.GetType("System.String"));
MyStudentsDtb.Columns.Add("student_section", Type.GetType("System.String"));
MyStudentsDtb.Columns.Add("no_of_student", Type.GetType("System.Int32"));
MyDataGrid1.DataSource = MyStudentsDtb; My Requirement...
Once the user enters '20' in no_of_student, then I want to remove the CellBorder Lines on that row and further 19 rows below to that CurrentRow, Is this possible?
Thanks For The Help..![Thumbs Up | :thumbsup:](https://codeproject.global.ssl.fastly.net/script/Forums/Images/thumbs_up.gif)
|
|
|
|
|
I imagine it's technically possible, but there's something wrong with your data structure. The number of students shouldn't be in the students table.
Also, you can just use typeof(string) and typeof(int) instead of calling Type.GetType.
|
|
|
|
|
Thaks Bob, Thanks For the comments...I gave as a sample..But Its required in diffrent place for different purpose..
Thanks![Thumbs Up | :thumbsup:](https://codeproject.global.ssl.fastly.net/script/Forums/Images/thumbs_up.gif)
|
|
|
|
|
should be removed for gridview properties cellborderstyle is None, remove cell border
|
|
|
|
|
Ive planted honeypot files over few directories.
My code is fire event whenever user click with his mouse anywhere.
When the event is fire i want to check weather the user made right click or left click on honeypot file, if he does then i can assum hes unlegitimate user.
There is a way to check it?
|
|
|
|
|
Member 8762977 wrote:
When the event is fire i want to check weather the user made right click or left click on honeypot file, if he does then i can assum hes unlegitimate user
So you told all your workers "not to click" the file, and are hoping to catch a hacker who "does" click it?
Why would I click on a file that I'm interested in? I'd zip it, download it, and then I'd look at it. Best way to find the "unauthorized" user is by going trough the connection-logs.
Bastard Programmer from Hell
|
|
|
|
|
exactly. the legitimate user know the honeypot files and he'll never select them, the files will named with attractive names like "credit card details"...
i don't need that the unlegitimate user will open this file, only one click, if he select the file i want to lock the system, how can i check if honeypot file like: C:\credit_card.txt was selected?
BTW this project not suppose to defend against hackers, only against unauthorized user that use my PC or laptop without my acception to extract worth data.
modified 30-Apr-12 11:00am.
|
|
|
|
|
Member 8762977 wrote: the legitimate user know the honeypot files and he'll never select them
The "legitimate user" will be the only person ever selecting them. It merely takes a screensaver and a certain point of focus.
Member 8762977 wrote: the files will named with attractive names like "credit card details"...
Why would I click a file? Most hackers will not be using RDP, there's little to click from a command-line. I will not be looking for "attractive filenames", I'll be going for all that resembles logfiles to hide my arse! Once the attacker is feeling secure, they might download data. Not activate it, but download it. That is, assuming that they're even looking for data, as opposed to uploading a keylogger.
Member 8762977 wrote: only one click, if he select the file i want to lock the system, how can i check if honeypot file like: C:\credit_card.txt was selected?
Windows does not inform other applications on which files are selected from a random dialog. This would be complex to achieve, without helping much.
..that is, unless you are trying to "secure" an insecure desktop, where multiple people have physical access to the desktop. Is there a by any chance a Post-It note on the monitor with the password?
Bastard Programmer from Hell
|
|
|
|
|
Member 8762977 wrote: only against unauthorized user that use my PC or laptop without my acception to extract worth data.
What should I be imagining under that? You going to the bathroom without locking your computer or what?
Press [Windows key] + [L].
You could create a virtual drive[^] using the Dokan libraries. Acts as a regular drive, but gets its data from a .NET application.
Other options might include a Shell-extension that provides a custom tooltip for something with your own file-extension, or try to hook into the system at a deeper level.
Bastard Programmer from Hell
|
|
|
|
|
Member 8762977 wrote: i don't need that the unlegitimate user will open this file, only one click, if
he select the file i want to lock the system, how can i check if honeypot file
like: C:\credit_card.txt was selected? BTW this project not suppose to defend
against hackers, only against unauthorized user that use my PC or laptop without
my acception to extract worth data.
I doubt that this is a valid design.
Security has two aspects: prevention and detection.
If you want to prevent it then you use methods that prevent access in the first place. If you want to detect it then you want to be able to identity the party.
So if you want to protect access then you should look into schemes that lock the computer when the legitimate owner is not present - period.
|
|
|
|
|
Member 8762977 wrote: this project not suppose to defend against hackers, only against unauthorized user that use my PC or laptop without my acception to extract worth data.
So how do you protect against non-legitimate users who do not click on any of your honeypot files? By the time your PC gets locked they will already have stolen all the real secret data.
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
|
|
|
|
|
What happens if a legitimately clicks on one of these files? It could easily happen.
|
|
|
|
|
The legitimate user will know all honeypot files on his system, and if he'll click then it depend on other variables, we build the legitimate user profile and compare it to the current user every interval of time and in additional we planting honeypot files so it's not black and white answer to what happend if he'll click on the honeypot file.
|
|
|
|
|
Well, if you're trying to do this, you need to be running at a deeper level because trying to do this at a high level means that it can be circumvented. Why write it in C# - effectively you need to be writing something that sits almost at the Kernel level, so you need to use something like C or C++, especially if your users want their systems to still be relatively performant?
|
|
|
|
|
Pete O'Hanlon wrote: users want their systems
If he cared about his users he would not be pissing them off by doing this at all.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
i think Wes Aday is here just to say some jokes every question. if u cant be useful, atleast keep quite.
|
|
|
|
|
WHAT?! This has got to be the worst hair-brained scheme I've heard of in quite a long time.
This isn't going to protect anything at all since you're still leaving the drive in the machine and the data on it unprotected. Also, if someone does get their hands on the machine you can't possibly identify the person using it based on what they click on.
Ever heard of BitLocker?? It's free. Install it and you can encrypt the entire hard drive.
Now, if someone leaves their machine unlocked, that's on them, not the guy who's not authorized to use it. In most companies I've been at, if you leave your machine unattended and unlocked, that's a terminatable offense.
|
|
|
|