I can't add the reference to the HibernatingRhinos.Profiler.Appender.v4.0.dll in the silverlight application because it is not a silverlight dll? I can add it to the web project but then how do I reference the dll in the silveright App.xaml Application_Startup call.
See http://neverindoubtnet.blogspot.com.au/2011/03/efprof-first-look-profiling-devforce-sl.html
e.g. add the reference to your web project that hosts the silverlight control and then add the Initialize() method into your web project's global.asax Application_Start().
Entity Framework is on the server only, you don't need to add any references in the silverlight project. And HibernatingRhinos profiler is for NHibernate, not Entity Framework.
I don't understand what you are trying to do?
EFProf is an Entity Framework profiler from Hibernating Rhinos.
http://efprof.com/home
Related
When I want to add System.Web.Mvc by right clicking the project and Add>Reference option, there is only version 3.0.0.0 and 4.0.0.0. However, I created the project as MVC 5. On the other hand, trying to add this reference on Nuget Package, there is no reference with the same name. Instead of this, there is another refernce named So:
1) How can add System.Web.Mvc (version 5 or later) reference to my projects including Class Library?
2) What is the difference between System.Web.Mvc and Microsoft.AspNet.Mvc?
Thanks in advance.
System.Web.Mvc Is one of the core namespaces developed by MS,it contains classes and interfaces that support the ASP.NET Model View Controller (MVC) framework for creating Web applications. This namespace includes classes that represent controllers, controller factories, action results, views, partial view, model binders, and much more. MS Link
Don't get confused with another namespace: Microsoft.Web.Mvcwhich contains classes that support the ASP.NET.MVC framework for creating web applications.
Now back to your first question about Microsoft.AspNet.Mvcthat you can download from Nuget. I think it's the same as System.web.mvc , if you check dll file it creates, you will notice that it has the exact samedll name: System.Web.Mvc.dll. It has the same size, assembly signature, etc.
I experienced this odd issue and had to uninstall/reinstall Microsoft ASP.NET MVC via NuGet Package Manager - for the project in question - before I could add the correct System.Web.Mvc v5.0.
I have been assigned a project that needs to be implemented in a single page architecture. I have chosen ASP.NET Web API and Angular JS to start with. Here is the architecture of my application:
MyProject.Web: (ASP.NET Empty Application)
1). Entity Framework
2). ASP.NET Razor
3). ASP.NET Web Optimization
4). ASP.NET Web API
MyProject.DTO: (Class Library Project)
I am not sure if I should include reference to Entity Framework inside MyProject.web.
What more refinements you suggest I should make?
EDIT
I have made up my mind to use Entity Framework. With respect to Single Page Architecture, is it necessary to create a separate project (DAL) and reference Entity Framework DLL?
Thanks for reading.
EntityFramework and BreezeJs may prove to be a lot of help. (depending on the scope/goal of your app)
I have developed a custom Comment Control using class library file
now i want to use the dll of this file in web application which is developing on MVC Framework
so what are the ways of adding and using this dll in this project
MVC projects are no different from other project types. To add a reference to another assembly (DLL) you right click on our project in the solution explorer, select add reference and then select your dll file.
I am trying to create a pluggable ASP.NET MVC framework. I have extensively used Prism (CAB for silverlight) and am a huge fan and wish to implement the following items in my pluggable ASP.NET MVC framework
The framework will have a host to load the unity container and other infrastructure items like logging services and all.
Plugins will be independent MVC2 application. Every application will have IModule interface implemented which will initialize and register Controllers/VIEWS(Is this possible!!!) type in Unity?
This IModule will also register custom routes per plugin and add it to host Routes collection.
When the application will start, the plugins list will be loaded from the database/external file and IModule of the project will be called which will load the above mentioned items in Unity Container.
Whenever any request is made, the controller will be loaded from unity and the Views will be loaded (Is it possible that I register a custom view engine in unity which will point to physical path rather than embedding the resource in the dll)
Is this possible. The question may sound a bit stupid... :)
This is generally possible, though a lot of work from scratch. Fortunately Microsoft's Orchard project already does pretty much everything you are asking, and you can download the MVC source code to see how it's done. See: http://orchard.codeplex.com/
I've built ASP.NET webform projects in the past, and when generating Subsonic classes, the teams I have been on have put our Business Layer/DAL objects into a Project.Framework project.
Would that still be a recommended structure, or should the Subsonic classes go directly into the /Model folder within the MVC web project?
It shouldn't go in the Model folder (I think the Model folder should just be used for a Class that is made only for the view and wont be used in the rest of the app).
It should go into a separate assembly Maybe Project.Core or Project.Data
I would not put the Subsonic classes directly in the MVC project. Since you didn't with ASP.NET, there is no reason to change now.
I wouldn't even leave the Controllers in the MVC web project.
You can put them in Model, and move them to their own project later, but its not really any more work to just put them in their own project now, so I would just do that.