|
Hi,
a StackOverflowException is always a hint that you produced an endless loop. I'm not able to see the problem in the code you posted, so I suggest you try to debug step-by-step.
Regards
Sebastian
|
|
|
|
|
UserControl is also inherited from IContract that I have passing to its constructor. Is this is making problem?
|
|
|
|
|
Maybe. Did you took look at the stack trace. Maybe the detail of the exception shows you where the problem is.
|
|
|
|
|
I have seen a database file that if you Attach it your self in SQL Server then the project that use that DB file will never runs anymore .
Alert :
If you attach that DB in Sql you can see all Tables , Views ,...
i am looking for that if someone attach my DB in SQL , my project never run on that system.
Alert :
I my self in project attach it.
modified on Monday, January 4, 2010 4:15 AM
|
|
|
|
|
Hallucinations? What is the question here? The hundreds of ways to make your database based application to not work. What are you actually looking for?
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
i am looking for that if someone attach my DB in SQL , my project never run on that system.
Alert :
I my self in project attach it.
|
|
|
|
|
jojoba2010 wrote: someone attach my DB in SQL
What do you mean by this? Can you try and explain a bit.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
Q1:
How can i lock my database in sql server that nobody can attach or see the tables in that DB?
Q2:
I wanna to do something that if anybody attach my DB in SQL then the project (in C# ) never run and give Database Error.
|
|
|
|
|
You can do all this by setting permissions on your database in the SQL server and creating proper login credentials for the database.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
Thanks for your ans and help
would you explain the process Step by Step so I can do that ?
|
|
|
|
|
This[^] should be a good start.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
Thanks
i have done that but no diffrence ?
|
|
|
|
|
Now you can access the database using created user id and password. Just make sure you do not give that away. That way no one can access your database.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
I knew that but i want something that if anyone attach my DB then the program never runs.
Alert :
the DB can be attached as easy as creating DB.
|
|
|
|
|
You just keep repeating the question without really clarifying anything.
I think you trying to ask too much. To attach a database the user needs SQL admin privileges which would imply a level of knowledge and understand of why they were attaching the database, so what is the point of stopping the application from running?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi to everyOne
I have seen a program that create files and folders (in desire Root )that cant be access in Explorer or from MyComputer (just that files and folders are accessable in that program... that folder contains Images and word files , ...)
Alert : The file and folders are not hidden . cause i enabled Show hidden files and folder option .
|
|
|
|
|
Maybe it just creates hidden files?
|
|
|
|
|
|
%) Then what does it create?
Have you unchecked the option "Hide system-protected files [Recommended]" in explorer dialog? Maybe the files aremarked as system.
|
|
|
|
|
If i knew then i wont ask
it doesnt creates and folder..
it something like Sharing file in xp , the Option : <big>Allow network users to change my file</big>
|
|
|
|
|
Hm... Are you sure it create folders in the place you are looking for them?
Maybe it just stores data somewhere?
Have you tried to monitor it with Sysinternals ProcMon?
|
|
|
|
|
yes.
Q:
can i create a folder that the folder wont be accessable in Explorer or MyComputer (you can see that folder but if you wanna to enter it , then it gives error of 'This folder is not accessable')
|
|
|
|
|
Access right can be set for the folder. But in this case, if you are system administrator, you can always get access to that folder by changing the access rights.
Also, what happens when you close this program? Does the folder remains? Is it accessible? (please make sure the program is not running in Processes view of taskmanager)
|
|
|
|
|
it doesnt mation on program running .(not deppends on program)
Yes the folder Remains.
and not accessible in any case?
|
|
|
|
|
Please see the access rights for that folder (by right-clicking and pressing Security).
1. Remove all users from it
2. Add 'Everyone'
3. Grant all access types for 'Everyone'.
I think you will get access to it
|
|
|
|