Error while compiling script

Hi All,

I have one script which uses code as below.

Dim request As HttpWebRequest = CType(HttpWebRequest.Create(sUrl), HttpWebRequest)

This script is compiling succesfull in Development and acceptance environment.

But when we transported this script to PROD it throws error saying HTTP object not declated.

For troubleshoot when I added Imports System.Net  in script it succeed

Do you know why it is compiling successfully in DEV and not in PROD.

Thank you in advance.

Kind Regard,

Dnyandev