0
Posted on 5:33 AM by Softminer and filed under

public void ProcessRequest(HttpContext context)
    {
        String FileName = "Test.mp4";
        String FilePath = "Test.mp4";
        System.Web.HttpResponse response = System.Web.HttpContext.Current.Response;
        response.ClearContent();
        response.Clear();
        response.ContentType = "video/mpeg";
        response.AddHeader("Content-Disposition", "attachment; filename=" + FileName + ";");
        response.AppendHeader("Access-Control-Allow-Origin", "*");
        response.TransmitFile(FilePath);
        response.Flush();
        response.End();  

    }


Here is an example of Range-Specific Request in ASP.NET
, Sample
0
Posted on 8:56 AM by Softminer and filed under

Visual studio should run as Administrator:

Process cmd = new Process();
            ProcessStartInfo info = new ProcessStartInfo(@"cmd.exe", "");
            info.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
            info.WorkingDirectory = @"c:\";
            info.RedirectStandardInput = true;
            info.RedirectStandardOutput = true;
            info.RedirectStandardError = true;
            info.UseShellExecute = false;
            info.CreateNoWindow = true;

            cmd.StartInfo = info;
            cmd.Start();

            cmd.StandardInput.WriteLine(@"c:\Windows\system32\inetsrv\appcmd 
            recycle apppool /apppool.name:DefaultAppPool");

            cmd.StandardInput.Flush();
            cmd.StandardInput.Close();
            string output = cmd.StandardOutput.ReadToEnd();
0
Posted on 1:53 AM by Softminer and filed under


<link rel="apple-touch-icon" href="touch-icon-iphone.png" />
<link rel="apple-touch-icon" sizes="72x72" href="touch-icon-ipad.png" />
<link rel="apple-touch-icon" sizes="114x114" href="touch-icon-iphone4.png" />

+
+
0
Posted on 1:49 AM by Softminer and filed under

Usually when you install .net framework 4 you have following application pool:

ASP.NET v4.0
ASP.NET v4.0 Classic

if you have already .net framework 4 and you don't see application pool do the following steps:

Open your command prompt as administrator
Type cd C:\Windows\Microsoft.NET\Framework\v4.0.30319\ and press ENTER.
Type aspnet_regiis.exe -ir and press ENTER again.
If this is a fresh version of IIS (no other sites running on it) or you're not worried about the hosted sites breaking with a framework change you can use -i instead of -ir.
You should now see ASP.NET v4.0 listed

+
0
Posted on 10:03 AM by Softminer and filed under


  • So go here: C:\Users\\AppData\Roaming\Microsoft\Crypto\RSA\
  • Select all the files (named with UUIDS).
  • Move those files to your Desktop or other folder outside AppData dir.
  • Launch Fiddler, go to Tools | Fiddler Options | Enable HTTPS decryption
  • See that it works this time (hopefully).
  • Move the files back from their temp location (i.e., Desktop),
  • to their original one: C:\Users\\AppData\Roaming\Microsoft\Crypto\RSA\
  • When one of the files asks whether you want to replace the existing one, skip it.