Home > Net >  ASP.net website local download file can be downloaded and deployed to the server is not available fo
ASP.net website local download file can be downloaded and deployed to the server is not available fo

Time:10-03

I wrote a c # file download webapplication, using ASP. NET4.0, the Server is a Windows Server 2012 r2. The previously published on the Server can be run, do not know what is the patch Server, or other reasons I click download, and did not respond to a web page also don't download files, strives for the great god give advice or comments

CodePudding user response:

Code is not depend on guessing

CodePudding user response:

Is a static file download or generated dynamically download files?
Static, to set up iis
Dynamic, have to see you have an error code, print the log

CodePudding user response:

It's not a hint

CodePudding user response:

How to 404 or other errors

CodePudding user response:

Visual is your download this file too big

Try to modify the application (in the configuration file) and the maximum capacity of iis, iis 6, and will and above versions have different operation, their search, maxRequest...

For larger files, is res asp.net
Consider using webClient, concrete under their search

CodePudding user response:

Can obtain the iis log and the Windows event log, for specific error information

CodePudding user response:

refer to the fifth floor in the autumn red fruit response:
visual is your download this file too big

Try to modify the application (in the configuration file) and the maximum capacity of iis, iis 6, and will and above versions have different operation, their search, maxRequest...

For larger files, is res asp.net
Consider using webClient, concrete under their search

Found so far is to download the file permissions cannot access, thank you, I want to ask download files released iis website, it is how to set up a download file permissions?

CodePudding user response:

refer to 7th floor qq_28326941 response:
Quote: refer to the fifth floor in the autumn red fruit response:
visual is your download this file too big

Try to modify the application (in the configuration file) and the maximum capacity of iis, iis 6, and will and above versions have different operation, their search, maxRequest...

For larger files, is res asp.net
Consider using webClient, concrete under their search

Found so far is to download the file permissions cannot access, thank you, I want to ask download files released iis website, it is how to set up a download file permissions?

If it is a static file read-only access is one of the best,

CodePudding user response:

refer to 7th floor qq_28326941 response:
Quote: refer to the fifth floor in the autumn red fruit response:
visual is your download this file too big

Try to modify the application (in the configuration file) and the maximum capacity of iis, iis 6, and will and above versions have different operation, their search, maxRequest...

For larger files, is res asp.net
Consider using webClient, concrete under their search

Found so far is to download the file permissions cannot access, thank you, I want to ask download files released iis website, it is how to set up a download file permissions?
on the server, find where to download files folder, right-click, property, security, add the Users account, and edit permissions: read is allowed

CodePudding user response:

If you can download on the browser, or you cannot download code,

CodePudding user response:

The browser F12 see

CodePudding user response:

1 need which directory in IIS Settings, allowing the download directory;
2 or file extension problem, do you need to set the file format, such as: I can't download the APK, so this will need to set up,
  • Related