Khoa Dược

Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS1744: Named argument 'flags' specifies a parameter for which a positional argument has already been given Source Error:
Line 98: } Line 99: } Line 100: var list = Article.GetByCategory(Model.Id, SiteConfig.SiteId, SiteConfig.LanguageId, flags: flag, pageIndex: pageIndex, pageSize: pageSize, sortOrder: sortOrder, direction: direction); Line 101: Line 102: var itemCount = Article.CountByCategory(Model.Id, SiteConfig.SiteId, SiteConfig.LanguageId);
Source File: e:\WebHost2\2nd\bvdkhocmon\www2\Templates\bvdkhocmon\Views\Category\Detail.cshtml Line: 100 Show Detailed Compiler Output:
c:\windows\system32\inetsrv> "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe" /t:library /utf8output /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\694c958f\9d4b465d_1e4edc01\DotNetOpenAuth.Core.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\9ad43d5a\30f21e0b_a039dc01\VCMS.MVC4.WebBase.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\a81352db\3c539d61_1e4edc01\itextsharp.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\c7d0c9c4\42d28a53_1e4edc01\dotless.Core.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\54920b56\73234d58_1e4edc01\ImageResizer.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\db0fb73c\713a0358_1e4edc01\ImageResizer.Plugins.DiskCache.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\dc898ef9\89092f57_1e4edc01\System.Web.Mvc.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\4bb8b936\3b76a459_1e4edc01\Google.Apis.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\b003e49d\5b932a5c_1e4edc01\Elmah.Mvc.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\974b33dd\ee7fcb58_1e4edc01\Google.Apis.Core.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\04a65d7f\18d59856_1e4edc01\System.Net.Http.Formatting.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\d331935d\00be3c55_1e4edc01\Microsoft.Web.Infrastructure.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\e14b97e9\1188225d_1e4edc01\DotNetOpenAuth.OAuth.Consumer.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\b206d0b6\1b955455_1e4edc01\System.Net.Http.Extensions.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\2512d884\50abcf56_1e4edc01\System.Web.Optimization.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\cd6d172c\c725d459_1e4edc01\Glimpse.Mvc4.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\03f34ca5\d3fc04e1_1e4edc01\VCMS.MVC4.Extensions.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\8f35bc1c\e46cc653_1e4edc01\Zlib.Portable.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\7ae4eab7\b34e5156_1e4edc01\System.Web.Helpers.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\a1043480\1fc3d159_1e4edc01\Glimpse.EF43.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\03d1d79d\6181635f_1e4edc01\Antlr3.Runtime.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\0eefae19\5ddc5754_1e4edc01\RouteMagic.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\0785ad86\d8a68655_1e4edc01\WebMatrix.WebData.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\206655f4\e26c1257_1e4edc01\System.Web.Razor.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\cdba4866\6c99fa5e_1e4edc01\BouncyCastle.Crypto.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\e2700f36\fab1eb5c_1e4edc01\DotNetOpenAuth.OpenId.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\74ab27d4\12895d5b_1e4edc01\EntityFramework.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\95e63d35\e598085a_1e4edc01\Glimpse.AspNet.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\071f5b5e\fc151856_1e4edc01\System.Web.WebPages.Deployment.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\c976fe1c\58692ee0_1e4edc01\VCMS.MVC4.Initializer.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Web\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\be65a72f\a090685c_1e4edc01\DotNetOpenAuth.OpenId.RelyingParty.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\75cae414\28db6859_1e4edc01\Google.Apis.Auth.PlatformServices.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\23c830fe\fd0189e0_1e4edc01\VCMS.MVC4.Data.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\5f1ee712\7d6c7d5a_1e4edc01\EntityFramework.Extended.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\f8913805\24642960_1e4edc01\itextsharp.xmlworker.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\61dcb3e8\d5af1858_1e4edc01\ImageResizer.Mvc.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\6b8b80a2\3adf1954_1e4edc01\WebGrease.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\5951f72a\c1f8945d_1e4edc01\CaptchaMvc.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\5979b738\9e343355_1e4edc01\Mvc.Mailer.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\1b4e88fb\4d987053_1e4edc01\log4net.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activation.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\c6088b14\6a8cc252_1e4edc01\RouteDebugger.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\71ac36f0\0656b95f_1e4edc01\AE.Net.Mail.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\558bd648\ee7c1754_1e4edc01\RouteMagic.Mvc.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\c817605d\236e4d55_1e4edc01\System.Net.Http.Primitives.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\b5fef9fd\ba2a0c56_1e4edc01\System.Web.WebPages.Razor.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\8d821fc9\663f985c_1e4edc01\Mono.Math.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\33f01ce6\53fb0a5a_1e4edc01\Glimpse.Ado.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\4420bead\20e14657_1e4edc01\MVCThemes.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\886a8298\d4f9cf5b_1e4edc01\Glimpse.Core.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\App_global.asax.0xf9ekea.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\cda5beb7\6d2e665c_1e4edc01\EPPlus.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\fe06995f\375efc54_1e4edc01\MvcSiteMapProvider.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activities.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\8b9dd334\b57e03e0_1e4edc01\VCMS.MVC4.Editor.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\f5f7f25d\dec05b5d_1e4edc01\DotNetOpenAuth.AspNet.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\43034c0c\bf5f3753_1e4edc01\Elmah.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\248157c5\b82bed55_1e4edc01\System.Web.WebPages.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\6836fda4\6f18915c_1e4edc01\Org.Mentalis.Security.Cryptography.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\af60d99d\6b109456_1e4edc01\System.Web.Http.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\811ea88a\3aca3659_1e4edc01\Google.Apis.Auth.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\f0b76b5e\444eab54_1e4edc01\PayPalCoreSDK.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\4abf67c5\d16758f6_946ddc01\VCMS.MVC4.Web.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\955e4179\1189b759_1e4edc01\Google.Apis.PlatformServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\320d38fd\7cdca357_1e4edc01\Lucene.Net.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\feb09893\1864dd5c_1e4edc01\DotNetOpenAuth.OAuth.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\733ead55\27b15356_1e4edc01\System.Web.Http.WebHost.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\5fcb1310\2350d857_1e4edc01\ImageResizer.Plugins.Watermark.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\0efccfb6\ebf1d255_1e4edc01\WebMatrix.Data.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\e0a26b2c\38ce8d55_1e4edc01\Microsoft.Web.WebPages.OAuth.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\e42ab372\a1d27c58_1e4edc01\ICSharpCode.SharpZipLib.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\0377e03b\85ede352_1e4edc01\Recaptcha.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_64\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\335bc191\005bfa8b_dbacd001\Newtonsoft.Json.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\assembly\dl3\02ecefc4\fcc4a154_1e4edc01\PayPalMerchantSDK.dll" /out:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\App_Web_detail.cshtml.cee3dfd.eszgv99y.dll" /D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699;1701;612;618 /warnaserror- "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\App_Web_detail.cshtml.cee3dfd.eszgv99y.0.cs" "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e48bdf5e\f4066169\App_Web_detail.cshtml.cee3dfd.eszgv99y.1.cs" Microsoft (R) Visual C# Compiler version 4.8.4161.0 for C# 5 Copyright (C) Microsoft Corporation. All rights reserved. This compiler is provided as part of the Microsoft (R) .NET Framework, but only supports language versions up to C# 5, which is no longer the latest version. For compilers that support newer versions of the C# programming language, see http://go.microsoft.com/fwlink/?LinkID=533240 e:\WebHost2\2nd\bvdkhocmon\www2\Templates\bvdkhocmon\Views\Category\Detail.cshtml(100,90): error CS1744: Named argument 'flags' specifies a parameter for which a positional argument has already been given
Show Complete Compilation Source:
Line 1: #pragma checksum "E:\WebHost2\2nd\bvdkhocmon\www2\Templates\bvdkhocmon\Views\Category\Detail.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "56789F8E9A416DB960A9913F47222BE3280FAE7D" Line 2: //------------------------------------------------------------------------------ Line 3: // <auto-generated> Line 4: // This code was generated by a tool. Line 5: // Runtime Version:4.0.30319.42000 Line 6: // Line 7: // Changes to this file may cause incorrect behavior and will be lost if Line 8: // the code is regenerated. Line 9: // </auto-generated> Line 10: //------------------------------------------------------------------------------ Line 11: Line 12: namespace ASP { Line 13: using System; Line 14: using System.Collections.Generic; Line 15: using System.IO; Line 16: using System.Linq; Line 17: using System.Net; Line 18: using System.Web; Line 19: using System.Web.Helpers; Line 20: using System.Web.Security; Line 21: using System.Web.UI; Line 22: using System.Web.WebPages; Line 23: using System.Web.Mvc; Line 24: using System.Web.Mvc.Ajax; Line 25: using System.Web.Mvc.Html; Line 26: using System.Web.Optimization; Line 27: using System.Web.Routing; Line 28: using MvcSiteMapProvider.Web.Html; Line 29: using MvcSiteMapProvider.Web.Html.Models; Line 30: using VCMS.MVC4.Data; Line 31: using VCMS.MVC4.Web; Line 32: using VCMS.MVC4.Extensions; Line 33: Line 34: #line 2 "E:\WebHost2\2nd\bvdkhocmon\www2\Templates\bvdkhocmon\Views\Category\Detail.cshtml" Line 35: using System.Data.Entity; Line 36: Line 37: #line default Line 38: #line hidden Line 39: using DotNetOpenAuth.AspNet; Line 40: using WebMatrix.WebData; Line 41: using Microsoft.Web.WebPages.OAuth; Line 42: using WebMatrix.Data; Line 43: Line 44: Line 45: public class _Page_Templates_bvdkhocmon_Views_Category_Detail_cshtml : System.Web.Mvc.WebViewPage<Category> { Line 46: Line 47: #line hidden Line 48: Line 49: public _Page_Templates_bvdkhocmon_Views_Category_Detail_cshtml() { Line 50: } Line 51: Line 52: protected ASP.global_asax ApplicationInstance { Line 53: get { Line 54: return ((ASP.global_asax)(Context.ApplicationInstance)); Line 55: } Line 56: } Line 57: Line 58: public override void Execute() { Line 59: Line 60: #line 3 "E:\WebHost2\2nd\bvdkhocmon\www2\Templates\bvdkhocmon\Views\Category\Detail.cshtml" Line 61: Line 62: ViewBag.Title = Model.CategoryName; Line 63: ViewBag.Keywords = Model.CategoryDetail[SiteConfig.LanguageId].SEOKeywords; Line 64: ViewBag.Description = Model.CategoryDetail[SiteConfig.LanguageId].SEODescription; Line 65: ViewBag.DateCreate = Model.DateCreated; Line 66: ViewBag.DateUpdate = Model.DateUpdated; Line 67: Model.ArticleType.LanguageId = SiteConfig.LanguageId; Line 68: Line 69: var breadcrumb = new BreadcrumbModel Line 70: { Line 71: Items = new List<BreadcrumbItem> { Line 72: new BreadcrumbItem{Url=Url.Action("Index","ArticleType",new{code=Model.ArticleType.UrlFriendly}),Text = Model.ArticleType.Name}, Line 73: } Line 74: }; Line 75: Line 76: if (Model.ParentId > 0) Line 77: { Line 78: var cat = Category.GetById((int)Model.ParentId, SiteConfig.SiteId, SiteConfig.LanguageId); Line 79: if (cat != null) Line 80: { Line 81: if(cat.ParentId > 0) Line 82: { Line 83: var p = Category.GetById((int)cat.ParentId, SiteConfig.SiteId, SiteConfig.LanguageId); Line 84: if(p != null) Line 85: { Line 86: var pname = p.CategoryDetail[SiteConfig.LanguageId].CategoryName; Line 87: breadcrumb.Items.Add(new BreadcrumbItem { Text = pname, Url = Url.Action("Detail", "Category", new { id = p.Id, code = p.ArticleType.UrlFriendly, title = Unichar.UnicodeStrings.UrlString(pname) }) }); Line 88: } Line 89: } Line 90: var name = cat.CategoryDetail[SiteConfig.LanguageId].CategoryName; Line 91: breadcrumb.Items.Add(new BreadcrumbItem { Text = name, Url = Url.Action("Detail", "Category", new { id = cat.Id, code = Model.ArticleType.UrlFriendly, title = Unichar.UnicodeStrings.UrlString(name) }) }); Line 92: } Line 93: } Line 94: breadcrumb.Items.Add(new BreadcrumbItem { Url = null, Text = Model.CategoryName }); Line 95: ViewBag.Breadcrumb = breadcrumb; Line 96: string viewName = null; Line 97: string control = null; Line 98: var articleType = Model.ArticleType; Line 99: if (articleType != null) Line 100: { Line 101: if (File.Exists(Server.MapPath("~/Templates/" + SiteConfig.SiteInfo.Code + "/Views/Category/" + articleType.Code + "/_List.cshtml"))) Line 102: { Line 103: control = "Category"; Line 104: } Line 105: else if (File.Exists(Server.MapPath("~/Templates/" + SiteConfig.SiteInfo.Code + "/Views/Article/" + articleType.Code + "/_List.cshtml"))) Line 106: { Line 107: control = "Article"; Line 108: } Line 109: if (!String.IsNullOrEmpty(control)) Line 110: { Line 111: viewName = articleType.Code + "/_List.cshtml"; Line 112: } Line 113: } Line 114: Line 115: var pageSize = 8; Line 116: if (articleType.Code.Equals("AboutUs", StringComparison.OrdinalIgnoreCase)) Line 117: { Line 118: pageSize = 8; Line 119: } Line 120: if (articleType.Code.Equals("PRODUCT", StringComparison.OrdinalIgnoreCase)) Line 121: { Line 122: pageSize = 12; Line 123: } Line 124: if (Request["pageSize"] != null) Line 125: { Line 126: int.TryParse(Request["pageSize"], out pageSize); Line 127: } Line 128: Line 129: var pageIndex = 1; Line 130: if (Request["pageIndex"] != null) Line 131: { Line 132: int.TryParse(Request["pageIndex"], out pageIndex); Line 133: } Line 134: var ids = ViewBag.ListId as int[]; Line 135: ArticleSortOrder sortOrder = ArticleSortOrder.SORT_ORDER; Line 136: VCMS.MVC4.Data.SortDirection direction = VCMS.MVC4.Data.SortDirection.DESCENDING; Line 137: ArticleFlags flag = ArticleFlags.ACTIVE; Line 138: Line 139: if (Request["sortorder"] != null) Line 140: { Line 141: sortOrder = (ArticleSortOrder)Enum.Parse(typeof(ArticleSortOrder), Request["sortorder"]); Line 142: } Line 143: if (Request["sortdirection"] != null) Line 144: { Line 145: direction = (VCMS.MVC4.Data.SortDirection)Enum.Parse(typeof(VCMS.MVC4.Data.SortDirection), Request["sortdirection"]); Line 146: } Line 147: if (Request["flag"] != null) Line 148: { Line 149: if (Request["flag"] == "all") Line 150: { Line 151: flag = ArticleFlags.ACTIVE; Line 152: } Line 153: else Line 154: { Line 155: flag = (ArticleFlags)Enum.Parse(typeof(ArticleFlags), Request["flag"]); Line 156: } Line 157: } Line 158: var list = Article.GetByCategory(Model.Id, SiteConfig.SiteId, SiteConfig.LanguageId, flags: flag, pageIndex: pageIndex, pageSize: pageSize, sortOrder: sortOrder, direction: direction); Line 159: Line 160: var itemCount = Article.CountByCategory(Model.Id, SiteConfig.SiteId, SiteConfig.LanguageId); Line 161: ViewBag.Count = itemCount; Line 162: Line 163: if (viewName != null) Line 164: { Line 165: if (Model.Children.Count > 0 && articleType.Code == "PRODUCT") Line 166: { Line 167: Line 168: Line 169: #line default Line 170: #line hidden Line 171: Line 172: #line 109 "E:\WebHost2\2nd\bvdkhocmon\www2\Templates\bvdkhocmon\Views\Category\Detail.cshtml" Line 173: Write(Html.Partial("~/Templates/" + SiteConfig.SiteInfo.Code + "/Views/Category/" + viewName, Model)); Line 174: Line 175: Line 176: #line default Line 177: #line hidden Line 178: Line 179: #line 109 "E:\WebHost2\2nd\bvdkhocmon\www2\Templates\bvdkhocmon\Views\Category\Detail.cshtml" Line 180: Line 181: } Line 182: else Line 183: { Line 184: if (articleType.Code == "PRODUCT") Line 185: { Line 186: Line 187: Line 188: #line default Line 189: #line hidden Line 190: Line 191: #line 124 "E:\WebHost2\2nd\bvdkhocmon\www2\Templates\bvdkhocmon\Views\Category\Detail.cshtml" Line 192: Line 193: } Line 194: Line 195: Line 196: #line default Line 197: #line hidden Line 198: Line 199: #line 126 "E:\WebHost2\2nd\bvdkhocmon\www2\Templates\bvdkhocmon\Views\Category\Detail.cshtml" Line 200: Write(Html.Partial("~/Templates/" + SiteConfig.SiteInfo.Code + "/Views/Article/" + viewName, list)); Line 201: Line 202: Line 203: #line default Line 204: #line hidden Line 205: Line 206: #line 126 "E:\WebHost2\2nd\bvdkhocmon\www2\Templates\bvdkhocmon\Views\Category\Detail.cshtml" Line 207: Line 208: } Line 209: } Line 210: else Line 211: { Line 212: Line 213: Line 214: #line default Line 215: #line hidden Line 216: Line 217: #line 131 "E:\WebHost2\2nd\bvdkhocmon\www2\Templates\bvdkhocmon\Views\Category\Detail.cshtml" Line 218: Write(Html.Partial("~/Templates/" + SiteConfig.SiteInfo.Code + "/Views/Article/_List.cshtml", list)); Line 219: Line 220: Line 221: #line default Line 222: #line hidden Line 223: Line 224: #line 131 "E:\WebHost2\2nd\bvdkhocmon\www2\Templates\bvdkhocmon\Views\Category\Detail.cshtml" Line 225: Line 226: } Line 227: Line 228: Line 229: #line default Line 230: #line hidden Line 231: } Line 232: } Line 233: } Line 234:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4380.0

Từ khóa » Khoa Dược Bệnh Viện Hóc Môn