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 Tuesday, April 14, 2026 at 2:01:22 PM

See also:

Server Variables

NameValue
ALL_HTTPHTTP_CACHE_CONTROL:no-cache,max-age=0 HTTP_CONNECTION:keep-alive HTTP_PRAGMA:no-cache HTTP_ACCEPT:*/* HTTP_ACCEPT_ENCODING:gzip, deflate, br HTTP_FROM:googlebot(at)googlebot.com HTTP_HOST:www.semsark.com HTTP_USER_AGENT:FeedFetcher-Google; (+http://www.google.com/feedfetcher.html)
ALL_RAWCache-Control: no-cache,max-age=0 Connection: keep-alive Pragma: no-cache Accept: */* Accept-Encoding: gzip, deflate, br From: googlebot(at)googlebot.com Host: www.semsark.com User-Agent: FeedFetcher-Google; (+http://www.google.com/feedfetcher.html)
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_ACCEPT*/*
HTTP_ACCEPT_ENCODINGgzip, deflate, br
HTTP_CACHE_CONTROLno-cache,max-age=0
HTTP_CONNECTIONkeep-alive
HTTP_FROMgooglebot(at)googlebot.com
HTTP_HOSTwww.semsark.com
HTTP_PRAGMAno-cache
HTTP_USER_AGENTFeedFetcher-Google; (+http://www.google.com/feedfetcher.html)
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_ADDR74.125.218.6
REMOTE_HOST74.125.218.6
REMOTE_PORT63699
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