HELP, cant compile (

Last post 02-08-2009 1:21 PM by xyligan. 4 replies.

Sort Posts:

  • HELP, cant compile (

    02-07-2009, 4:42 PM
    • Member
      4 point Member
    • xyligan
    • Member since 06-16-2008, 10:05 AM
    • Kiev
    • Posts 10

     

     

    Soft:

    Visual Studio 2008 SP1, MVC RC1, .NET 3.5

     

    Downloaded version  - 17126

    Full image : http://phone.km.ua/error_list.png

     

    Thanks a lot

  • Re: HELP, cant compile (

    02-07-2009, 4:54 PM
    • Member
      479 point Member
    • ms_soft89
    • Member since 09-17-2007, 12:08 PM
    • 6th October City , 8th district
    • Posts 101

    from project explorer right click on the project and choose add reference and add the dll file StructureMap.dll it may be in the bin directory of the project

    If you cannot make thing good m make it looks like good

    --------------------------------------------------
    Always remember to click “Mark as Answer” on the post that helps you. Thank you!

  • Re: HELP, cant compile (

    02-07-2009, 5:28 PM
    • Member
      4 point Member
    • xyligan
    • Member since 06-16-2008, 10:05 AM
    • Kiev
    • Posts 10

     It works, thanks.

    I have new question:

    While debugging, i a have new error, here:

    StructureMapControllerFactory

    namespace Commerce.MVC.Web.Controllers {
        public class StructureMapControllerFactory: DefaultControllerFactory {

            protected override IController GetControllerInstance(Type controllerType) {

                IController result = null;
                try {
                    result= ObjectFactory.GetInstance(controllerType) as Controller;

                } catch(StructureMapException) {
                    System.Diagnostics.Debug.WriteLine(ObjectFactory.WhatDoIHave());
                    throw;
                }

                return result;
            }
        }
    }

     

     

    And in browser it looks:

    Сообщение об ошибке компилятора: CS0411: The type arguments for method 'Microsoft.Web.Mvc.LinkExtensions.ActionLink<T>(System.Web.Mvc.HtmlHelper, System.Linq.Expressions.Expression<System.Action<T>>, string, object)' cannot be inferred from the usage. Try specifying the type arguments explicitly.

    Ошибка источника:


    Строка 21:       <div id="main-nav">
    Строка 22: <ul>
    Строка 23: <li class="first"><%= Html.ActionLink("Home", "Index", "Home")%></li>
    Строка 24: <li><%= Html.ActionLink("About Us", "About", "Home")%></li>
    Строка 25: </ul>

    Исходный файл: c:\Documents and Settings\Admin\Рабочий стол\mvcsamples-17126\Commerce.Web\App\Views\Shared\Site.Master    Строка: 23 

     

     Thanks

  • Re: HELP, cant compile (

    02-08-2009, 4:26 AM
    • Member
      4 point Member
    • xyligan
    • Member since 06-16-2008, 10:05 AM
    • Kiev
    • Posts 10


    ...\Commerce.Web\App\Views\Shared\UserNamePasswordLogin.ascx(7,34): error CS1061: 'System.Web.Mvc.HtmlHelper' does not contain a definition for 'TextBox' and no extension method 'TextBox' accepting a first argument of type 'System.Web.Mvc.HtmlHelper' could be found (are you missing a using directive or an assembly reference?)
    ..\Commerce.Web\App\Views\Shared\UserNamePasswordLogin.ascx(11,34): error CS1061: 'System.Web.Mvc.HtmlHelper' does not contain a definition for 'Password' and no extension method 'Password' accepting a first argument of type 'System.Web.Mvc.HtmlHelper' could be found (are you missing a using directive or an assembly reference?)
    ..\Commerce.Web\App\Views\Shared\Site.Master(23,33): error CS0411: The type arguments for method 'Microsoft.Web.Mvc.LinkExtensions.ActionLink<T>(System.Web.Mvc.HtmlHelper, System.Linq.Expressions.Expression<System.Action<T>>, string, object)' cannot be inferred from the usage. Try specifying the type arguments explicitly.
    ..\Commerce.Web\App\Views\Shared\Site.Master(24,19): error CS0411: The type arguments for method 'Microsoft.Web.Mvc.LinkExtensions.ActionLink<T>(System.Web.Mvc.HtmlHelper, System.Linq.Expressions.Expression<System.Action<T>>, string, object)' cannot be inferred from the usage. Try specifying the type arguments explicitly.
    ..\Commerce.Web\App\Views\Shared\AddressBook.ascx(4,13): error CS0103: The name 'User' does not exist in the current context
    ..\Commerce.Web\App\Views\Shared\AddressBook.ascx(4,61): error CS1061: 'System.Collections.Generic.IList<Commerce.Data.Address>' does not contain a definition for 'AddressBook' and no extension method 'AddressBook' accepting a first argument of type 'System.Collections.Generic.IList<Commerce.Data.Address>' could be found (are you missing a using directive or an assembly reference?)
    ..\Commerce.Web\App\Views\Shared\AddressBook.ascx(7,53): error CS1061: 'System.Collections.Generic.IList<Commerce.Data.Address>' does not contain a definition for 'AddressBook' and no extension method 'AddressBook' accepting a first argument of type 'System.Collections.Generic.IList<Commerce.Data.Address>' could be found (are you missing a using directive or an assembly reference?)
    ..\Commerce.Web\App\Views\Shared\AddressBook.ascx(11,17): error CS1502: The best overloaded method match for 'System.IO.TextWriter.Write(char)' has some invalid arguments
    ..\Commerce.Web\App\Views\Shared\AddressBook.ascx(11,28): error CS1503: Argument '1': cannot convert from 'void' to 'char'
    ..\Commerce.Web\App\Views\Shared\AddressEntry.ascx(12,17): error CS1061: 'System.Web.Mvc.HtmlHelper<Commerce.Data.Address>' does not contain a definition for 'TextBox' and no extension method 'TextBox' accepting a first argument of type 'System.Web.Mvc.HtmlHelper<Commerce.Data.Address>' could be found (are you missing a using directive or an assembly reference?)
    ..\Commerce.Web\App\Views\Shared\AddressEntry.ascx(13,17): error CS1061: 'System.Web.Mvc.HtmlHelper<Commerce.Data.Address>' does not contain a definition for 'TextBox' and no extension method 'TextBox' accepting a first argument of type 'System.Web.Mvc.HtmlHelper<Commerce.Data.Address>' could be found (are you missing a using directive or an assembly reference?)
    ..\Commerce.Web\App\Views\Shared\AddressEntry.ascx(17,17): error CS1061: 'System.Web.Mvc.HtmlHelper<Commerce.Data.Address>' does not contain a definition for 'TextBox' and no extension method 'TextBox' accepting a first argument of type 'System.Web.Mvc.HtmlHelper<Commerce.Data.Address>' could be found (are you missing a using directive or an assembly reference?)
    ..\Commerce.Web\App\Views\Shared\AddressEntry.ascx(21,17): error CS1061: 'System.Web.Mvc.HtmlHelper<Commerce.Data.Address>' does not contain a definition for 'TextBox' and no extension method 'TextBox' accepting a first argument of type 'System.Web.Mvc.HtmlHelper<Commerce.Data.Address>' could be found (are you missing a using directive or an assembly reference?)
    ..\Commerce.Web\App\Views\Shared\AddressEntry.ascx(25,17): error CS1061: 'System.Web.Mvc.HtmlHelper<Commerce.Data.Address>' does not contain a definition for 'TextBox' and no extension method 'TextBox' accepting a first argument of type 'System.Web.Mvc.HtmlHelper<Commerce.Data.Address>' could be found (are you missing a using directive or an assembly reference?)
    ..\Commerce.Web\App\Views\Shared\AddressEntry.ascx(29,17): error CS1061: 'System.Web.Mvc.HtmlHelper<Commerce.Data.Address>' does not contain a definition for 'TextBox' and no extension method 'TextBox' accepting a first argument of type 'System.Web.Mvc.HtmlHelper<Commerce.Data.Address>' could be found (are you missing a using directive or an assembly reference?)
    ..\Commerce.Web\App\Views\Shared\AddressEntry.ascx(45,17): error CS1061: 'System.Web.Mvc.HtmlHelper<Commerce.Data.Address>' does not contain a definition for 'TextBox' and no extension method 'TextBox' accepting a first argument of type 'System.Web.Mvc.HtmlHelper<Commerce.Data.Address>' could be found (are you missing a using directive or an assembly reference?)
  • Re: HELP, cant compile (

    02-08-2009, 1:21 PM
    • Member
      4 point Member
    • xyligan
    • Member since 06-16-2008, 10:05 AM
    • Kiev
    • Posts 10
    Now it works good
Page 1 of 1 (5 items)