Results 1 to 6 of 6

Thread: Simple Error but I can't find it

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2002
    Posts
    59

    Question Simple Error but I can't find it

    Hi all,
    I have developed a simple web site on my machine I have tested it and it is working fine on my laptop. Because I have problems with my images (previous question) I have now deployed my web site (FTP) to the .netplayground for testing and to get used to deploying web sites and updating pages and so on. I have tried to hit the web site and all I get is an error:


    Parser Error Message: File or assembly name System.Web, or one of its dependencies, was not found.
    Source Error:
    Line 54: -->
    Line 55: <httpHandlers>
    Line 56: <add verb="*" path="*.vb" type="system.web.HttpNotFoundHandler,System.Web" />
    Line 57: <add verb="*" path="*.cs" type="System.Web.HttpNotFoundHandler,System.Web" />
    Line 58: <add verb="*" path="*.vbproj" type="System.Web.HttpNotFoundHandler,System.Web" />

    Source File: E:\web\Cornwood\htdocs\web.config Line: 56



    I have had various attempts such as commenting out lines in this area, but I still get related errors to System.Web

    Any ideas?

    Thanks for your time

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    try System.Web.dll
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3

    Thread Starter
    Member
    Join Date
    Jul 2002
    Posts
    59
    OK

  4. #4

    Thread Starter
    Member
    Join Date
    Jul 2002
    Posts
    59
    I have tried to use System.Web.Dll in:


    Line 56: <add verb="*" path="*.vb" type="system.web.dll.HttpNotFoundHandler,System.Web.Dll" />


    is this correct? If so, then it still doesn't work (is web.config case sensitive?) is there anything else that I've missed here?

  5. #5

    Thread Starter
    Member
    Join Date
    Jul 2002
    Posts
    59
    I thought I would include the load trace of the original error, for completeness

    Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web' could not be loaded.


    === Pre-bind state information ===
    LOG: DisplayName = System.Web
    (Partial)
    LOG: Appbase = file:///E:/web/Cornwood/htdocs
    LOG: Initial PrivatePath = bin
    Calling assembly : (Unknown).
    ===

    LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
    LOG: Post-policy reference: System.Web

    LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/root/0a038de6/5c54360a/System.Web.DLL.

    LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/root/0a038de6/5c54360a/System.Web/System.Web.DLL.
    LOG: Attempting download of new URL file:///E:/web/Cornwood/htdocs/bin/System.Web.DLL.
    LOG: Attempting download of new URL file:///E:/web/Cornwood/htdocs/bin/System.Web/System.Web.DLL.
    LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/root/0a038de6/5c54360a/System.Web.EXE.
    LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/root/0a038de6/5c54360a/System.Web/System.Web.EXE.
    LOG: Attempting download of new URL file:///E:/web/Cornwood/htdocs/bin/System.Web.EXE.
    LOG: Attempting download of new URL file:///E:/web/Cornwood/htdocs/bin/System.Web/System.Web.EXE.

  6. #6

    Thread Starter
    Member
    Join Date
    Jul 2002
    Posts
    59

    Cracked it

    The answer to my earlier problem, for those interested, is:

    <add verb="*" path="*.vb" type="System.Web.HttpNotFoundHandler" /> and nothing more. In other words, loose the ",System Web"

    L8R

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width