Configuration :: File Download From 3 Servers Not Working?

Sep 22, 2010

We have a problem where in the user can download files from an email. A link that will redirect to a page where the code to download the file resides. Before the download the user needs to be logged in to the system for security. The problem is that sometimes for whatever reason when the user clicks the link the download dialog box does not appear and just a blank white page. It happens only on our staging environment where we have 3 servers.. We can't reproduce this in our dev and test env. where we only have one server.

Below is the actual code.

[Code]....

View 8 Replies


Similar Messages:

Javascript File Download Not Working On IE6 And IE7?

Oct 21, 2010

I have the following code

Response.TransmitFile(filePath);

Opens the new window using the following line of code

this.Page.ClientScript.RegisterStartupScript(this.GetType(), "Download", string.Format("window.open('{0}', target = 'new');", downloadURL), true);

This works on IE8 however doesn't work on IE6 and IE7

View 1 Replies

Web Forms :: How To Upload And Download Files From Remote Servers Without Using FTP

Sep 14, 2010

Can we upload and download files from remote servers through code without using FTP?

View 2 Replies

Configuration :: Same Web Application Deployed On Three Different Servers?

Feb 13, 2011

If same web application is deployed on three different servers, which things we need to take care of and what things should be common amonges all three?

View 3 Replies

Configuration :: Exchange XML Files Between Web Servers?

Jan 20, 2011

I have a situation where we are splitting dynamic content from static content and each is getting its own web server. The people maintaining the site want to be able to make navigation changes once and have it show on both servers without any major extra work (for them). I'm putting the navigation structure in an XML file which also has information on things specific to each content page. This brings me to the question of how to share that file. If I want the change to be instantaneous I can't rely on a scheduled task to copy the file from one server to another.Access to one of the servers is very limited due to security policy.

I am thinking about maybe a web service running on one server to get the data from it to pages on the other server. Does this sound viable or do any of you have other ideas that may work better? I considered having the navigation in a database but this introduces the need for a tool for the navigation updaters to have for them to do that. It is easy for them to update XML and just publish to the server with a lower security level. To get them database access requires terrible paperwork and meeting with security people.

View 5 Replies

Configuration :: Deploy Application In Multiple Servers

May 17, 2010

We have built an asp.net application according to 3 tier architecture, but Data Tier and Application logic lies on the same server. Our client needs that to be deployed in 2 different servers. Only front end in web server DAL & BLL in app server. Database is in different server. All 3 servers are at different physical locations. How can we commuicate between these servers and our applicaton tiers? is there any option in IIS so that we can deploy only back end code in another server? what is the best approach to communicate between different application tiers when they are physically apart?

View 2 Replies

Configuration :: Managing A .net Site Across Multiple Servers

Mar 28, 2011

A friend and I manage a large website for a company. The site is build using Visual Studio 2005 and is a series of nested web applications run inside a master application employing nested master pages. Currently we have to manually move files around folders and FTP them to various servers and I am looking for a way to be able to manage the deployment end of the site in a more automated fashion. I'd like to be able to work on my local version of a project and once I'm done be able to hit one button and publish the site to our internal testing server and then when testing is complete hit another button to deploy it to the live web servers. Right now we have to manually navigate the windows folders and copy pages, css files, images, swfs, etc and FTP them manually. The driver for this is that we have a new junior develop starting and want to remove the manual aspect in advance of him starting.

View 1 Replies

Configuration :: Website Gives Error Because Of Different Datetime Format On Different Servers?

Jan 22, 2010

I have an website which runs nice on my development PC as well as on my local server.

But when deployed at clients server it gives error because of different datetime format at client server. I had checked it on 3 to 4 servers when the datetime format is same as my local server website runs fine. But when ever a datetime formate is different it starts giving error for datetime, whenever i try to do any transaction with date stored in datebase.

View 4 Replies

Configuration :: Using Linq To SQL Data Sources With Clustered Servers And Mirroring?

Jul 7, 2010

I'm a developer new to asp.net 3.5. My client asked if there were any implications of using Linq to SQL data sources with mirrored clustered servers with Failover clustering.

