I have an XML file that generated by a Codebehind (.cs) of an .aspx page. And everytime it must be generated automatically and must be saved on Server. It works on my local machine, but how can I do it on Server (host)?n local I managed it like:xmlDoc.Save(Server.MapPath("~")+filename);
I am really stumped on this. I have IIS setup on my local box, and a virtual directory pointed to the folder MapBuilder. IUSR and IWAM have been given full access. When I run this through web developer, everything works great. When I access it through IIS, the following error is generated:
[Code]....
The line of code that generates the error is:
[Code]....
If I change the code to use a virtual directory I get the same basic error on the Overview.Save call:
So while working on my project on local system, i need to generate a barcode and save it to a folder then retrieve it to attach it in an email to send to user, i got the barcode generator code somewhere on these forums (thanks for sharing) and used it and it worked perfectly, generated the code as image, saved the file to a folder on the local system, retrieved and attached it to email and sent it with no probs.
Next, i uploaded the files to online server to go live, i test, no barcode is getting saved :S, i'm guessing it shouldn't be that easy, guess i have to do some stuff before i can save it to a folder on the server,
Here is the barcode generator code:
[code]....
At the same time, can you also include how to retrieve it for later use ?
currently i use this to retrieve it from the folder on local system:
What kind of path would I use to save a file (.pdf) on another server/network drive? Say I have rights to a network drive 'optamail1' and a folder there called datasheets. I can access this folder from "Run" using \optamail1datasheets, however, this kind of path will not work in my application. Has anyone tried doing this before?
So when the user click the link he is prompted wiht a Message box saying:
Open Save
The user click Open...modify the excel cells... but when he wants Save the file (from Excel menu) is saved on a temporary folder on the client pc and not on the server.
Is it possible to save the file directly on the server or not?
Ps. The "real" problem might be that when the user click "Open" in the prompt tha file is first downloaded in the temp folder and then presented to the user
I'm searching for a way to upload file by ajax-uploader component or ASP:Fileupload to different server then the application is running on, is there a way ?
My code is not being allowed to save an xml file in a folder on my server. Why is this?
you can see the error page here.. http://www.deutsch-english.org/
It seems to say something about not being authenticated and adding users to the config file. However this code has nothing to do with any users or groups, I just want it to always have permission to save files on the server. The code is purely internal, more like the core innerworkings of the site, it has nothing to do with users. I don't want to have to authenticate it, it shouldn't need authenticating, I just want it to work.
I have one requirement from client where they want to browse and save their choice Logo image in a website which i am developing.
Really i don't know how it happens and Is there any issue like security i need to consider while implementing this logic?
How user (client) will browse image file and where should i store that file in server?
Every indivisual user can browse file of different size and different name; how can i manage at server side so that image appear at right place and in right manner?
Where should i store image corresponding to user id at server; i.e. in database or file?
I need to know the best way to have a user click a link that will download a file that is out on the server and save it to a specific location on their computer. The file is a custom template for Microsoft Outlook signature. Thus, it has to be in a certain folder and this folder will have a different location if the user has Windows 7 vs Windows XP.
I wrote a ASP.NET page that captures the user that is logged in and use WebClient.DownloadFile to download the file. However, I am getting an access is denied error. Apparently my server doesn't have access to write to the user's folder. My questions are.
1. How do I solve this and make it so that my server can write to the user's PC?
2. Is there a better way to roll out a custom Outlook template that the entire company should use?
If i want to create a web site that take your picture and share it for your friends, what the best way to save the picture files on server? What the way is safer for the picture files? What the way has the best performance?
I am currently developing an ASP.net application, where I generate a word document in server and I want to save it in client machine who access that feature with out user interactions. How can I download it and save it in client machine, using javascript?
I was wondering does anyone know how to save a file to the sever without using a fileupload? What I have is a file that is dynamically created as a .CSV file. Here's that part of the code:
[Code]....
How can I save that to the server instead of poping up a Save/Open dialog box?
I am having one Event Registration form in that I need to provide one control with which user can attach file it may be pdf file or jpeg(Image). Any sample so that to save pdf file or Image file in DB and how to retrieve it.
I have a file on the server that users will have the possibility to download to thieir computer. For example the filepath could look like below. How would it be possible to save this to the desktop or C: etc.. ?
What I am doing seems to be saving the Excel file in a text format. All I am trying to do is save the Excel file (xls) on my web server. Below is the code that "fetches" it now but doesn't save it in the proper format.
I am executing the following T-SQL code, which runs successfuly according to message I see at end of its execution, but the file c:cptest.txt is never created. I have checked for this file and it doesn't exist. what is the issue here?
I'm trying to write code that will allow a user to click a button and be prompted to save an image file that resides on the web server. I'm using the following code, but I get an error that says "Error: Could not complete the operation due to error c00ce514.".
[Code]....
I have verified that the file exists. Is there another method for prompting users to save a file to their local machine?