Trying to run my ASP NET code online

Discussion in 'ASP.NET / ASP.NET Core' started by mdean99, Jul 24, 2011.

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

    I have copied some of the asp.net code I have been developing online.
    All the individual pages can be viewed ok in the msvw developer 2010 express and they run ok, they follow the code links etc.
    But I have now copied the code online and nothing runs at all!
    The message says to change a registry value!! That is not possible when using an online hosting company!
    Any ideas please.
    One possible issue could be that I just copied all the code online as individual modules. This is my first attempt to run any NET code online. Should I be creating some sort of package and putting that online?
    As I have not used any NET stuff before, the issue could be really basic!!!
    thanks
    Michael
    ---------------------

    Server Error in '/' Application.

    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=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

    Source Error:


    Line 12: <compilation debug="true">
    Line 13: <assemblies>
    Line 14: <add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    Line 15: <add assembly="System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    Line 16: <add assembly="System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

    Source File: E:\Domains\s\stamps4sale.co.uk\user\htdocs\web.config Line: 14

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


    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.3623; ASP.NET Version:2.0.50727.3618
     
  2. It seems that there’s a difference in versions – your code expects v4, but last line mentions v2? Are you on the right server?
     
  3. hi Peter.
    Thanks for looking at this. I saw the version number but according to the hosting company I have added ASP.NET 3.5 to the domain name.
    So I am not sure what to believe!
    Is there possibly a way in which I am running version 2 subset of the 3.5 product?
    I won't get an answer to a support request until tomorrow (I am in the UK).
    Should I be able to just upload the code from development directory or do I have to produce some sort of package which is uploaded?
    Michel
     
  4. Michel –

    I am offering educated guesses only… I’m sure the support response will be more to the point.

    I have not ever had to publish (FTP) a compiled package to the host. “The ASP.NET system” is supposed to put everything together with a program called the JIT compiler (just in time compiler, or “the jitter”).

    If I recall correctly there was a DiscountASP.NET requirement that in order to use v4 you need to be on specific machines…
     
  5. Bruce

    Bruce DiscountASP.NET Staff

    The error means that you didn't upload some assembly to the bin directory?

    Are you using VS.NET to deploy?
     
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