.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

MVC3 Beta: Do deployment packages work?

Posted By:      Posted Date: October 24, 2010    Points: 0   Category :ASP.Net

Do deployment packages work in MVC3 Beta 1?
Mine seem to be created without any views.

View Complete Post

More Related Resource Links

Reg deployment of solution packages in SharePoint 2010 from MOSS 2007

Hi, Earlier we have developed some custom web parts,features and deployed into the site through solution package(wsp files) when customer was using MOSS 2007.Now customer is migrating all sites into SharePoint 2010.Now my query is can i use the same solution to deploy into the site through Central Admin of SharePoint 2010 or is there any seperate process for that? Thanks & Regards, Sudheer

MVC3 Beta requires WebMatrix.Data?


Switching a project from MVC3 Preview 1 to MVC3 Beta 1 and getting the following error when running:

Compiler Error Message: CS0246: The type or namespace name 'WebMatrix' could not be found (are you missing a using directive or an assembly reference?)

This is on the home/index view which is generated from Razor. The generated class is:

Line 1:    #pragma checksum "C:\Dev\Furld\src\Web\Views\Home\Index.cshtml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "7DA68551EE4CE5365FE9A03790329360"
Line 2:    //------------------------------------------------------------------------------
Line 3:    // <auto-generated>
Line 4:    //     This code was generated by a tool.
Line 5:    //     Runtime Version:4.0.30319.1
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: 

MVC 3.0 Beta Bug: Windows Authentication doesn't work


Windows authentication doesn't works for me.

Here are steps to reproduce:

  1. Open VS2010
  2. Create an "ASP.NET MVC 3.0 Web Application" with the Empty template
  3. Add a HomeController controller.
  4. Change the authentication element in web.config to: <authentication mode="Windows" />
  5. Under project Properties > Web enable NTLM Authentication
  6. Add a break point inside HomeController.Index().
  7. Start debugging.

When the breakpoint is hit, I get:

User.Identity.AuthenticationType = ""
User.Identity.IsAuthenticated = false
User.Identity.Name = ""

When I follow the above steps with an "ASP.NET MVC 2.0 Empty Web Application" project, I get:

User.Identity.AuthenticationType = "NTLM"
User.Identity.IsAuthenticated = true
User.Identity.Name = "<My Username>"

which is correct.

MVC3 Beta Razor Views - not partial classes


Why are Razor views not generated as partial classes? Making them partial classes gives us the option to have a code behind where we can do some of the stuff we're forced to do in the template itself in the code behind file.

Yes, I know the standard "go-to" thing is Html helper but I don't want to use Html helpers for these things as they are too specific to the view in question and besides, having a clutter of extension methods is just not the way to go.

I'd like to see Razor views generated as partial classes.

MVC3 beta Razor View Base class/inheritance issues


There seem to be a few issues in the way Razor views are designed and the code generated

1. Descendants of WebViewPage are forced to override Execute() (since it is abstract) but that method is never called. Why?

2. The virtual method ConfigurePage is never called in descendants that override this method.

3. CreatePageFromVirtualPath is no longer virtual. This was the one method that gave us access to the Layout Page (Master Page) instance. Now we no longer have this access. Why was this done?

How can one get access to the instance of a Layout page?

WebMatrix beta 2 - FileUpload helper doesn't work



I have this code working in beta 1:

            <form id="imageForm" method="post" enctype="multipart/form-data" action="#imagesTab">
                <input type="hidden" id="itemId" name="itemId" />
                    initialNumberOfFiles: 1,
                    allowMoreFilesToBeAdded: true,
                    addText: "Add another file",
                    includeFormTag: false)
                <button type="submit" id="submitImageData">Upload</button>

But now I get Compilation Error:

Compiler Error Message: CS0103: The name 'FileUpload' does not exist in the current context

Problem with XCopy deployment of SQL Server CE 3.5 SP2 Beta

As ErikEJ's article says (http://erikej.blogspot.com/2009/10/whats-new-in-sql-server-compact-35-sp2.html), "...Notice the “Private” folder, which contains a version of System.Data.SqlServerCe.Dll which should be used for private deployments, to prevent the “Assembly probing” issue".

I have following app.config file:

<?xml version="1.0" encoding="utf-8"?>
      <remove invariant="System.Data.SqlServerCe.3.5" />
      <add name="Microsoft SQL Server Compact Data Provider"
           description=".NET Framework Data Provider for Microsoft SQL Server Compact"
                 PublicKeyToken=89845dcd8080cc91" />
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <probing privatePath="sqlcelib" />

MVC3 Beta Interfering with Classic ASP Form Posts


Unfortunately we have classic ASP that must co-exist with MVC in the same site. I'm doing some testing with MVC3 beta and ran into a strange issue with form posts in classic asp that does not appear in the the preview or in prior versions of MVC. To repro the issue simply create a stock MVC3 beta project and run it under IIS7.5 (Not the development server). Then add a couple of classic asp files; one that posts to another:


<form method="post" action="process.asp">
<input type="text" name="yada">

MVC3 Beta Source Code


