• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 636
  • Last Modified:

Response.ContentType

I am executing the following code and on my client box, my dev IIS server, qa server, and prod server;  the output file is being written to C:\Windows\System32 folder.  Why?   A dialog screen pops up and I save the file on the C Drive of all the locations but it still appears in the System32 folder.

        Dim filePath As String = ArrayToFile
        Response.AddHeader("Content-Disposition", "attachment; filename=" & filePath)
        Response.ContentType = "application\ocstream"
        Response.End()
       
0
kwcowboy1226
Asked:
kwcowboy1226
1 Solution
 
kraffayCommented:
What is the value of ArrayToFile?



0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now