I have hosted one web application on Azure Web application and application have one folder that contains dynamic images means application generated some images and stores on that folder but without write permission I can not save images dynamically please help me
Create a folder in d:/home/site/wwwroot and write there.
Related
Is it possible to rename/move or delete files from a web application (ASP.Net MVC) that are on a server folder just like how you would do it locally? I would want the user to be able to upload say 30 files (from a scanner auto-feed) into a temporary folder on the server (cannot save it locally due to data security) and then allow the user to be able to rename /move before uploading them onto Azure blob storage.
I saw few examples - jquery file tree seemed good but not sure if it allows rename and moving. Please suggest solutions for working with the server folder. I intend to delete the server folder after I am done transferring files to Azure. TIA.
Yes, you can do this by giving the USER that is running the ASP.Net application (defaults to IUSR) permissions to write to that folder.
Be very careful though, as you're potentially opening your website for abuse when doing this.
See: https://www.iis.net/learn/get-started/planning-for-security/understanding-built-in-user-and-group-accounts-in-iis for how IIS users operate.
I have many reports on JasperReports and they are embedded into our web app using iframe API. Some of the reports are scheduled to run everyday and store the generated files on JasperReports.
I want to embed the folder location on our web application so that User can see the report file listing in the web application.
http://${url}/jasperserver-pro/flow.html?_flowId=viewReportFlow&standAlone=true&_flowId=viewReportFlow&ParentFolderUri=/${location}/&reportUnit=/${location}/${reportName}&fromDate=&toDate=&decorate=no&j_username=${username}&j_password=${password}
The above link is being used to access report but I am not able to figure how to do the same for directories.
Please let me know if you require more information.
If you want to give users the access to all of the reports in your repository, you can pass the directory location into your URL instead of passing in the path to your report
Is there a method inside ASP.Net to let me upload images or files in a very minimum script files?
Basically im looking for a script that will let me upload files or script by bulk on my server but there are few constrains on my server, like I don't have access on database I also don't have an access to an FTP account and my web hosting provider just provided me a web interface to upload files one-by-one.
I am hoping I can override their system by uploading few ASP files on their server and running those to have my own uploader then I can use it to upload my own files in bulk.
I found this site that contains some content on uploading files under ASP. Section 2.3 has the specifics for uploading with ASP.Net.
I would like to nest asp.net web app within sitecore site, something like this:
<sitecore web root folder>
.
<virtual directory/app folder>
I want to access sitecore site by using following url:
http://<whatever site name>
and I would like to access web app by using following url:
http://<whatever site name>/<whatever virtual directory/app alias>
Is this possible?
I tried it but when I try to access my web app (not sitecore) then web app complains about missing sitecore.
I believe that is because now I have two config files ans when accessing web app iis/asp.net processing first sitecore web.config.
Right, your assumption is correct. See Creating a project in a virtual directory under Sitecore root article for more information about this kind of setup.
You should be able to create a virtual app under a Sitecore root path. Because its an app it will use its own app pool and you can have a web.config for it. I guess the physical files will be OUTSIDE of the Sitecore Website folder but the from a URL you can make the virtual app located anywhere below the Sitecore root.
I am using a 3rd party component which creates settings files based on hard-coded file paths i.e. they are compiled into the DLL e.g.
%APPDATA%\Vendor\Settings.ini
I have created a few console/service applications that use this and work very well. However, I am now trying to use a similar approach via my ASP.NET MVC web application and the settings file never seems to write out!
Usually if the application is running under my acconut for example the file would be written to somewhere like:
C:\Documents and Settings\James\Application Data\Vendor\Settings.ini
So I thought if the website AppPool was running under the same account the file would be saved to the same place....However, it never appears. The account is an admin account running under Windows server 2003.
Any ideas?
Thanks.
Have you checked to see if the settings file is created in the App_Data folder in the web application? If not, could you put an existing settings file there and see if it uses it?
It's not about the webpool account, it's about guest user's account.
Go to the properties of your site in IIS, Directory Security and in the anonymous access click on the Edit button, there you'll see wich account is been used when someone access your site.
Couldn't find a solution to this, so I decided to develop a local WCF service (which would create the settings file in the correct directory path) and just accessed it via my web application.