I cant seem to find the source code for the MVC3 beta release. The source code on the codeplex site hasent been updated in a few months. Is the MVC source repo somewhere else?



MVC3 Beta @Html.AntiForgeryToken() problem



I am getting strange error when trying to use @Html.AntiForgeryToken() in my views.

The error is:

[ArgumentNullException: Buffer cannot be null.
Parameter name: buffer]
   System.IO.MemoryStream..ctor(Byte[] buffer, Boolean writable) +9638183
   System.IO.MemoryStream..ctor(Byte[] buffer) +6
   System.Web.Mvc.AntiForgeryDataSerializer.Deserialize(String serializedToken) +97

[HttpAntiForgeryException (0x80004005): A required anti-forgery token was not supplied or was invalid.]
   System.Web.Mvc.AntiForgeryDataSerializer.Deserialize(String serializedToken) +397
   System.Web.Mvc.HtmlHelper.GetAntiForgeryTokenAndSetCookie(String salt, String domain, String path) +160
   System.Web.Mvc.HtmlHelper.AntiForgeryToken(String salt, String domain, String path) +16
   System.Web.Mvc.HtmlHelper.AntiForgeryToken() +10

Am I doing something wrong. The request till this exception is raised is GET, not POST. I thought that on GET the token is generated and than is validated on post.

Please advice.<

How to make Content Deployment work in the same farm (Load Balanced)?

I've been tasked with getting content deployment to work in our soon to be released sharepoint 2010 environment. A little background info, it has never worked in our past environments both 2003 and 2007. I believe that much of this is relative to our configuration(s), but I'm also wondering if some of this is due to a misunderstanding/limitation of the capabilities of content deployment on our end. I've seen a few basic diagrams for content deployment, but none of these seem to fit our setup. First off, the farm environment that we are planning to run content deployment on consists of 1 indexing server, 2 front end servers that work as load balanced A and B nodes, and finally a SQL backend. What we are looking to do is use content deployment to move data from the A and B nodes. Based on information that I've read I don't believe that content deployment works that way, but everyone in my team claims it does. They also state that we had an MS consultant onsite working on this in the past and he never said that this type of setup wouldn't work. Can someone please clarify this for me?

PreApplicationStartCode in MVC 3 beta: Making MVC3 not very modular IMO



I am trying to upgrade from MVC 2 to Mvc 3. I am using 3rd party view engine, and 3rd party data access technology, and like to move code in from 'modules' at start up in my own bootstrapper.

But MVC 3 is playing tricks on me. It insists that I bring in System.Web.WebPages, System.Web.WebPages.Razor, WebMatrix.Data, because it uses the new asp.net 4 stuff to bootstrap the app domain with razor build providers, webmatrix database facades (and to be honest code I don't know about, and code I would like to know about at my own free will)

[assemblyPreApplicationStartMethod(typeof(System.Web.Mvc.PreApplicationStartCode), "Start")]

Is this design really optimal? It doesn't seem very modular that MVC 3 carries this much  
weight for users not using razor, webmatrix.data?


64 bit Windows 7 + Excel 2010 beta + SQL Server 2008 Enterprise SP1 = My DM Add-in does not work

I'm running W7 + Excel 2010 beta + SQL Server 2008 Enterprise on a full 64-bit PC.  My SQL Server 2008 DM Add-in installs properly (throws no errors), but neither the Data Mining nor Table Analyzer tabs show up on the Excel ribbon & are not available in the Add-in dialog box.  I also have all of the above on a 32-bit laptop, and both DM tabs ARE available on the Excel ribbon and seem to function properly.

As a test I uninstalled the add-in from both machines and reinstalled.  The issue was the same; the add-in shows up on Excel running in the 32-bit environment but not on the 64-bit environment. 

Question:  Is this problem due to the 64-bit environment, or could it be something else?

ASP.NET 4 and Visual Studio 2010 Web Development Beta 2 Overview

Many exciting changes for ASP.NET are coming in the .NET Framework version 4. This document gives an overview of many of the new features that are included in the Beta 2 release of the .NET Framework 4 and of Visual Studio 2010.

RadioButton inside GridView, How to get it work as normal

Did you tried before to drag a RadioButton control inside a Gridivew templatefield, and then you attempt to select these RadioButtons , you will notice that the behavior of RadioButton control will be changed and it will work just like the behavior of checkbox control! the user will be able to select more than one radiobutton in the grid!

Visual Studio 2010 Beta 2

This is a big deal. This isn't ".NET 3.6" - there are a lot of improvements of .NET 4, and it's not just "pile on a bunch of features so you get overwhelmed." I've been working with and talking to many of the teams involved and even though it's a cheesy thing to say, this is a really customer-focused release.

ASP 4 - Whirlwind Tour around .NET 4 (and Visual Studio 2010) Beta 1

There's a lot of stuff that's new and added in .NET 4, but not in that "overwhelming-I-need-to-relearn-everything" way. More in that, "oh, this is way easier/simpler now" way. Like, moving data around with ADO.NET DataServices is easy, binding with client templates is easy, there's F# if you need it, the "dynamic" keyword if you need it, Silverlight's already installed, oh, and the parallel stuff will freak you out, but in a good way.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend