Ajax on iis 7???

Discussion in 'Windows 2008/IIS 7 Beta [Closed]' started by Bruce, Jul 20, 2007.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Bruce

    Bruce DiscountASP.NET Staff

    ajax is not installed on IIS 7.0. You should be able to upload the dlls into the bin directory though.


    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  2. Is Ajax installed on iis 7?

    I have an app working on my localhost which is Vista with iis 7 and it works but getting the following error on my DiscountASP Beta site:
    http://beta-270837.beta1.iis7betahosting.net/

    Any help is appreciated [​IMG]



    Configuration Error
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

    Source Error:





    Code:
    Line 51:     <compilation debug="false">
    Line 52:       <assemblies>
    Line 53:         <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    Line 54:         <add assembly="DevExpress.Web.v7.2, Version=7.2.1.0, Culture=neutral, PublicKeyToken=9B171C9FD64DA1D1"/>
    Line 55:         <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
    Source File: e:\web\beta-270837\htdocs\web.config Line: 53

    Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.





    Code:
    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
    

    Version Information:Microsoft .NET Framework Version:2.0.50727.1304; ASP.NET Version:2.0.50727.1304
     
  3. Ok that worked ... Thanks!

    New problem...

    The application is located here:
    http://beta-270837.beta1.iis7betahosting.net/RadGridAjax/Default.aspx

    MS Ajax is now workingbut here is my problem

    The app uploads a file, renames that file with a unique name &amp; file path. All this works good but when I click the play button
    I can see the file is loaded into the player with a URL of: http://beta-270837.beta1.iis7betahosting.net/uploads/06872ec7-2d86-40ae-8ced-0c444cca1bec

    Server does not like this as I get the following errorbelow attempting to open the URL directly.

    To me it appears that mime mapping might not be doing what I want???

    Is this an application problem or something that would normally be instituted on the server?


    Thanks![​IMG]

    Server Error in Application "beta-270837.beta1.iis7betahosting.net"


    HTTP Error 404.3 - Not Found


    Description: The page you are requesting cannot be served because of the Multipurpose Internet Mail Extensions (MIME) map policy that is configured on the Web server. The page you requested has a file name extension that is not recognized, and is not allowed.


    Error Code: 0x80070032


    Notification: ExecuteRequestHandler


    Module: StaticFileModule


    Requested URL: http://beta-270837.beta1.iis7betahosting.net:80/uploads/06872ec7-2d86-40ae-8ced-0c444cca1bec


    Physical Path: e:\web\beta-270837\htdocs\uploads\06872ec7-2d86-40ae-8ced-0c444cca1bec


    Logon User: Anonymous


    Logon Method: Anonymous


    Handler: StaticFile


    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.)


    What you can try:
    • In system.webServer/handlers:
    • Ensure that the expected handler for the current page is mapped.
    • Pay careful attention to preconditions (e.g. runtimeVersion, pipelineMode, bitness) and compare them to the settings for your application pool.
    • Pay careful 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.
      1. Open a command prompt and change directory to %windir%\system32\inetsrv.
      2. To set a MIME type, use the following syntax: appcmd set config /section:staticContent /+[fileExtension='string',mimeType='string']
      3. The variable fileExtension string is the file name extension and the variable mimeType string is the file type description.
      4. For example, to add a MIME map for a file which has the extension ".xyz", type the following at the command prompt, and then press Enter:
      5. 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.
    • 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.
    <a target="_blank" href="http://go.microsoft.com/fwlink/?LinkID=62293&amp;IIS70Error=404,3,0x80070032,6001">


    More Information... </A>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.

    Server Version Information: Internet Information Services 7.0.
     
  4. DannyT

    DannyT DiscountASP.NET Staff

    The mime type is set for .wmv for your site. I was able to collect all the error your site was creating and pasted 3 unique errors that its producing. Hope these three errors helps!



    Exception message: Could not load file or assembly 'VsWebSite.Interop, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. (e:\web\beta-270837\htdocs\web.config line 59)


    Exception message: Could not load file or assembly 'DevExpress.Data.v7.2, Version=7.2.1.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1' or one of its dependencies. The system cannot find the file specified. (e:\web\beta-270837\htdocs\web.config line 57)


    Exception message: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. (e:\web\beta-270837\htdocs\web.config line 53)


    ***Sample full error of one of the above:



    Event code: 3008


    Event message: A configuration error has occurred.


    Event time: 7/20/2007 1:05:39 PM


    Event time (UTC): 7/20/2007 8:05:39 PM


    Event ID: 84d1b9604284425c98504c85e03314c8


    Event sequence: 1


    Event occurrence: 1


    Event detail code: 0





    Application information:


    Application domain: /LM/W3SVC/270837/ROOT-4-128294355374712500


    Trust level: Full


    Application Virtual Path: /


    Application Path: e:\web\beta-270837\htdocs\


    Machine name: LHWEB2





    Process information:


    Process ID: 7328


    Process name: w3wp.exe


    Account name: LHWEB2\aspnet_270837





    Exception information:


    Exception type: HttpException


    Exception message: Could not load file or assembly 'VsWebSite.Interop, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. (e:\web\beta-270837\htdocs\web.config line 59)





    Request information:


    Request URL: http://beta-270837.beta1.iis7betahosting.net/


    Request path: /


    User host address: 208.240.243.170


    User:


    Is authenticated: False


    Authentication Type:


    Thread account name: LHWEB2\aspnet_270837





    Thread information:


    Thread ID: 9


    Thread account name: LHWEB2\aspnet_270837


    Is impersonating: False


    Stack trace: at System.Web.Compilation.BuildManager.ReportTopLevelCompilationException()


    at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()


    at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)








    Custom event details:



    Chow
    DiscountASP.NET
    <SUB><SUP>http://DiscountASP.NET
     
  5. I had corrected those earlier... and was able to get the application to load.

    I went back an re-corrected them just to make sure.

    I removed Ajax out of the page and the app still does not want to play that file... but it is loading the file.

    Hmmm.

    [​IMG][​IMG]
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page