Download Link Not Working From Published Site?
Apr 5, 2010
I have an asp.net that produces a Word document. I want to allow users to download the file to their local drive. I use a hyperlink to achieve this and it works fine from my development site. However, when the website is accessed from a non development machine, I am sent to the proper directory, but instead of the open/save/cancel dialog I am presented with a "Convert File" dialog. Any of the selected file types I select download unusable files. I think this has to do with office being installed on the local machine on which I am attempting the download. Is there any way I can simply download a file from a virtual file to my local drive?
View 2 Replies
Similar Messages:
Jan 14, 2011
I created an ASP.NET site in Visual Web devloper 2010 & then published it to our webserver. Due to the nature of the site, there are several users updating the content on the site (e.g. news pages). Is there a simple way to merge these changes back into my project? Can I just copy the published site back over my project folder which should overwrite the aspx pages but leave the code behinds untouched?
View 4 Replies
May 14, 2010
My application has a requirement of creating an excel sheet from the database on clicking logout buttonThis is implemented using the following com Components:Microsoft Excel 11.0 Object LibraryI created a Folder(Temp) in the application .When ever user clicks on the log out button, A folder(with the session name ) in Temp Folder gets created and the excel file is created here.Now every thing works fine on the local machine(User is getting the prompt for open and save etc)When I publish this .Nothing seems to be working.There is a n error that says" Could not find the excel at the said location(Tempseesion NmaeName.xls)The excel is not geting created when application is publised.
View 5 Replies
Oct 13, 2010
I have a WebForm which has an ImageButton. When clicked, it will open a new window (using javascript). This new window,will load an html page (video.html).
[Code]....
In the website root theres a folder called Content, inside it theres anothe folder called Video and inside Video there are alll the objects
that the video needs. When I try this in debug mode, it works. However, when I publish my website, and click the ImageButton the new window opens, and the FLV player shows, but the video never loads.
View 21 Replies
Feb 5, 2010
I have a website that was originally written in webforms to which I have added MVC functionality. When debugging locally it works fine, however, once published and uploaded to my host the routes do not work and return a 404. I am pretty sure that I have uploaded all the correct files. Would just appear that routing is not working.
(the site will still serve normal aspx pages fine)
I think the problem may be related to http://stackoverflow.com/questions/1772975/mixing-asp-net-mvc-into-asp-net-webforms
But I cant see from that thread what the solution was. It looks like it might be something to do with the app_pool mode - but I am running in integrated mode, which is right AFAIK
UPDATE 2
So I think I have routing working. I basically created a new MVC app and went through theweb config file line by line and made sure I have everything I needed. Funnily, none of the tutorials online mention the correct additions you need to make. I have have another issue mind you... When i load my mvc page I am greeted with the message: The SessionStateTempDataProvider requires SessionState to be enabled.
I've added a line to web.config to enable sessions (wasn't aware they were off) and it still doesnt work.
UPDATE I created a new asp.net MVC project and ended up going through web.config line by line and ensuring that everything that related to MVC was included in my hybrid app. Suffice to say that none of the guides mention all the settings that are required (i was using the book professional asp.net mvc 1.0). I then included the global.asax file which is not published and set up a route so that a request for / was not being caught by MVC. I also had to enable sessions in web.config.
View 1 Replies
Apr 27, 2010
I am able to save documents to a network drive from my c# asp.net application when it is run from my developmet machine, but not when the application is deployed to a website. Below I list the code that makes the call to map the drive the class is a standard class for this purpose. Can anyone help me figure out what is wrong?CODE:
The code that instantiates the mapping class
NetworkDrive drive = new NetworkDrive();
drive.ShareName = @"\38.186.8.244Docs";
[code]....
View 8 Replies
May 22, 2010
After publishing the solution from Windows XP, the AJAX pro tool are not working after being deployed to Windows Server 2008.
How can I solve this problem?
Using C#, .NET 3.5, and DevExpress tools.
View 1 Replies
Sep 15, 2010
I am bulding a site that will create word documents from templates and fill in the bookmarks. Its working fine when running locally in VS but when I publish to the webserver it seems to have an issue opening word. Durning testing I created a new site that only has the code below and its still not working - you click on a button and it looks to have worked but word never opens. I have done 2 days of fault finding to no avail. The server has office 2003 installed and I have put the correct dlls in the bin folder of the project and still no joy - I have played around with as many settings as I can in IIS and still nothing.
[Code]....
I am using;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.Office;
using Word = Microsoft.Office.Interop.Word;
using System.Reflection;
View 4 Replies
Jun 22, 2010
I have developed an webapplication with some jquery and ajax (client side validations), it works fine when run locally.
But when i publish it to the IIS, the client side execution is not taking place.
Do I need to tweak the IIS to make it work.
I am using VS2008 and .net framework 2.0 on a winxp machine.
I am trying to publish to the local IIS (5.0).
View 4 Replies
Sep 12, 2010
I`m using Microsoft office document imaging library (MODI) in my web application.
I`ve a page where a user uploads an image file and the server code converts this image into text form using MODI. Everything works fine when the website is running through visual studio but when i run it through local iis then i receive an exception.
my code is:
[Code]....
The code is perfectly fine because it works fine through visual studio otherwise when run through IIS i receive an exception at the last line written above saying.
Object isn`t initialized and can`t be used yet.
i didn`t catch the exception at last line because trying to figure out whats exactly wrong.
View 2 Replies
Mar 17, 2011
I am writing some IO functionality into my ASP.net page (C#). Basically what Im trying to do is, to get a list of file/folder names from a network share and display them on the webpage.
It works great in my DEV environment, on my machine, but it does not work on the published version on my IIS machine. I have not been able to get it to throw an error (I'll keep trying in the meantime). But, it would seem to me that it is some sort of permissions issue. I have given the ASPNET user admin access on the network machine, that the folder share is located. I have added NETWORK SERVICE (with FULL access) to the security rights of the shares Im trying to access.
View 5 Replies
Mar 9, 2010
AsyncFileUpload not working when .net app published to web server. It works fine in testing on my pc. I have checked security settings. I can get other upload scripts to work, but I wanted to try using the AJAX AsyncFileUpload. I thought maybe it's something on the server blocking it, but not errors, It just keeps saying "uploading" but it never finishes and it never uploads the file. Has anyone else had this happen?
View 2 Replies
Mar 3, 2010
I published my application into server. Some reason gridview paging is not working when i open the application from the server.
Note: When I ran the application at my local system using VS-2008 it's working fine.
View 1 Replies
Apr 13, 2010
I am a newbie to asp.net and have recently been building a web... I have a login control on the main page which when logged in verifys the user and redirects them to the home page... I published this to the server previously and it worked. Today when I tried logging into my system however I got the following error message:-
"Your login attempt was not successful. Please try again."
The accounts did work before but since I have uploaded a newer version of my program onto the server the above message is displayed. I have been on many websites and read previous forums with suggesstions to add <roles> in the web.config file however the login control worked before and I have not changed anything on the site apart from a different page that doesnt affect the login.
Few points to make... the login control is using the asp.net configuration pre built tables it generates for you, I have created the users and roles inside of asp.net configuration so it is not a custom membership... I am at a complete loss as how to get my login control to work having tried to insert roles into the webconfig file.
View 3 Replies
Oct 9, 2010
I want people to download files, EXE & DOCs from my website but I want to track the download, therefore I don't want them to now the real url so they won't be able to go there directly to download
View 16 Replies
Oct 27, 2010
I made an aspx site with .net 4.0 framework through visual studio and it worked perfectly in the development environment but when I upload it to the server and try to run it I get this error: Server Error in '/' Application. Runtime Error Does anyone have an idea on how to fix this?
View 4 Replies
Oct 18, 2010
I have a web application which consists of many aspx pages ... one of them shows a grid with rows that can be exported to a file via button click. This works fine. Now I want to have that feature which allows a user to access an external link to this page (or another) and to export to a file and download. I dont need any information on the page, just the file download. How could I do this also including security features like encryption?
View 2 Replies
Mar 9, 2010
I am trying to download MVC framework but it doesn't work.
View 4 Replies
Aug 18, 2010
I have a few linkbuttons that each open the save dialog to let users save file to the local machine. But after any link is clicked the page is dead afterwards (nothing works) and page has to be refreshed.
So do I have to force refresh after download is complete or does it have to do something with postback?
{
StringCollection strValuesToSearch = new StringCollection();
strValuesToSearch.Add("findword");
string stringToReplace;
stringToReplace = TextBox1.Text;
[Code]....
View 1 Replies
Sep 22, 2010
I have two types of downloads at our site. One is from our server and rendered using server side code, which I record the number of downloads whenever the code is executed. Another is from our parterner's site and offerred with a regular html link, like
<a href="http://www.partnersite.com/download/filename.zip>download</a>. How can I count the number of downloads for this link?
View 2 Replies
Mar 17, 2011
I have some information I am pulling from my db into a table. Can anyone direct me to a tutorial that shows how to dynamically create a file and allow a user to download that file with the table contents. All this must be dynamic.
View 2 Replies
Jul 19, 2010
I am planning to sell digital goods on my website (Asp.net). After successful payment the customer will be redirected to the download page of my website, which will display the link to download the digital content stored in my server.
I want to secure the location of the file, by creating a disposable link to the file. Every time a customer visits this page a new download link will be generated for the same file. Also this link should expire after it is downloaded for the first time.
Is it possible to do it in asp.net ( C# preferably )? if yes how can i do it?
View 2 Replies
May 10, 2010
I want to download images from third-party server. for that third-party provide url link for each page.
samples are provideded below.
[URL]
when click on each link it will give an image in browser window.
i want to store each image automatic in server.
View 1 Replies
Jan 13, 2011
I'm usign the following funtion to download a file from griview link button.
This code works fine without the Update Panel in the form.
If i put grid inside the updatepanel, i can't download the file. shows System.WebForms Cannot parse file.
//protected void LnkDownload_Click(object sender, EventArgs e)
//{
// LinkButton Lnk = sender as LinkButton;
// string filepath = Server.MapPath(Lnk.CommandArgument.ToString());
// System.IO.FileInfo myfile = new System.IO.FileInfo(filepath);
// if (myfile.Exists)
// {
// Response.ClearContent();
// Response.AddHeader("Content-Disposition", "attachment; filename=" + myfile.Name);
// Response.AddHeader("Content-Length", myfile.Length.ToString());
// Response.ContentType = "application//octet-stream";
// Response.TransmitFile(myfile.FullName);
// Response.End();
// }
//}
View 5 Replies
Jan 17, 2011
I am trying to automate the creation of an excel workbook from data retrieved from a SQL server. I have successfully automated the process and the file successfully saves in a pre-determined location as a 57kb xlsx file. However, when I run the Response.TransferFile code, a file is downloaded that is 18kb in size, and when you try to open the file, it says that the file has an invalid extension. Here is the relevent code:
[Code]....
I have tried multiple content types and different ways of specifying the content type (Response.ContentType = XXX, Response.ContentType = "application/excel","vnd.ms-excel",etc). Nothing works. I can't figure out why the filesize is different even if the extension is wrong.
I can navigate to H:/test/filename and open it just fine, so the excel portion of the code is working fine. I don't understand because this code is so simple yet goes so horribly wrong.
View 1 Replies