So my questions are can you use Linq to SQL with mirrored Clustered Servers?

If yes to the above, do you need to add or modify any code for mirrored Clustered Servers?

View 2 Replies

Show Download Dialog Box In Case Of File Download - Located On Amazon Server

Jan 4, 2010

i am using amazon s3 service. now i want to show download dialog box in my asp.net application when user come on download page. i am using amazon sdk.

View 1 Replies

HttpHandlers / Modules :: Redirect Shareware Download URL From A File To A Download Page?

Oct 13, 2010

I'm about to submit my pad file to multiple sharware sites but the pad file has to have a direct link to the download file and can't link to a download page which is what I would like to do, so I can track the traffic and get the downloader's email before allowing the download. I am running an ASP.NET site in VB. Is there a way to tell the web app to redirect to a specific aspx page when it receives a request for a specific file?

View 1 Replies

AJAX :: Download LinkButton In UpdatePanel Throwing Error While File Download?

Jun 10, 2013

I have added linkbutton inside gridview to download, below is my code..

protected void lnkDownload_Click(object sender, EventArgs e)
{
try
{

[Code].....

its giving me following error

"Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack"

View 1 Replies

Configuration :: Slow Performance With Offshore Hosting - Does Distance Between Servers And DBs Matter

Sep 7, 2010

I just had to moved a site of mine from a hosting service here in the states to an offshore host located in Malaysia. My database is still located on the east coast of north america and I am wondering if the distance between the database and the file system might be to blame for slow load times or if moving my database as well would be a waste of time.

View 2 Replies

Web Forms :: Download File Using New Window When Download Button Is Clicked

Sep 2, 2013

I need to download  a .mp3 file from a folder. during download a new blank page should open and after downloading it should close automatically.

View 1 Replies

Configuration :: LinkButtons Not Working When Clicked - 404 - File Or Directory Not Found

Nov 9, 2010

So I have a strange problem. I have 2 LinkButtons on a form with their OnCommand event attached. Everything works fine locally when debugging but when I publish the web site with I get the following error:

404 - File or directory not found.

The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

I also tried the OnClick event but I get the same results.

This is being published to IIS 7.

The OnCommand is just doing a redirect. I can manually do the redirect by entering the url the same way it's passed to redirect and it works fine. I also tried putting some code in just to verify that the event really gets called on the server and it seems it doesn't. Although it does work fine locally. I also tried removing all the files from the server and doing a clean publish just to make sure I wasn't missing anything.

View 4 Replies

Double Hop On Workgroup Servers Vs Domain Servers

Nov 16, 2010

I am trying to set up my web site on a stand alone server using Windows Server 2003 with IIS 6 which will access SQL server database (2008) on windows 2008 R2 server (also not in the domain) I am using form authentication and I have configured a custom identity account in IIS6. The local account is on both servers with same password and I have registered the account using aspnet_regiis.exe -ga The application pool in my iis6 has the custom local account set as the identity and my web.config file has the appropriate tags in the system.web element <identity impersonate="true" />

The problem is the local account does not seem to get passed to the sql server. Right now my iis settings are anonymous access (using the local acct vs isr) and no authentication specified under that - I did try Integrated and basic but it prompts for the username and password which I do not want. One article I read stated this: windows authentication does not support delegation (passing credentials from one server to another) and is limited to the one hop rule, only a primary token can be passed to a second server. windows
authentication on iis (all versions) gives the thread a secondary(impersonation) token which can not be used to access any network resouce

View 1 Replies

C# - Upload A File To Multiple Servers

Mar 6, 2010

I see a ton of questions about uploading multiple files, but none about uploading a single file to multiple servers, so here goes... I have an ASP.NET app that will be running on two load balanced servers, and I would like to allow users to upload files and have them end up on both servers. What is the cleanest way to do this? I am using IIS 6 btw. Some ideas that come to mind are:

1) Use a virtual directory that points to some shared location that both servers can access. Will there be any access issues if the application runs at Network Service? I'm assuming the application will need to run as a user account that exists on the shared location machine. How should the permissions be set for this?

2) It would be nice if I could via jQuery post the request to both of my servers, referencing them by their port numbers. Even though the servers are on the same domain, this violates the same origin policy, right? Is there another solution I'm overlooking? How do other sites do this?

