PDA

View Full Version : [CLOSED] [#76] Package Ext.NET.MVC Not Available?



AlexMadarasz
Dec 06, 2012, 6:35 PM

geoffrey.mcgill
Dec 07, 2012, 8:28 AM
I ran into a problem when building the Ext.NET.MVC package for NuGet and had to delay it's release. The package should be available on-or-before this coming Tuesday (2012-12-11).

Baidaly
Dec 07, 2012, 11:52 PM
Opened an Issue to track this defect (or feature request), see

https://github.com/extnet/Ext.NET/issues/76

sa_tabrizi
Dec 13, 2012, 1:42 PM
I ran into a problem when building the Ext.NET.MVC package for NuGet and had to delay it's release. The package should be available on-or-before this coming Tuesday (2012-12-11).

Hi and Many Thanks .
This is 2012-12-13 and not published yet , is There any problem ?

I tried to create "Empty MVC 4 " Project with Razor Target .net 4.5 , so i want to add Ext.net MVC features By Common Steps :

1- Download Latest Ext.net MVC dll's via This URL (https://github.com/downloads/extnet/Ext.NET.Pro/Ext.NET.MVC.Pro.2.1.1.zip) and Extracting in a Lib Folder .
2- Adding All Extracted Dll's to My Project References .

3- Some changing in web.config file that placed in root folder of my Project .



<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<configSections>
<section name="extnet" type="Ext.Net.GlobalConfig" requirePermission="false"/>

</configSections>
<appSettings>
<add key="webpages:Version" value="2.0.0.0" />
<add key="webpages:Enabled" value="false" />
<add key="PreserveLoginUrl" value="true" />
<add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
</appSettings>
<extnet scriptMode="Release" theme="Gray"/>

<system.web>
<httpRuntime targetFramework="4.5" />
<compilation debug="true" targetFramework="4.5" />
<pages>
<namespaces>
<add namespace="System.Web.Helpers" />
<add namespace="System.Web.Mvc" />
<add namespace="System.Web.Mvc.Ajax" />
<add namespace="System.Web.Mvc.Html" />
<add namespace="System.Web.Routing" />
<add namespace="System.Web.WebPages" />
<add namespace="Ext.Net"/>
<add namespace="Ext.Net.MVC"/>
</namespaces>
<controls>
<add assembly="Ext.Net" namespace="Ext.Net" tagPrefix="ext" />
</controls>
</pages>
<httpHandlers>
<add path="*/ext.axd" verb="*" type="Ext.Net.ResourceHandler" validate="false" />
</httpHandlers>
<httpModules>
<add name="DirectRequestModule" type="Ext.Net.DirectRequestModule, Ext.Net" />
</httpModules>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<add
name="DirectRequestModule"
preCondition="managedHandler"
type="Ext.Net.DirectRequestModule, Ext.Net"
/>
</modules>
<handlers>
<add
name="DirectRequestHandler"
verb="*"
path="*/ext.axd"
preCondition="integratedMode"
type="Ext.Net.ResourceHandler"
/>
</handlers>
</system.webServer>

<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" />
<bindingRedirect oldVersion="1.0.0.0-4.5.9" newVersion="4.5.10" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Ext.Net.Utilities" publicKeyToken="2c34ac34702a3c23" />
<bindingRedirect oldVersion="0.0.0.0-2.0.1" newVersion="2.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Transformer.NET" publicKeyToken="e274d618e7c603a7" />
<bindingRedirect oldVersion="0.0.0.0-2.0.0" newVersion="2.1.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>



4- Some changing in web.config file that placed in Views folder of my Project .


<?xml version="1.0"?>

<configuration>
<configSections>
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSe ctionGroup, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSectio n, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPages Section, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
</sectionGroup>
</configSections>

<system.web.webPages.razor>
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<pages pageBaseType="System.Web.Mvc.WebViewPage">
<namespaces>
<add namespace="System.Web.Mvc" />
<add namespace="System.Web.Mvc.Ajax" />
<add namespace="System.Web.Mvc.Html" />
<add namespace="System.Web.Routing" />
<add namespace="Ext.Net"/>
<add namespace="Ext.Net.MVC"/>
</namespaces>
</pages>
</system.web.webPages.razor>

<appSettings>
<add key="webpages:Enabled" value="false" />
</appSettings>

<system.web>
<httpHandlers>
<add path="*" verb="*" type="System.Web.HttpNotFoundHandler"/>
<add path="*/ext.axd" verb="*" type="Ext.Net.ResourceHandler" validate="false"/>
</httpHandlers>
<httpModules>
<add name="DirectRequestModule" type="Ext.Net.DirectRequestModule, Ext.Net"/>
</httpModules>

<!--
Enabling request validation in view pages would cause validation to occur
after the input has already been processed by the controller. By default
MVC performs request validation before a controller processes the input.
To change this behavior apply the ValidateInputAttribute to a
controller or action.
-->
<pages
validateRequest="false"
pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<controls>
<add assembly="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" namespace="System.Web.Mvc" tagPrefix="mvc" />
</controls>
</pages>
</system.web>

<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<add
name="DirectRequestModule"
preCondition="managedHandler"
type="Ext.Net.DirectRequestModule, Ext.Net"
/>
</modules>
<handlers>
<add
name="DirectRequestHandler"
verb="*"
path="*/ext.axd"
preCondition="integratedMode"
type="Ext.Net.ResourceHandler"
/>
</handlers>
</system.webServer>
</configuration>





5- Some changing RouteConfig.cs file :

public static void RegisterRoutes(RouteCollection routes)
{
// routes.IgnoreRoute("{resource}.axd/{*pathInfo}");


routes.IgnoreRoute("{exclude}/{extnet}/ext.axd");
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
}
6- Create an HomeController :


public class HomeController : Controller
{
//
// GET: /Home/

public ActionResult Index()
{
return View();
}

}


7- Create a View For Index :



<!DOCTYPE html>

<html>
<head>
<title>Ext.NET MVC Sample</title>
</head>
<body>
@Html.X().ResourceManager()

<a href="http://www.ext.net/"><img src="http://speed.ext.net/identity/extnet-logo-small.png" alt="" /></a>

@(Html.X().Window()
.Title("A sample Ext.net .net4.5")
.Height(215)
.Width(350)
.DefaultButton("Button1")
.Layout("fit")
.Items(Html.X().FormPanel()
.DefaultAnchor("100%")
.BodyPadding(5)
.Frame(true)
.Items(Html.X().TextArea()
.Name("message")
.EmptyText("Empty Txt")
.FieldLabel("Message")
.Height(85)
)
.Buttons(Html.X().Button()
.ID("Button1")
.Text("Submit")
.Icon(Icon.Accept)
.DirectClickAction("SampleAction")
)
)
)
</body>
</html>




8- Run the Project in Debugging mode

9- An exception has occurred in this Line :
@Html.X().ResourceManager() : Error executing child request for handler 'Ext.Net.SelfRenderingPage' 5266

10- when i add pdb files to bin this call stack shows the main problem :


Attempted to access an element as a type incompatible with the array.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArrayTypeMismatchException: Attempted to access an element as a type incompatible with the array.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[ArrayTypeMismatchException: Attempted to access an element as a type incompatible with the array.]
System.Collections.Generic.List`1.set_Item(Int32 index, T value) +24
System.Collections.ObjectModel.Collection`1.SetIte m(Int32 index, T item) +55
System.Web.Routing.RouteCollection.SetItem(Int32 index, RouteBase item) +58
System.Collections.ObjectModel.Collection`1.set_It em(Int32 index, T value) +116
System.Web.Mvc.ControllerContext.get_RequestContex t() +25
Ext.Net.MVC.MvcDirectMethod.BuildProxy(ViewContext viewContext) in C:\Users\Geoffrey McGill\Documents\Visual Studio 2010\Projects\Ext.NET\v2.1\Ext.Net\MVC\DirectMetho ds\MvcDirectMethod.cs:207
Ext.Net.ResourceManager.BuildDirectMethodProxies(B oolean dynamicOnly) in C:\Users\Geoffrey McGill\Documents\Visual Studio 2010\Projects\Ext.NET\v2.1\Ext.Net\Core\ResourceMa nager\ResourceManager.cs:1197
Ext.Net.ResourceManager.BuildDirectMethodProxies() in C:\Users\Geoffrey McGill\Documents\Visual Studio 2010\Projects\Ext.NET\v2.1\Ext.Net\Core\ResourceMa nager\ResourceManager.cs:1174
Ext.Net.ResourceManager.BuildScriptBlock(Boolean withFunctionTemplate) in C:\Users\Geoffrey McGill\Documents\Visual Studio 2010\Projects\Ext.NET\v2.1\Ext.Net\Core\ResourceMa nager\ResourceManager.cs:1509
Ext.Net.ResourceManager.BuildScriptBlock() in C:\Users\Geoffrey McGill\Documents\Visual Studio 2010\Projects\Ext.NET\v2.1\Ext.Net\Core\ResourceMa nager\ResourceManager.cs:1479
Ext.Net.ResourceManager.BaseRenderAction() in C:\Users\Geoffrey McGill\Documents\Visual Studio 2010\Projects\Ext.NET\v2.1\Ext.Net\Core\ResourceMa nager\ResourceManager.cs:426
Ext.Net.BaseControl.Render(HtmlTextWriter writer) in C:\Users\Geoffrey McGill\Documents\Visual Studio 2010\Projects\Ext.NET\v2.1\Ext.Net\Core\BaseContro l\Lifecycle.cs:1012
Ext.Net.ResourceManager.Render(HtmlTextWriter writer) in C:\Users\Geoffrey McGill\Documents\Visual Studio 2010\Projects\Ext.NET\v2.1\Ext.Net\Core\ResourceMa nager\ResourceManager.cs:225
System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter writer, ControlAdapter adapter) +57
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +9695462
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlT extWriter writer, ICollection children) +128
System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer) +8
System.Web.UI.Page.Render(HtmlTextWriter writer) +29
System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter writer, ControlAdapter adapter) +57
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +9695462
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1386





Is there any problem with Razor 2 or my code is wrong ?
Please Help me .
Regards .

AlexMadarasz
Dec 13, 2012, 2:17 PM
... This is 2012-12-13 and not published yet , is There any problem ? ...

Looks like the Ext.NET package was updated to 2.1.1 the other day, but I assume that there may still be problems with the Ext.NET.MVC package ... ?

sa_tabrizi
Dec 14, 2012, 11:40 PM
The Problem was solved via This Thread (http://forums.ext.net/showthread.php?22656-MVC-2-1-1-Resource-Manager-BuildProxy-Error-Attempted-to-access-an-element-as-a-type-incompatible-with-the-array) Guides .
Thanks .

Daniil
Dec 17, 2012, 5:15 AM
Looks like the Ext.NET package was updated to 2.1.1 the other day, but I assume that there may still be problems with the Ext.NET.MVC package ... ?

Yes, there is no the Ext.NET MVC NuGet package yet. Apologize for the inconvenience.


The Problem was solved via This Thread (http://forums.ext.net/showthread.php?22656-MVC-2-1-1-Resource-Manager-BuildProxy-Error-Attempted-to-access-an-element-as-a-type-incompatible-with-the-array) Guides .
Thanks .

Thank you for the update!

AlexMadarasz
Dec 17, 2012, 12:01 PM
The Problem was solved via This Thread (http://forums.ext.net/showthread.php?22656-MVC-2-1-1-Resource-Manager-BuildProxy-Error-Attempted-to-access-an-element-as-a-type-incompatible-with-the-array) Guides.

While I appreciate yet another workaround thread discussing [some/many/not all?] of the steps to configure a new project for MVC support, that thread doesn't really "solve" the original problem, which is that the package Ext.NET.MVC is still missing.

In addition, your thread refers to MVC 4 with Razor and .NET 4.5 - I'm not sure whether the Ext.NET project supports this configuration (it doesn't appear to tbe the configuration used by the Ext.NET MVC sample/demo) and it's definitely not the configuration supported by the book I'm attempting to follow. I'm using VS2010, .NET 4.0 and MVC 3 with Razor.

--
Alex

Daniil
Dec 17, 2012, 1:42 PM
Hi @AlexMadarasz,



or should I try a manual method, per forum thread 16920 (http://forums.ext.net/showthread.php?16920)?


Yes, for now it is the only option.

Please clarify do you nay problem to follow this guide?

geoffrey.mcgill
Dec 17, 2012, 1:58 PM
While I appreciate yet another workaround thread discussing [some/many/not all?] of the steps to configure a new project for MVC support, that thread doesn't really "solve" the original problem, which is that the package Ext.NET.MVC is still missing.

In addition, your thread refers to MVC 4 with Razor and .NET 4.5 - I'm not sure whether the Ext.NET project supports this configuration (it doesn't appear to tbe the configuration used by the Ext.NET MVC sample/demo) and it's definitely not the configuration supported by the book I'm attempting to follow. I'm using VS2010, .NET 4.0 and MVC 3 with Razor.

--
Alex

In our MVC download .zip file there is a "Sample" MVC project.

Download the .zip file, extract to a location on your computer, then double click the .sln file.

http://ext.net/download/

Does that work?

AlexMadarasz
Dec 17, 2012, 3:44 PM
In our MVC download .zip file there is a "Sample" MVC project.

Download the .zip file, extract to a location on your computer, then double click the .sln file.

http://ext.net/download/

Does that work?

Yes, it builds and runs ... this sample (and the previous 2.1.0 sample) is where I eventually ended up after trying the book, the package and the various forum threads.

Only [very minor] "issue" with the 2.1.1 sample is that it depends on the folder relationship to the ..\lib\ folder for the Ext.NET DLL dependencies, which isn't necessarily valid if the DLLs have been extracted and placed in a different place than the code (which obviously would then require the user to manually register the dependent DLLs) .... Otherwise, yes, this sample should probably be the "go-to" for any user wanting a minimal Ext.NET MVC3 project to examine.

Thanks,

--
Alex

AlexMadarasz
Dec 17, 2012, 3:45 PM
... Yes, for now it is the only option.

Please clarify do you nay problem to follow this guide?

Yes, I tried it, but ran into some minor issues that other [more experienced ASP.NET / Ext.NET] developers might have just blown right by:


It only refers to [a single] Web.config - for the description of an example MVC project there should be at least a mention that both the "master" Web.config and the .\Views\Web.config exist, the developer should be told whether both are required/desired for Ext.NET, whether the Ext.NET settings should be the same in both, etc.
Views\Examples\Index.cshtml has a reference to the /resources/css/examples.css stylesheet, so I can only assume that copying the Ext.NET resources folder tree into the new project is implied (and perhaps a "best practice" if you want to make any other references to Web.config theme settings, or any of the other resources).

--
Alex

geoffrey.mcgill
Dec 17, 2012, 4:06 PM
Yes, I tried it, but ran into some minor issues that other [more experienced ASP.NET / Ext.NET] developers might have just blown right by:


It only refers to [a single] Web.config - for the description of an example MVC project there should be at least a mention that both the "master" Web.config and the .\Views\Web.config exist, the developer should be told whether both are required/desired for Ext.NET, whether the Ext.NET settings should be the same in both, etc.
Views\Examples\Index.cshtml has a reference to the /resources/css/examples.css stylesheet, so I can only assume that copying the Ext.NET resources folder tree into the new project is implied (and perhaps a "best practice" if you want to make any other references to Web.config theme settings, or any of the other resources).

--
Alex

Thanks for the feedback.

1. I'll look into this.

2. I'll either remove the examples.css reference, or add the examples.css file to the page. Either way it's not required for the samples to run properly.

AlexMadarasz
Dec 17, 2012, 5:34 PM
Thanks for the feedback.

1. I'll look into this.

2. I'll either remove the examples.css reference, or add the examples.css file to the page. Either way it's not required for the samples to run properly.

Note that the reply you referenced was to my earlier reference to forum thread 16920 (http://forums.ext.net/showthread.php?16920), which has manual instructions for setting up a project and editing the files by hand, not to the MVC sample.

--
Alex

Daniil
Dec 18, 2012, 7:51 AM
It only refers to [a single] Web.config - for the description of an example MVC project there should be at least a mention that both the "master" Web.config and the .\Views\Web.config exist, the developer should be told whether both are required/desired for Ext.NET, whether the Ext.NET settings should be the same in both, etc.



As far as I can know the both Web.configs are not required. The main one should be enough. At least it works well in the sample MVC project.


2. Views\Examples\Index.cshtml has a reference to the /resources/css/examples.css stylesheet, so I can only assume that copying the Ext.NET resources folder tree into the new project is implied (and perhaps a "best practice" if you want to make any other references to Web.config theme settings, or any of the other resources).


Thank you. I removed it. It is not required at all.

4L4Y
Feb 25, 2013, 8:15 AM
I reading in the book Ext.NET Web Application Development. Chapter 1 Page 23
Error Install-Package Ext.NET.MVC ? Why?
How to using Ext.Net For MVC?

do i have to use the previous version?
because that could previously be used

Vladimir
Feb 25, 2013, 9:55 AM
At this moment, you can download MVC package from Download page
http://www.ext.net/download/

4L4Y
Feb 25, 2013, 4:55 PM
At this moment, you can download MVC package from Download page
http://www.ext.net/download/
thanks for reply vlad
to be honest, i do not know how to use ext.net from that link.
so i'll use ext.net version 2.1.0, it works for mvc.
pm> install-package ext.net -version 2.1.0
if i using ext.net from that link, im still missing ext.net.mvc reference.

geoffrey.mcgill
Feb 25, 2013, 5:02 PM
Do you see the "for ASP.NET MVC" link on the download (http://ext.net/download/) page?

Inside that link is a sample ASP.NET MVC demo project that contains all the correct references and global.asax settings.

Hope this helps.

4L4Y
Mar 13, 2013, 9:58 AM
Do you see the "for ASP.NET MVC" link on the download (http://ext.net/download/) page?

Inside that link is a sample ASP.NET MVC demo project that contains all the correct references and global.asax settings.

Hope this helps.

Thanks for Reply geoffrey, and sorry about my prev post

Yes, i see and i downloaded file from that link
i have a problem again,

this my step,
1. Donwload ExtNet Via nuget.
2. Edited Web.config
this my code


<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=152368
-->
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrame workSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
<section name="extnet" type="Ext.Net.GlobalConfig" requirePermission="false" />
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSe ctionGroup, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSectio n, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false"/>
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPages Section, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false"/>
</sectionGroup>
</configSections>

<appSettings>
<add key="webpages:Version" value="1.0.0.0" />
<add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
</appSettings>

<system.web>
<compilation debug="true" targetFramework="4.5" />
<authentication mode="Forms">
<forms loginUrl="~/Account/LogOn" timeout="2880" />
</authentication>
<pages>
<namespaces>
<add namespace="System.Web.Helpers" />
<add namespace="System.Web.Mvc" />
<add namespace="System.Web.Mvc.Ajax" />
<add namespace="System.Web.Mvc.Html" />
<add namespace="System.Web.Routing" />
<add namespace="System.Web.WebPages" />
</namespaces>
<controls>
<add assembly="Ext.Net" namespace="Ext.Net" tagPrefix="ext" />
</controls>
</pages>
<httpRuntime targetFramework="4.5" />
<profile defaultProvider="DefaultProfileProvider">
<providers>
<add name="DefaultProfileProvider" type="System.Web.Providers.DefaultProfileProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" applicationName="/" />
</providers>
</profile>
<membership defaultProvider="DefaultMembershipProvider">
<providers>
<add name="DefaultMembershipProvider" type="System.Web.Providers.DefaultMembershipProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" />
</providers>
</membership>
<roleManager defaultProvider="DefaultRoleProvider">
<providers>
<add name="DefaultRoleProvider" type="System.Web.Providers.DefaultRoleProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" applicationName="/" />
</providers>
</roleManager>
<!--
If you are deploying to a cloud environment that has multiple web server instances,
you should change session state mode from "InProc" to "Custom". In addition,
change the connection string named "DefaultConnection" to connect to an instance
of SQL Server (including SQL Azure and SQL Compact) instead of to SQL Server Express.
-->
<sessionState mode="InProc" customProvider="DefaultSessionProvider">
<providers>
<add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" />
</providers>
</sessionState>
<httpHandlers>
<add path="*/ext.axd" verb="*" type="Ext.Net.ResourceHandler" validate="false" />
</httpHandlers>
<httpModules>
<add name="DirectRequestModule" type="Ext.Net.DirectRequestModule, Ext.Net" />
</httpModules>
</system.web>

<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules>
<add name="DirectRequestModule" preCondition="managedHandler" type="Ext.Net.DirectRequestModule, Ext.Net" />
</modules>
<handlers>
<add name="DirectRequestHandler" verb="*" path="*/ext.axd" preCondition="integratedMode" type="Ext.Net.ResourceHandler" />
</handlers>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" />
<bindingRedirect oldVersion="1.0.0.0-4.5.9" newVersion="4.5.10" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Ext.Net.Utilities" publicKeyToken="2c34ac34702a3c23" />
<bindingRedirect oldVersion="0.0.0.0-2.0.1" newVersion="2.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Transformer.NET" publicKeyToken="e274d618e7c603a7" />
<bindingRedirect oldVersion="0.0.0.0-2.0.0" newVersion="2.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Transformer.NET" publicKeyToken="e274d618e7c603a7" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.1.1.22883" newVersion="2.1.1.22883" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectio nFactory, EntityFramework">
<parameters>
<parameter value="v11.0" />
</parameters>
</defaultConnectionFactory>
</entityFramework>
<connectionStrings>
<add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-MvcExtNet-20130313120756;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\asp net-MvcExtNet-20130313120756.mdf" />
</connectionStrings>
<extnet theme="Gray" />
</configuration>


3. Edit Global.asax


using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace MvcExtNet
{
// Note: For instructions on enabling IIS6 or IIS7 classic mode,
// visit http://go.microsoft.com/?LinkId=9394801

public class MvcApplication : System.Web.HttpApplication
{
protected void Application_AuthenticateRequest(object sender, System.EventArgs e)
{
string url = HttpContext.Current.Request.FilePath;

if (url.EndsWith("ext.axd"))
{
HttpContext.Current.SkipAuthorization = true;
}
}

public static void RegisterGlobalFilters(GlobalFilterCollection filters)
{
filters.Add(new HandleErrorAttribute());
}

public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.IgnoreRoute("{exclude}/{extnet}/ext.axd");

routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
);

}

protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();

// Use LocalDB for Entity Framework by default
Database.DefaultConnectionFactory = new SqlConnectionFactory(@"Data Source=(localdb)\v11.0; Integrated Security=True; MultipleActiveResultSets=True");

RegisterGlobalFilters(GlobalFilters.Filters);
RegisterRoutes(RouteTable.Routes);
}
}
}


then i follow file code from this link http://ext.net/download/

and the problem:
in view im still missing X.
if i follow the controller in that file, i didnt get this.Direct?
whats wrong with my code?

thanks
5804 5806

Daniil
Mar 13, 2013, 12:16 PM
I doubt you need to install the NuGet Ext.NET package. It is without MVC.

Please clarify are you able to run the demo project within the Ext.NET MVC download?

4L4Y
Mar 13, 2013, 5:12 PM
I doubt you need to install the NuGet Ext.NET package. It is without MVC.

Please clarify are you able to run the demo project within the Ext.NET MVC download?

hi daniil, thanks for reply
yes, demo project its work,
and what if I create a new solution (.sln)?
how to configure my MvcApplication so it can use the features of extnet.

because the only instructions is Readme.txt


Product : Ext.NET.Pro
Version : 2.1.1
Last Updated : 2012-12-10


--------------------------------------------------------------------------
CONTENTS
--------------------------------------------------------------------------

I. SYSTEM REQUIREMENTS
II. ADD TO VISUAL STUDIO TOOLBOX INSTRUCTIONS
III. Version 2.1.1 REVISIONS + BREAKING CHANGES
IV. SAMPLE WEB.CONFIG
V. <extnet> WEB.CONFIG GLOBAL CONFIGURATION PROPERTIES
VI. CREDITS


--------------------------------------------------------------------------
I. SYSTEM REQUIREMENTS
--------------------------------------------------------------------------

1. Visual Studio 2008, 2010 or 2012, or
2. Visual Studio Express 2008, 2010 or 2012
3. .NET Framework 3.5, 4.0* or 4.5

*minimum required for Ext.NET MVC


--------------------------------------------------------------------------
II. ADD TO VISUAL STUDIO TOOLBOX INSTRUCTIONS
--------------------------------------------------------------------------

Getting Started (NuGet)

The easiest and quickest way to install Ext.NET is using NuGet.
Run the following command in Visual Studio Command panel, or seach for "Ext.NET" in NuGet Package Manager.

Install-Package Ext.NET


Getting Started (Manual)

The following steps are required to manually install the controls into
your Visual Studio or Visual Web Developer Express Toolbox.

1. Open Visual Studio 2010 or Visual Web Developer Express 2010.

2. Open an existing web site or create a new web site project.

3. Open or create a new .aspx page.

4. Open the ToolBox panel, typically located on the left side in a
fly-out panel (Ctrl + Alt + x).

5. Create a new "Ext.NET" Tab, by...
a. Right-Click in the ToolBox area.
b. Select "Add Tab".
c. Enter "Ext.NET".

6. Inside the "Ext.NET" tab, Right-Click and select
"Choose Items...".

7. Under the ".NET Framework Components" Tab select the "Browse"
button.

8. Navigate to and select the Ext.Net.dll file, choose open, then
select the "Ext.NET.dll" from the extracted download .zip package.

Ext.NET can always be downloaded from the following location, see

http://www.ext.net/download/

9. The component items should now be added to the list and
pre-checked. You can confirm by sorting the list by "Namespace"
and scrolling to "Ext.Net"

10. Click "OK". The icons should be added to your ToolBox. You should
now be able to drag/drop a Ext.NET component onto your WebForm.

11. Enjoy.


--------------------------------------------------------------------------
III. Version 2.1.1 REVISIONS + BREAKING CHANGES
--------------------------------------------------------------------------

See CHANGELOG.txt and BREAKING_CHANGES.txt


--------------------------------------------------------------------------
IV. SAMPLE WEB.CONFIG
--------------------------------------------------------------------------

<?xml version="1.0"?>
<configuration>
<configSections>
<section name="extnet" type="Ext.Net.GlobalConfig" requirePermission="false" />
</configSections>

<extnet scriptMode="Release" theme="Gray" /> <!-- See Property Options below in Sec IV. -->

<!--
The following system.web section is only requited for running ASP.NET AJAX under Internet
Information Services 6.0 (or earlier).

This section is not necessary for IIS 7.0 or later, although does not have to be removed.
-->
<system.web>
<httpHandlers>
<add path="*/ext.axd" verb="*" type="Ext.Net.ResourceHandler" validate="false" />
</httpHandlers>
<httpModules>
<add name="DirectRequestModule" type="Ext.Net.DirectRequestModule, Ext.Net" />
</httpModules>
<pages>
<controls>
<add assembly="Ext.Net" namespace="Ext.Net" tagPrefix="ext" />
</controls>
</pages>
</system.web>

<!--
The system.webServer section is required for running ASP.NET AJAX under Internet Information Services 7.0.

It is not necessary for previous version of IIS, although does not have to be removed.
-->
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<add
name="DirectRequestModule"
preCondition="managedHandler"
type="Ext.Net.DirectRequestModule, Ext.Net"
/>
</modules>
<handlers>
<add
name="DirectRequestHandler"
verb="*"
path="*/ext.axd"
preCondition="integratedMode"
type="Ext.Net.ResourceHandler"
/>
</handlers>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" />
<bindingRedirect oldVersion="1.0.0.0-4.5.9" newVersion="4.5.10" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Ext.Net.Utilities" publicKeyToken="2c34ac34702a3c23" />
<bindingRedirect oldVersion="0.0.0.0-2.0.1" newVersion="2.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Transformer.NET" publicKeyToken="e274d618e7c603a7" />
<bindingRedirect oldVersion="0.0.0.0-2.0.0" newVersion="2.1.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>


--------------------------------------------------------------------------
V. <extnet> WEB.CONFIG GLOBAL CONFIGURATION PROPERTIES
--------------------------------------------------------------------------

directEventUrl : string
The url to request for all DirectEvents.
Default is "".

directMethodNamespace : string
Specifies a custom namespace prefix to use for the DirectMethods. Example "CompanyX".

Example with default value:

Ext.net.DirectMethods.doSomething();

Example with a custom value:

CompanyX.doSomething();

directMethodProxy : ClientProxy
Specifies whether server-side Methods marked with the [DirectMethod] attribute will output configuration script to the client.
If false, the DirectMethods can still be called, but the Method proxies are not automatically generated.
Specifies ajax method proxies creation. The Default value is to Create the proxy for each ajax method.
Default is 'Default'. Options include [Default|Include|Ignore]

ajaxViewStateMode : ViewStateMode
Specifies whether the ViewState should be returned and updated on the client during an DirectEvent.
The Default value is to Exclude the ViewState from the Response.
Default is 'Default'. Options include [Default|Exclude|Include]

cleanResourceUrl : boolean
The Ext.NET controls can clean up the autogenerate WebResource Url so they look presentable.
Default is 'true'. Options include [true|false]

clientInitDirectMethods : boolean
Specifies whether server-side Methods marked with the [DirectMethod] attribute will output configuration script to the client.
If false, the DirectMethods can still be called, but the Method proxies are not automatically generated.
Default is 'false'. Options include [true|false]

idMode : IDMode
Specifies how the Client ID for the control should be sent to the client. Similar in functionality to ASP.NET 4.0 ClientIDMode property.
The Default value is Legacy.
Default is 'Legacy'. Options include [Legacy|Inherit|Static|Ignore|Explicit]

initScriptMode : InitScriptMode
Specifies how the initialization JavaScript code will be rendered in the client.
Inline will place the Ext.onReady block within the Page <head>.
Linked will create a link to the init block and download in a separate request.
The Default value is Inline.
Default is 'Inline'. Options include [Inline|Linked]

locale : string
Specifies language of the ExtJS resources to use.
Default is to return the System.Threading.Thread.CurrentThread.CurrentUICul ture if available.

gzip : boolean
Whether to automatically render scripts with gzip compression.
Only works when renderScripts="Embedded" and/or renderStyles="Embedded".
Default is true. Options include [true|false]

scriptAdapter : ScriptAdapter
Gets or Sets the current script Adapter.
Default is "Ext". Options include [Ext|jQuery|Prototype|YUI]

removeViewState : boolean
True to completely remove the __VIEWSTATE field from the client.
If true, the VIEWSTATE is not sent to, nor returned from the client.
Default is "false". Options include [true|false]

renderScripts : ResourceLocationType
Whether to have the Ext.NET controls output the required JavaScript includes or not.
Gives developer option of manually including required <script> files.
Default is Embedded. Options include [Embedded|File|None]

renderStyles : ResourceLocationType
Whether to have the Ext.NET controls output the required StyleSheet includes or not.
Gives developer option of manually including required <link> or <style> files.
Default is Embedded. Options include [Embedded|File|None]

resourcePath : string
Gets the prefix of the Url path to the base ~/extnet/ folder containing the resources files for this project.
The path can be Absolute or Relative.

scriptMode : ScriptMode
Whether to include the Release (condensed) or Debug (with inline documentation) Ext JavaScript files.
Default is "Release". Options include [Release|Debug]

sourceFormatting : boolean
Specifies whether the scripts rendered to the page should be formatted. 'True' = formatting, 'False' = minified/compressed.
Default is 'false'. Options include [true|false]

stateProvider : StateProvider
Gets or Sets the current script Adapter.
Default is 'PostBack'. Options include [PostBack|Cookie|None]

theme : Theme
Which embedded theme to use.
Default is "Default". Options include [Default|Gray|Slate]

quickTips : boolean
Specifies whether to render the QuickTips. Provides attractive and customizable tooltips for any element.
Default is 'true'. Options include [true|false]


--------------------------------------------------------------------------
VI. CREDITS
--------------------------------------------------------------------------

1. FamFamFam Icons provided by Mark James
http://www.famfamfam.com/lab/icons/silk/

See \Build\Resources\Ext\Licenses\FamFamFam.txt for more information.

2. Flag icons provided by Mark James
http://www.famfamfam.com/lab/icons/flags/

These icons are public domain, and as such are free for any use
(attribution appreciated but not required).

See \Build\Resources\Ext\Licenses\FlagIcons.txt for more information.

2. Silk companion icon set #1 - "More Silk!" provided by Damien Guard
http://www.damieng.com/icons/silkcompanion

See \Build\Ext.Net\Licenses\SilkCompanionIcon.txt for more information.

3. Json.NET provided by James Newton-King
http://www.codeplex.com/json/

See \Build\Ext.Net\Licenses\Newtonsoft.Json.txt

4. Ext JS JavaScript Library provided by Sencha, Inc.
http://www.sencha.com/products/js/

See \Build\Ext.Net\Licenses\ExtJS.txt


--------------------------------------------------------------------------

--------------------------------------------------------------------------

Copyright (c) 2007-2012 Ext.NET, Inc., All rights reserved.

Ext.NET, Inc.
support@object.net
www.ext.net

sorry if my question is too stupid, hehe

thanks

Daniil
Mar 13, 2013, 5:24 PM
Well, you can use the demo project as a base for your solution.

Here is a more detailed guide which you can try to follow.
http://forums.ext.net/showthread.php?16920&p=72510&viewfull=1#post72510

4L4Y
Mar 13, 2013, 5:35 PM
Well, you can use the demo project as a base for your solution.

Here is a more detailed guide which you can try to follow.
http://forums.ext.net/showthread.php?16920&p=72510&viewfull=1#post72510

Yes sir, I've read that thread. and I could use ext.net version 2.1.0.
but I did not get the 2.1.1 version Ext.Net.MVC

Well, I will read that thread again

thank daniil ,for your reply

geoffrey.mcgill
Mar 13, 2013, 6:09 PM
The MVC package from the http://ext.net/download/ page includes a sample ASP.NET MVC project already configured with Ext.NET MVC. This would be the best project to use as reference.

I'm going to try and get the Ext.NET.MVC NuGet package working before the upcoming 2.2.0 release.

Daniil
Apr 22, 2013, 5:46 AM
The Ext.NET.MVC NuGet package is now available, see
https://nuget.org/packages/Ext.NET.MVC/

Please let us know if you have any feedback or suggestions.

The source is:
http://forums.ext.net/showthread.php?20924#post107583