encrypt asp.net C# full config file [closed] - c#

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I have Web c# asp.net application. I want to encrypt Web.config file. Not only Connection string.
I need full file to encrypt.

Look into the following MSDN article, it may be what you are looking for: https://msdn.microsoft.com/en-us/library/zhhddkxy.aspx
It is about using the aspnet_regiis tool to encrypt sections of the config file, which will be decrypted by IIS/ASP.Net when it is requested by the application.

Related

remove information when connecting to web api [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
Wrote web api on asp.net. When accessing it, information about the server is displayed, how it can be removed.
Why did you close the question? It contains all the necessary information.
Go to the Controllers folder and look for the Home controller there you will find a method called by default Index delete that entry and remove the code from Views/Home/Index.html and Views/Shared/_Layout.html.

FTP upload files from subfolders [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I have problem with FTP upload files from subfolders.
How I can resolve this problem.
You have mixed up the two requests now. First carry out one request, then begin the other.
You have to open your local file, not the ftpFolder:
FileStream stream = File.OpenRead(localFileName);
Also, you never execute request1 in your current version.
And finally, why do you look for filename from ftpFolder? Isn't that just the remote name?

sharepoint in Light switch Datasource Error [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
when i connect share point data source in my light switch HTML application have one exception
listdata.svc
does not appear to be a valid site SharePoint 2010 (or later) with an installation of WCF Data Services is required.
I think it's an authentication error to connect to the service.
the service actual path is :
http://[YourSharePointSite]/_vti_bin/ListData.svc/
make sure you able to access this path and you enabled external access to it

How to create a log file in c# for windows application? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
How to create log files in windows application???
Please help me with any example, in which file can be saved on specific path.
Thanks in advance
I would be doing you a disservice to give you "code for logging", but I can point you towards the File class, which contains useful methods for writing text to a file. Since you specify no other needs, I suspect it will suffice.
File
http://msdn.microsoft.com/en-us/library/system.io.file.aspx
Personally I would evaluate Log4Net, it is an excellent logging tool allow for full customisation of logging level and logging output (file, database, email etc).
Nuget Log4Net

C# - Changing Windows Folder Option Setting [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 months ago.
Improve this question
I need to be able to have access to a hidden file and if I try to access it without the appropriate setting set, I will get an access error. Is there a way to change this option: http://img213.imageshack.us/img213/658/captureplz.png through C# code?
I am guessing the Registry, but I'm not sure where this would be.
This setting has nothing to do with the access error your getting. This option is what the user of the computer sees and does not effect your application whatsoever.
Maybe you could provide some more information about the specific error message your seeing. The error is probably resulting from your application not have the correct permissions to access a file. Check out this question about requesting file permissions.

Categories