c:\inetpub\wwwroot\Semsark2\RSS.aspx.cs(7): error CS0138: A using namespace directive can only be applied to namespaces; 'System.IO.File' is a type not a namespace

System.Web.HttpCompileException: c:\inetpub\wwwroot\Semsark2\RSS.aspx.cs(7): error CS0138: A using namespace directive can only be applied to namespaces; 'System.IO.File' is a type not a namespace

System.Web.HttpCompileException (0x80004005): c:\inetpub\wwwroot\Semsark2\RSS.aspx.cs(7): error CS0138: A using namespace directive can only be applied to namespaces; 'System.IO.File' is a type not a namespace
   at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
   at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
   at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
		

Logged on Sunday, April 12, 2026 at 12:22:49 PM

See also:

Server Variables

NameValue
ALL_HTTPHTTP_CACHE_CONTROL:no-cache HTTP_CONNECTION:close HTTP_PRAGMA:no-cache HTTP_ACCEPT:text/markdown,text/html;q=0.9,application/xhtml+xml;q=0.8,application/xml;q=0.7,image/webp;q=0.6,*/*;q=0.5 HTTP_ACCEPT_ENCODING:gzip, deflate, br HTTP_ACCEPT_LANGUAGE:en-US,en;q=0.5 HTTP_HOST:www.semsark.com HTTP_USER_AGENT:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36 HTTP_SEC_CH_UA:"Not;A=Brand";v="99", "Google Chrome";v="139", "Chromium";v="139" HTTP_SEC_CH_UA_MOBILE:?0 HTTP_SEC_CH_UA_PLATFORM:"Linux" HTTP_UPGRADE_INSECURE_REQUESTS:1 HTTP_SEC_FETCH_SITE:same-site HTTP_SEC_FETCH_MODE:navigate HTTP_SEC_FETCH_USER:?1 HTTP_SEC_FETCH_DEST:document HTTP_SENTRY_TRACE:6eb424063825f308cccf97349ed356d4-086ceff17b557956-0 HTTP_BAGGAGE:sentry-environment=production,sentry-public_key=41fa59a1376ec796312848f4f17266ba,sentry-trace_id=6eb424063825f308cccf97349ed356d4,sentry-org_id=4510313822748672,sentry-sampled=false,sentry-sample_rand=0.5753872102659108,sentry-sample_rate=0.1
ALL_RAWCache-Control: no-cache Connection: close Pragma: no-cache Accept: text/markdown,text/html;q=0.9,application/xhtml+xml;q=0.8,application/xml;q=0.7,image/webp;q=0.6,*/*;q=0.5 Accept-Encoding: gzip, deflate, br Accept-Language: en-US,en;q=0.5 Host: www.semsark.com User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36 sec-ch-ua: "Not;A=Brand";v="99", "Google Chrome";v="139", "Chromium";v="139" sec-ch-ua-mobile: ?0 sec-ch-ua-platform: "Linux" upgrade-insecure-requests: 1 sec-fetch-site: same-site sec-fetch-mode: navigate sec-fetch-user: ?1 sec-fetch-dest: document sentry-trace: 6eb424063825f308cccf97349ed356d4-086ceff17b557956-0 baggage: sentry-environment=production,sentry-public_key=41fa59a1376ec796312848f4f17266ba,sentry-trace_id=6eb424063825f308cccf97349ed356d4,sentry-org_id=4510313822748672,sentry-sampled=false,sentry-sample_rand=0.5753872102659108,sentry-sample_rate=0.1
APPL_MD_PATH/LM/W3SVC/4/ROOT
APPL_PHYSICAL_PATHC:\inetpub\wwwroot\Semsark2\
AUTH_PASSWORD*****
AUTH_TYPE
AUTH_USER
CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_KEYSIZE256
CERT_SECRETKEYSIZE2048
CERT_SERIALNUMBER
CERT_SERVER_ISSUERC=US, O=Let's Encrypt, CN=R13
CERT_SERVER_SUBJECTCN=www.semsark.com
CERT_SUBJECT
CONTENT_LENGTH0
CONTENT_TYPE
GATEWAY_INTERFACECGI/1.1
HTTP_ACCEPTtext/markdown,text/html;q=0.9,application/xhtml+xml;q=0.8,application/xml;q=0.7,image/webp;q=0.6,*/*;q=0.5
HTTP_ACCEPT_ENCODINGgzip, deflate, br
HTTP_ACCEPT_LANGUAGEen-US,en;q=0.5
HTTP_BAGGAGEsentry-environment=production,sentry-public_key=41fa59a1376ec796312848f4f17266ba,sentry-trace_id=6eb424063825f308cccf97349ed356d4,sentry-org_id=4510313822748672,sentry-sampled=false,sentry-sample_rand=0.5753872102659108,sentry-sample_rate=0.1
HTTP_CACHE_CONTROLno-cache
HTTP_CONNECTIONclose
HTTP_HOSTwww.semsark.com
HTTP_PRAGMAno-cache
HTTP_SEC_CH_UA"Not;A=Brand";v="99", "Google Chrome";v="139", "Chromium";v="139"
HTTP_SEC_CH_UA_MOBILE?0
HTTP_SEC_CH_UA_PLATFORM"Linux"
HTTP_SEC_FETCH_DESTdocument
HTTP_SEC_FETCH_MODEnavigate
HTTP_SEC_FETCH_SITEsame-site
HTTP_SEC_FETCH_USER?1
HTTP_SENTRY_TRACE6eb424063825f308cccf97349ed356d4-086ceff17b557956-0
HTTP_UPGRADE_INSECURE_REQUESTS1
HTTP_USER_AGENTMozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36
HTTPSon
HTTPS_KEYSIZE256
HTTPS_SECRETKEYSIZE2048
HTTPS_SERVER_ISSUERC=US, O=Let's Encrypt, CN=R13
HTTPS_SERVER_SUBJECTCN=www.semsark.com
INSTANCE_ID4
INSTANCE_META_PATH/LM/W3SVC/4
LOCAL_ADDR172.31.24.199
LOGON_USER
PATH_INFO/rss.aspx
PATH_TRANSLATEDC:\inetpub\wwwroot\Semsark2\rss.aspx
QUERY_STRING
REMOTE_ADDR181.214.6.149
REMOTE_HOST181.214.6.149
REMOTE_PORT34455
REMOTE_USER
REQUEST_METHODGET
SCRIPT_NAME/rss.aspx
SERVER_NAMEwww.semsark.com
SERVER_PORT443
SERVER_PORT_SECURE1
SERVER_PROTOCOLHTTP/1.1
SERVER_SOFTWAREMicrosoft-IIS/10.0
URL/rss.aspx