I wish to modify Rprofile.site file under Windows 7 R-2.11.1 using Notepad++ editor changing from
# options(help_type="text")
options(help_type="html")
to
options(help_type="text")
# options(help_type="html")
When saving this file, the editor keeps prompting the following message
"Please check whether if this is opened in another program"
I have no other programme opening this file.
Does anyone know on how to modify and save this file?
You don't have write access to the program files folder. To get it on a temporary basis start Notepad++ as administrator from the right click menu of the shortcut you use to start it. Then you will be able to write this file.
I guess it is the same problem I had. It's about write/modify permission of that file.
make sure that windows account you use is admin
right click on this file and choose settings
go to tab security (2nd tab) and click on "edit" button (this is next to the phrase "to change the permission click on...")
here you need to specify which account (i.e. only your account) of group of accounts (all admin accounts created on PC) can modify this file. On the 1st tab, select "Admin" and on the tab below you can select which events will be allowed to Admin user. You can choose: full control, modify, read and execution, read, save. Put the "dash" sign to option "modify" on right hand side. Click "OK" and go back to main settings. Also click "OK" to save all of the changes.
Now you should be able to edit and succesfully save all of the changes you apply to this file.
Let me know if it works for you.
Related
I created a page for uploading images,it works good,but when I want to show that uploaded image in a view I can't.
My images are stored in Images/products/{product name}/
In view I wrote
#Foreach(var item in product.images){
<img src="~/images/products/{productname}/#item.name" />
}
//my name spell are correct
In debug src has correct value but doesn't show image,
But when I give an URL from content folder it shows that image,
Even in solution explorer. VS doesn't show uploaded images and created folders by controller codes,
you might need to add permission to Images/products{productName} folder.
Open IIS Manager
Click on the web site or application that serves the images
Click the "Basic Settings link on the right - take note of the App
Pool name and cancel that dialog.
Click on Application Pools in the server tree on left In the list of
app pools - note the identity for the app pool with the name you
noted in step 3
Now in Windows Explorer, you can right click the image folders,
choose properties, and click the click the security tab. Find the
user associated with the identity used by the app pool. If it's not
there then there's no permissions If it's there, click on it and
look in the permissions pane to make sure "Read" is checked (or write/modify or even full control if you need).
you will need to repeat the step if you add sub folder manually on the Images folder
It's a best practice to save image on Content file since it by default already have read access. or another way is you could save your file on App_Data or hosting the file on cloud (with time limit to show for better security).
I have an ASP .NET based application that uses Serilog for logging and I want to test it by writing my logs to files. I am using Serilog and Serilog.Sinks.File
So far, the code looks like this:
_perfLogger = new LoggerConfiguration()
.WriteTo.File("C:\\Users\\andav\\Desktop\\NewTest\\logger\\perf.txt")
.CreateLogger();
_perfLogger.Write(LogEventLevel.Information, "{#LogDetail}", infoToLog);
But all my files are empty or are not created and I am not getting any errors.
Am I doing something wrong?
Thank you.
You may be able to if you add read/write permission for IIS_IUSRS on the directory.
I usually put the log directory in the same directory as my IIS app and do the following:
You need local admin permissions:
Right-click on the directory that you want to log file in
Choose properties
Go to Security tab
Click Edit
Click Add
Type IIS_IUSRS
Click on Check Names
If it cannot find it then click on locations
Click on your computer name and click ok
Now click on check names and it should resolve.
...
Click OK
Give the Modify Permission
Click OK
Logging "should" work
If it is a directory outside of inetpub, I am not sure but worth a try.
-Gina
I didn`t know that .Net is not allowed to write in any other folder except App_Data. This was the problem and I managed to fix it.
I am working with Adobe AcrobatDC and I need to OCR several images (PNG, EMF, JPEG) that are in a folder. I figured out how to create a batch process using the "Action Wizard" and it traverses the folder and creates text recognized PDF files. The only features I have not been able to figure out are how to automatically save the images into a specified folder. Currently my customized action will prompt me during he automation and ask if I "would like to save the file" and then prompt me again to "select a destination folder".
Question: Using Adobe AcrobatDC action wizard how do I create a batch process in order to automatically save to a specified folder and
eliminate all prompts ?
Add a "Save" step. In the options there, click the icon to the right of "Save". You can specify a local folder.
When i tried to export data to excel I'm getting an error
You don't have permission to save in the Excel export location. Contact the administrator to obtain permission
after I close the Alter message I'm getting another error in the infolog like
The directory name is invalid
I tried open export location in File --> Tools --> Options --> General --> Miscellaneous --> Open Export Location When i clicked here nothing happened previously it will navigate some folder location.
I'm not sure what i changed but it worked yesterday
Is this a temporary location error or any setting changed?
Any other alternative way to fix the problem?
Probably your user don't have rights to write to folder you want to export.
In Windows open the folder properties, then go to "Security" tab click "Edit" button and add your user then click "Full control" checkbox and click ok.
In an application I'm working on, the users are prompted for the path of a file. This path will always point to a network drive, which the server has access to.
Currently, we use an asp:FileUpload control to accomplish this, drawing the path from the FileUpload's PostedFile.FileName property.
The problem is that the files the user is selecting from are locked down pretty severely. While the server has full access to them, the user only has permission to view the directory contents... They can't even open the files. This has worked fine up until now... But Windows 7 won't display these files in the file picker generated by FileUpload, so we need an alternative.
Notes:
Looking for a way to get UI similar to the file open dialog already in place.
The ability to view the client's local files (including the shared network drives) is a bonus, although listing the files through the server is acceptable.
I think the problem is the permissions on these files. If the users can't even open them, how can their terminal possibly upload them to a website?
I'm surprised this has ever worked.
If the user is simply supplying a path and not actually uploading the file you could have the server display the contents of the folder (in a list or whatever) and the user selects from that.
So how about creating a file browser in a window, such that a user clicks "Pick File" which opens a new window showing the root contents of the network drive. The user can then navigate round the directories to the file they want, finally clicking the file to "upload".
Use System.IO Directory.GetFiles to get the files in a directory.
I think you need to separate out the two things. Here's an example prompt to convey the idea:
Select a (file from your computer) OR (file from the server)
Client Files
You can use the standard file-upload control, that is fine.
Server Files
No user should be selecting files from your sever with the upload-file dialog. (Keep in mind that these dialog boxes allow right-click menus delete, copy, properties, etc and locked down or not, the user should not think they have this ability).
I don't think there are any controls that will "do-it-all" for you in this manner. I think your best bet is to make your own interface here.