ASP.NET MVC Framework

Discussion in 'ASP.NET / ASP.NET Core' started by Pianoman, Feb 26, 2009.

  1. Is it possible to use the ASP.NET MVC Framework on DiscountASP. If yes experiential report. If no planned ?
     
  2. Hi,
    Yes...The Channel 9 teams Oxite runs on DASP servers.
    Haven't tried it myself yet but it has been reported to run well.
    Salute,
    Mark

    P.S. Take a look at this, great resource: www.codeplex.com/mvc4aspnet

    Technical Evangelist for DiscountASP.NET

    Find ASP.NET code samples with my Dev Coop search tools below.
    Google
    Microsoft

    DiscountASP.NET Technical Webcasts:
    http://www.iis7test.com/webcasts/

    My Microsoft Technical Blogs
    http://weblogs.asp.net/markwisecarver/
    http://blogs.windowsclient.net/wisecarver/default.aspx

    Post Edited (wisemx) : 2/27/2009 2:16:38 PM GMT
     
  3. I came here just to ask this question. The second part of the question is do I need to host the application on a 2008 server with IIS7 or can I keep my account on the 2003 IIS6? I know that I have to modify the global.asax file to map in the root but is there anything on the server side that needs to be done?

    Thanks
     
  4. Hi,
    I believe it will run fine on IIS6, if not one of the DASP Tech Staff will respond. ;-)
    All the best,
    Mark
     
  5. Mark thanks for the reply. Now it is time to to get this all together and see where I can go with it. Just trying to take out as many variables as possible, makes it easier to debug

    Looks like it has some possiblities. :D

    Jerry
     
  6. Can't find system.web.mvc?

    Anybody know how to get around the following problem please? I'm using IIS7 on the DASP UK server.

    I'm using Visual Studio 2008 and just trying to get started with the NerdDinner sample. I see (using IIS Manager remotely) that system.web.mvc is not in the GAC - is it supposed to be?
    Cheers,
    Jim
    Configuration Error

    [FONT=Arial, Helvetica, Geneva, SunSans-Regular, sans-serif]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.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

    Source Error:

    Line 44: <add assembly="System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>Line 45: <add assembly="System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>Line 46: <add assembly="System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>Line 47: <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>Line 48: <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>[/FONT]
     
  7. Hi,
    Update your /bin/ folder, add the MVC binaries to your site.
    Think that will do it.
    Salute,
    Mark
     
  8. Many thanks Mark - I wasn't sure if I was 'meant' to do that or not!

    For anyone else out there, just FTP the file 'System.Web.Mvc.dll' from (in my case):

    C:\Program Files\Microsoft ASP.NET\ASP.NET MVC 1.0\Assemblies

    to:

    fred/bin

    where 'fred' is the folder with your app in.

    Thanks again,
    Jim
     
  9. I am having a problem with my application which is developed using SQL Server 2008 and Visual Studio 200 Express edition. I am using MVC framework and ADO.NET Entity Data Model. Whenever I am trying to go to database I am following error -

    Server Error in '/crs' Application.
    --------------------------------------------------------------------------------

    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

    My connection string looks like this -
    <add name="adminEntities" connectionString="metadata=res://*/Models.AdminModel.csdl|res://*/Models.AdminModel.ssdl|res://*/Models.AdminModel.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=tcp:sql2k802.discountasp.net;Initial Catalog=MyCatalog;Persist Security Info=True;Network Library=;Connection Timeout=15;Packet Size=4096;Integrated Security=no;Encrypt=no;User ID=USER;Password=******;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient" />

    Has anybody ever faced this issue. Any help will be appreciated.
     
  10. The error message means that your application is trying to connect to a SQL Express databse. You're gonna need to go through your coding and make sure you drop any connection string name that is calling to a SQL Express databse.

    If you are on an IIS 6 platform, the GAC on that platform is defaulted to have LocalSQLServer to point to a SQL Express database. Some .Net applications auotmatically checks LocalSQLServer as its default connection. So if you have not implicitedly dropped this connection name from your application it just may try to look for a SQL Express database. Also try adding this to your .Net configuration file if you have not already done so.

    <remove name="LocalSqlServer" />
     
  11. Thanks Raymondp.

    I am on IIS 7.0 platform.

    I tried <remove name="LocalSqlServer" />. It didn't make any difference. However I was able to connect to DiscountASP.Net database from my local IIS successfully. But same connectionstring is not working on hosted environment.
     

Share This Page