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 3 years ago.
Improve this question
I created an excel report within the Azure function. I am trying to launch this excel file at the end of the process. But I get this error this is not supported in the OS.
I tried the following code.
System.Diagnostics.Process.Start(reportSavePath);
How you open the newly created file will depend upon the type of trigger that you are using in your function. It doesn't make sense to try to open the file within the context of the function itself, as that is just code running on one of MS's server somewhere. You have a few options.
If you are using an HttpTrigger, you can return the file's byte stream in the response.
If you are using one of the queue, event, or timer type triggers, you'll need to save the file to some sort of external storage, like Azure Storage, before your function exits. You can then download the file from that storage.
Related
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 1 year ago.
Improve this question
I'm developing a small app in winforms using dotnet 5 to upload files to a container in the azure portal.. by the way it's working fine, but now i'd like to develop a service to upload a folder (not a single file), but cant figure out how to do it. It's not like to upload files. Somehow it's different and I've been looking for it for so long but cant find a solution.
Does anyone have an ideia?
Cheers
If you are trying to upload an entire folder through your service programmatically, note that it is not supported.
Simply, you can create your blob called folder/1.txt for example, and it will work. No need to create a directory. So, to sum it up, you can create a folder like this and start uploading your files in that folder.
Check out Microsoft Azure: How to create sub directory in a blob container for more details.
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 2 years ago.
Improve this question
I have an application i have designed and built in C# that uses some complex filtering. i have manually calculated filter values/parameters outside of my application and added them in. this method works temporarily, but ideally i want to generate my values inside my application. The values i generate come from C++. so my thought process is to create a standalone C++ application that i run from my C# application and generate the new values and save them into some .txt file that will automatically add the new filter in. is there a better way to do this without converting this code into C#?
Off the top of my head, here's a few ideas:
Like you suggested, you could save the values to a text file, and then read them in.
You could make the C++ program into a server, and connect the C# program to the C++ program over a TCP connection.
You could use a database like SQL Server to store the values.
I'm sure there's other ways to do it, but those are what came to mind.
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 2 years ago.
Improve this question
I'm sending log files from my ASP.net application directly to Microsoft Azure Storage, which is working fine. However, I keep having a dialog pop up in the Azure Storage Explorer that says "File Changes Detected"
'C:\Users\Name\AppData\Local\Temp\157264315013847\06082020_log.log' has been modified by an external program. How do you want to handle the changes?
No matter which option I select a second later the dialog pops up again with the file being modified in a different folder in ...\Local\Temp
Why are these files constantly being added to this Temp folder and how do I make it stop?
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm working on an application where I video record the screen of the script running. I use SharpAvi for recording the screen and I would like to set a time for deleting the file. The only way I found is to run a batch that looks for files older than 7 days or so. I would like to have to set the delete time upon creation. I'm not sure if there is a way to do that or even of Windows support this kind of file creation.
Rather than using a batch file, create a RemoveOldRecordings method in your application that is called when your application is started. Use the GetFiles to read your "recording" directory, deleting "recording" files with LastWriteTime more than 7 days ago.
If you allow the users to save the recordings to different locations, though, you should not automatically delete files without their confirmation.
Also, while testing, rather than delete files, just output the filenames you've identified for delete to log or console window until you're sure you're handling that correctly.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have specific trouble: I'm using Yandex.Disk cloud storage and working with this by Yandex.Disk REST API. I have some functionality for syncing data and saving to db. Specially it's file name, file md5, file download url. But trouble is that download url is temporary. And I'm looking for solution, to have ability for apdating download url for all saved in db files, each 24 hours. First solution I found is another project that will be launching by windows task scheduler, but my hosting provider not giving this ability. Help me please to find good solution for this.
You can probably use hangfire http://hangfire.io/ to create a recurring task within your ASP.NET application.