View 4 Replies

Web Forms :: How To Upload A File To Two Different Servers

Aug 30, 2010

How to upload a file to two different servers

Here is Code behind:

Protected Sub btnUpload_Click(ByVal sender
As Object, ByVal e As System.EventArgs)
Handles btnUpload.Click
Dim fileExt As String
fileExt = System.IO.Path.GetExtension(FileUpload1.FileName)
If (fileExt <> ".exe") Then........

View 4 Replies

Web Forms :: Store Same File Into Multiple Servers?

Jan 30, 2010

How do i store same file into multiple servers? My scenario is explained below Administrator module resides in production server ( "cccc" domain) which is accessible only within my company. Common module resides in DMZ and can be accessed by internet users. I have written a program to upload a .xls file to both the servers. My program is in administrator module and resides in cccc domain. I could upload the file to the server in my company but i cant upload it in DMZ. Following is the code to upload to ccc domain

FileInput.PostedFile.SaveAs(Server.MapPath("..TU" & ServerFileName))
Followins is the code to upload to dmz
FileInput.PostedFile.SaveAs("http://grtr/" & "/TU/" & ServerFileName) I will get the serverfilename using file upload control

View 4 Replies

How To Create Generic Web.config File For Different Web Servers Web Application

Jul 13, 2010

I want to create a generic web.config file for different web servers in VB.NET. So, depending on the server configuration requirements, applications can retrieve all values from that generic configuration file.

Is this possible? How would I do this?

View 5 Replies

MVC :: Using Images From The Servers File System Not Part Of The Application?

Jun 17, 2010

I need to use images in my ASP.NET MVC application that are not included in the application, but are saved in the file system of the server under the c/documents folder.

How can I get these images?

I have a AppHelper class that looks like this and will use to get the path

[Code]....

then in my view i will use this the get that image

[Code]....

View 11 Replies

Setup Identical <machinekey /> Sections On Each Servers .config File?

Mar 2, 2010

We have a scenario using asp.net Forms Authentication in a web farm and need to setup identical <machinekey /> sections on each servers .config file.

Is it better to store the <machinekey /> section in machine.config rather then web.config? what's the advantages and disadvantages of each approach concerning security?

<machineKey validationKey="[keyhere]"
decryptionKey="[keyhere]" validation="SHA1" />

If its not secure enough, is there any way to encrypt <machinekey /> section like we encrypt our connectionsstring (with DPAPI)? (http://msdn.microsoft.com/en-us/library/ms998280.aspx)

View 1 Replies

Creating Mobile Website Page To Download Symbian .sis File To Mobile Unable To Download Properly

Dec 10, 2010

i m creating asp.net Mobile website page to download symbian .sis file to mobile ,but its not geting download properly.its working perfectly on desktop.

View 2 Replies

Controls :: Convert ASPX Page To PDF File And Save It On Servers Disk?

Feb 22, 2013

i convert my webpage into pdf file in vb.net

i want to save that pdf file in a specific folder in any drive (C: or D:)

how can i give a path in the below coding

Response.Buffer =True
Response.ContentType ="application/pdf"
Response.AddHeader("content-disposition", String.Format("attachment; filename={0}.pdf", Me.psno.Text))
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Dim sw AsNew StringWriter()

[Code].......

View 1 Replies

Web Forms :: Controlling File Name Of The File Opened Directly From File Download Dialog?

Jul 26, 2010

I am downloading file from database using the following code. This code downloads an excel file from the database which has a macro attached to it when it is opened. This macro reads file name of the excel file and uses it for its computation. Everthing works file if user saves the file on his harddisk and then open if but if he directly opens the file from the dialog(by hitting 'Open' button) then file name of the opened excel file comes out be the name of the webform that has the above code and this leads to error in the macro. Is there any option through which i can control the name of the file if user directly opens the file from dialog or the option to disable or remove 'Open' button form the dialog?

[Code]....

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved