System.Web.Extensions Web.Config

Discussion in 'ASP.NET / ASP.NET Core' started by Reafidy, Sep 4, 2008.

  1. Hi Mark,


    I was hoping to get a reply from yourself, Ive read a previous thread regarding this matter but it didnt help.
    See attached screenshot via filezilla of my BIN folder and also the vista IIS setup.

    Imnot exactly sure what IIS is but when I was following a walkthrough for setting up my website it said a prerequisite was IIS so I followed these instructions to get it setup:

    http://www.howtogeek.com/howto/windows-vista/how-to-install-iis-on-windows-vista/

    Thanks for your response.
     

    Attached Files:

    • Bin.JPG
      Bin.JPG
      File size:
      30.2 KB
      Views:
      472
    • II7.jpg
      II7.jpg
      File size:
      42.4 KB
      Views:
      455
  2. Hi Everyone,

    I am trying to publish my website. I get the following error and Im totally out of my league. Please let me know if you require more information.

    Thanks in advance.
    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=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. (C:\websites\***\htdocs\web.config line 99)

    Source Error:






    Code:
    Line 97:     </httpHandlers>
    Line 98:     <httpModules>
    Line 99:       <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    Line 100:    </httpModules>
    Line 101:  </system.web>
    Source File: C:\websites\***\htdocs\web.config Line: 99





    Post Edited (Reafidy) : 9/7/2008 5:00:15 AM GMT
     
  3. Hi,
    List the files in your root /bin/ folder, in this thread.
    btw, are you on IIS7?
    Salute,
    Mark
     
  4. Hi Mark,

    Im using visual studio 2008 proso I guess from your reply I do need IIS?

    Okay, I removed the files you stated from the web server and left the one file. Unfortunately I got the same error.

    Looks like this is a bigger problem than I imagined so this is what I have done to try and help trouble shoot.

    I have created a completely new website in visual studio with only an index page and a members only page. I have run asp.configuration to setup the aspnetdb.mdf and add a user too it.

    The only file in my bin directory is App_Web_ej5vcev1.dll.

    I still get the same original error message as in my first post.

    Thanks a lot for your help.

    Here is the web.config file:


     
  5. Hi,
    I'm beginning to think this is a local problem.
    As for IIS, no VS 2008 Pro will create a Web Server for you when you test a page.
    Just right-click on any file and test it in a browser.

    Are you creating a Web site or Application each time?
    If it's an Application try creating a new Website, then test the default page in a browser via VS.

    The odd thing is, VS should be adding the correct assembly references for you if you let it create the web.config.
    Salute,
    Mark
     
  6. Hi,


    Im creating a website not an application. When I debug the website it comes up fine.
    I have also had my full website up and running withmasterpage and contents page etc,but in order to do this I had to strip everything bar a couple of linesfrom the web.config file which Im worried will affect something down the line.

    So, like you say im trying to understand why the web.config file that VS creates causes an error.

    Any further ideas?

    Again, thanks for your help.

    Sam.

    EDIT:

    This is the stripped down version of the webconfig file that works:


     
  7. Hi,
    Try removing all of those files except the first one from your /bin/ folder.
    This way your site will use the DASP Global Assembly for the other files.
    Hopefully then they will match your web.config.
    Just leave one file, your App_Web_bengktdh.dll can remain.

    As for IIS on Vista, you don't have to install it unless you want to test a site without a Cassini enabled IDE.
    (Such as Visual Studio 2005 or newer.)

    There's also a "ASP.NET Web Server Here" tool for Vista, I've been testing it and it works pretty good.
    http://haacked.com/archive/2008/06/24/vs2008-web-server-here-shell-extension.aspx

    Let me know how you do on this.
    Salute,
    Mark
     
  8. Hi,
    That really is stripped down.

    Lets trythis...
    1. Remove your root web.config (Back it up, just move it out of the local site.)
    2. In VS using the local File System openyour local Website. (Shift+Alt+O)
    3. Since this is Vista make sure this Site folder in NOT under "Program Files".
    4. Right-click on the root of your Solution Explorer and choose "Add new Item".
    5. Add a new Web Configuration File.
    6. Now press F5.


    What happened?
     
  9. Hi,


    My website is stored under C:\Users\Sam\Documents\Visual Studio 2008\WebSites.
    I removed the web.config file and added a new one.
    Pressing F5 internet explorer is opened and my website is displayed fine.

    But I havnt had problems while debugging my website has always displayed fine when pressing F5. The problem is when I upload the website to the server, then I get the error message when trying to display my site.

    Thanks for your help.

    PS, what are the server requirements for my domain host? I use: www.interspeed.co.nz

    I have now been told that they do not have sql serverinstalled.
     
  10. Any further ideas Mike? :)
     
  11. Me?
    Honestly I can't think of what may be causing your errors.
    Salute,
    Mark
     

Share This Page