English 中文(简体)
Trouble 接二流
原标题:Trouble getting IIS to display web app

i am having no problem at all compiling/debugging my web app, but when i try to run it from my IIS server i get this error:

    Server Error in Application "DEFAULT WEB SITE"
    Internet Information Services 7.5
    Error Summary
    HTTP Error 404.3 - Not Found
    The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.
    Detailed Error Information
    Module  StaticFileModule
    Notification    ExecuteRequestHandler
    Handler StaticFile
    Error Code  0x80070032
    Requested URL   http://student-006:80/dataentry/lomform.aspx
    Physical Path   C:inetpubwwwrootdataentrylomform.aspx
    Logon Method    Anonymous
    Logon User  Anonymous
    Most likely causes:
    It is possible that a handler mapping is missing. By default, the static file handler processes all content.
    The feature you are trying to use may not be installed.
    The appropriate MIME map is not enabled for the Web site or application. (Warning: Do not create a MIME map for content that users should not download, such as .ASPX pages or .config files.)
    If ASP.NET is not installed.
    Things you can try:
    In system.webServer/handlers:
    Ensure that the expected handler for the current page is mapped.
    Pay extra attention to preconditions (for example, runtimeVersion, pipelineMode, bitness) and compare them to the settings for your application pool.
    Pay extra attention to typographical errors in the expected handler line.
    Please verify that the feature you are trying to use is installed.
    Verify that the MIME map is enabled or add the MIME map for the Web site using the command-line tool appcmd.exe.
    To set a MIME type, use the following syntax: %SystemRoot%windowssystem32inetsrvappcmd set config /section:staticContent /+[fileExtension= string ,mimeType= string ]
    The variable fileExtension string is the file name extension and the variable mimeType string is the file type description.
    For example, to add a MIME map for a file which has the extension ".xyz": appcmd set config /section:staticContent /+[fileExtension= .xyz ,mimeType= text/plain ]
    Warning: Ensure that this MIME mapping is needed for your Web server before adding it to the list. Configuration files such as .CONFIG or dynamic scripting pages such as .ASP or .ASPX, should not be downloaded directly and should always be processed through a handler. Other files such as database files or those used to store configuration, like .XML or .MDF, are sometimes used to store configuration information. Determine if clients can download these file types before enabling them.
    Install ASP.NET.
    Create a tracing rule to track failed requests for this HTTP status code. For more information about creating a tracing rule for failed requests, click here.
    Links and More Information
    This error occurs when the file extension of the requested URL is for a MIME type that is not configured on the server. You can add a MIME type for the file extension for files that are not dynamic scripting pages, database, or configuration files. Process those file types using a handler. You should not allows direct downloads of dynamic scripting pages, database or configuration files.
    View more information »

what am i doing wrong? how can i correct this issue? i am running windows 7/iis 7

最佳回答

象Ap.net config这样的声音是 sp。

Rerun aspnet_regiis -i and see whatyous. 这应当增加所有必要的环境,并添加手稿,供浏览。

缩略语 - i打开了指挥台(Windows + R, 台风,点击返回),并改成C:CordMicrosoft。 NETFramework{FRAMEWORK VERSION}的目录随后执行指挥。

例如,在64个轨道窗口上的4网

> cd C:WindowsMicrosoft.NETFramework64v4.0.30319

C:WindowsMicrosoft.NETFramework64v4.0.30319> aspnet_regiis -i
问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签