I tried to install MVC Framework from the below [URL] First it is installing web plateform installer 2.0, once it is done, it is throwing an error Asp.net mvc2(visual studio 2008 tools) requires VS2008 Sp1 let me know what I have to install to run MVC Below is my configration: OS: Microsoft Windows Server 2003 [Enterprise edition, Service Pack 2]
I just installed ASP.NET MVC 3 RC on my Windows Server 2008 64-bit and I now get the following error. System.MissingMethodException: Method not found: 'Void System.Web.Mvc.GlobalFilterCollection.Add(System.Object, System.Nullable`1<Int32>)'. Here's the site: [URL]
Why does the Web Platform Installer force you to install SQL 2008 Express?
I have a production server which already has an installation of SQL 2000 but no web development tools are installed. I would prefer not to add SQL 2008 Express if it is not necessary. The server in addition to being the primary intranet webserver is also DC, APP SERVER, FILE SERVER and basically does not need to handle an extra instance of SQL.
The main purpose of this is just one of convenience to have the web development app on the RDP Desktop instead of attaching to the server in some manner (ftp/unc share).
I can't seem to get the mvc 2 to install. I have a copy of visual studio 2008 already installed and working. I'm using vista ultimate 32-bit and I've ran it normally just by double clicking it and also by doing a run as administrator. Both fail with the same log entries. It always exits with code 1603.Here's the bottom portion of the install.log file:
'Microsoft ASP.NET MVC 2' RunCheck result: Install Needed Verifying file integrity of :UsersglenAppDataLocalTempVSD1766.tmpMvcRuntimeAspNetMVC2.msi WinVerifyTrust returned 0 File trusted Installing using command 'C:Windowssystem32msiexec.exe' and parameters ' -"C:UsersglenAppDataLocalTempVSD1766.tmpMvcRuntimeAspNetMVC2.msi" -q ' Will attempt to elevate process. Process exited with code 1603 Status of package 'Microsoft ASP.NET MVC 2' after install is 'InstallFailed' Status of package 'Microsoft ASP.NET MVC 2 - Visual Studio 2008 Tools' after install is 'InstallNeeded'
I tried to install portal starter kit (http://www.asp.net/downloads/archived-v11) , but I found error code (2869) in installing. Windows of my computer is VISTA.Error is like below:
Id_token is not a valid Windows NT name. Give the complete name: <domainusername>.
User or role "id_token" does not exit in this database.
I'm encountering the following exception everytime i try and install any of the following.
My Lappy configuration :
64 bit Windows 7 OS
Installed Visual Studio 2010 premium.
SQL Server 2008 Express
Exception : MsiGetProductInfo failed to retrieve ProductVersion for package with ProductCode={'2AFFFDD7-ED85-4A90-8C52-8C52-5DA9EBDC9B8F'}. Error code :1608
SQL Management Studio(x64/x86)
SQL Server 2008 SP1
Exception : There are validation errors on this page. Click OK to close this dialog box. Reivew errors at the bottom SEtup page, then provide valid parameters or click for more information.
Also, when I'm trying to udpdate SQL Server 2008 R2 products using SQL Server Installation Center, it's throwing the following error.
SQL Server Setup has encountered the following error:
MsiGetProductInfo failed to retrieve ProductVersion for package with ProductCode={'2AFFFDD7-ED85-4A90-8C52-8C52-5DA9EBDC9B8F'}. Error code :1608
Is there any compatibility issues with the SQL Server 2008 with 64bit Windows 7 OS ?
I'm receiving the following error occasionally when calling web service using a .NET 4.0 web application."The underlying connection was closed: An unexpected error occurred on a send."All of the articles I've read regarding this issue are for the Framework 1.1.Is there any solution to this issue for using .NET framework 4.0?
This is happening only in my system. when i do a build it just works fine but when i try to debug the service i am getting the follwoing error. please let me konw what would be theissue.
Microsoft.Practices.RecipeFramework.ActionExecutionException: An exception occurred during the binding of reference or execution of recipe DebugWCFService. Error was: Action DebugWebProject failed to execute: Value does not fall within the expected range.. You can remove the reference to this recipe through the Guidance Package Manager. ---> System.ArgumentException: Value does not fall within the expected range. at EnvDTE.Properties.Item(Object index) at Microsoft.Practices.RecipeFramework.Extensions.Actions.VisualStudio.DebugWebProjectAction.Execute() at Microsoft.Practices.RecipeFramework.Recipe.Microsoft.Practices.RecipeFramework.Services.IActionExecutionService.Execute(String actionName, Dictionary`2 inputValues) at Microsoft.Practices.RecipeFramework.Recipe.Microsoft.Practices.RecipeFramework.Services.IActionExecutionService.Execute(String actionName) at Microsoft.Practices.RecipeFramework.Recipe.Microsoft.Practices.RecipeFramework.Services.IActionCoordinationService.Run(Dictionary`2 declaredActions, XmlElement coordinationData) at Microsoft.Practices.RecipeFramework.Recipe.ExecuteActions(IDictionaryService readOnlyArguments, IDictionaryService arguments, ITypeResolutionService resolution) --- End of inner exception stack trace --- at Microsoft.Practices.RecipeFramework.Recipe.UndoExecutedActionsAndRethrow(Exception ex) at Microsoft.Practices.RecipeFramework.Recipe.ExecuteActions(IDictionaryService readOnlyArguments, IDictionaryService arguments, ITypeResolutionService resolution) at Microsoft.Practices.RecipeFramework.Recipe.Execute(Boolean allowSuspend) at Microsoft.Practices.RecipeFramework.GuidancePackage.Execute(String recipe, IAssetReference reference, IDictionary arguments) at Microsoft.Practices.RecipeFramework.GuidancePackage.Execute(IAssetReference reference) at Microsoft.Practices.RecipeFramework.RecipeReference.OnExecute() at Microsoft.Practices.RecipeFramework.AssetReference.Execute() at Microsoft.Practices.RecipeFramework.VisualStudio.RecipeMenuCommand.OnExec() at Microsoft.Practices.RecipeFramework.VisualStudio.AssetMenuCommand.Invoke()
I am getting really fed up trying to install MVC 3, I have bloged about the problem here - [URL] To sum it up, after ages of digging around, I finally managed to track it down to the aspnetwebpages.msi component. I am not sure what to do next as I have tried to repair, remove, force delete as well as a few other things, but I am just getting no where. I have a normal system - I upgraded to Windows 7 SP1 yesterday, VS 2010 SP1 today and have never had any Betas installed apart from Web Matrix which I uninstalled today (after the VS SP1).
The exact details of the error is: Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action WebConfigCA_Remove, location: C:Program Files (x86)Microsoft ASP.NETASP.NET Web Pagesv1.0WebConfigWebConfigCA.exe, command: -u Logging stopped: 10/03/2011 01:22:31 ===
I have a Framework 1.1 site that i'm moving from a server running Windows 2003 IIS 6 to Windows 2008 R2 with IIS 7. I'm getting weird errors in IE it says Internet Explorer cannot display the webpage. Chrome displays This webpage has a redirect loop. The webpage has resulted in too many redirects. It displays the .htm files fine but won't display any .aspx files. I installed the .net Framework on the server
Client -------------- ClientID -> PK FistName LastName AddressID -> FK to Address.AddressID
and
Address -------------- AdressID -> PK City CityCode
I created an initial set of address so
0 - London - 1000 1 - Paris - 2000 2 - Madrid - 3000 3 - Lisbon - 4000
I'm using Visual Studio 2008 with MVC. Framwork to use ADO.NET to create the model
My view is:
[Code]....
My model is just: ... Private _dataModel As New just2testDBEntities [Code]....
When post it retun erro
{"Can not insert the value NULL into column 'City', table 'dbo.Address'; column does not allow nulls. INSERT fails. ... statement terminated."}What I was intended to do is to insert a client and not a client and an address.
I've just created a new MVC 2 application that references both an entity model library and a services library, and all compiles fine without running the app, but when I try running it, I get the following runtime error"
Compiler Error Message: CS0012: The type 'System.Data.Objects.DataClasses.EntityObject' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
I have double checked umteen times (e.g. Umpteen*n) and the cited assembly is refenced in all three projects. If it wasn't, WTF would I not get a build error?
I have web site where web application exist in asp.net2.0 ie Framework 2.0. Now I would like Add another web application of ASP.NET3.5 FRAMEWORK. After adding assemblies of 3.5. I am getting error in ajax 1.0 code where this code is called
Error stated as CS0433: The type 'System.Web.UI.ScriptManager' exists in both 'c:WINDOWSassemblyGAC_MSILSystem.Web.Extensions1.0.61025.0__31bf3856ad364e35System.Web.Extensions.dll' and 'c:WINDOWSassemblyGAC_MSILSystem.Web.Extensions3.5.0.0__31bf3856ad364e35System.Web.Extensions.dll'
Is there any possibility that these error can be rectified from web.config or only we have to delete the assembly file from server of 1.0
I have a deadline to install my windows service NOW. I developed it in VS2010 and chose the .NET 4.0 framework. The server where I am installing it, which is a server that hosts our live web sites, does not have .NET 4.0 installed. So I have to change the framework to 3.5. I have this error now when I try to build:
Error13Type System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a in the data at line 120, position 4 cannot be located. Line 122, position
5.C:DevprojectsDocFtpToVendorDocumentFtpProjectInstaller.resx1225DocumentFtpIt is in ProjectInstaller.resx and also Service1.resx. Is it because the version=4.0.0.0, and if so how do I change that? And if not, what is the cause?
public class Category { public int CategoryId { get; set; } public string Name { get; set; } } public partial class CategoryMap : EntityTypeConfiguration<Category> { public CategoryMap() { this.HasKey(c => c.CategoryId); this.Property(c => c.Name).IsRequired().HasMaxLength(400); } } public class MyObjectContext : DbContext { public MyObjectContext(string connectionStringName) : base(connectionStringName) { } public DbSet<Category> Categories { get; set; } protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Configurations.Add(new CategoryMap()); base.OnModelCreating(modelBuilder); } }
Now when I run the following code I get an exception (GenericArguments[0], 'System.Int32', on 'System.Data.Entity.Internal.Linq.ReplacementDbQueryWrapper`1[TEntity]' violates the constraint of type 'TEntity')
DbDatabase.SetInitializer<MyObjectContext>(new DropCreateDatabaseIfModelChanges<MyObjectContext>()); using (var context = new MyObjectContext("NopSqlConnection")) { var query1 = from c in context.Categories select c.CategoryId; var test1 = query1.ToList(); //works fine var query2 = from c in context.Categories where query1.Contains(c.CategoryId) orderby c.Name descending select c; var test2 = query2.ToList(); //throws the exception }
I was trying to send a Batch request with O-data framework given below is the code sequence.
updateService = new Sys.Data.OpenDataServiceProxy("http://localhost/myservice.svc"); actionSequence = updateService.createActionSequence(); actionSequence.addUpdateAction(newWr, workRequest.__metadata.uri); try { actionSequence.execute( function () { alert("Success"); }, function (error) { alert(error._message); } ); } catch (e) { }
but this is failing because on response in the end i am geting some extra sections such as undefined ..given below is the response that i am geting in the end u can find the last 3-4 lines and junk data. which is
I bought the subject book and started to implement the sample MVC project. Everything went perfect until it came to Dependency Injection section. I'm doing everything as described in the book but I get "Object reference not set to an instance of an object." error on the line
[Code]....
I zipped the solution folder with the database script if you wanna see whether you also get the same error. I loaded the zipped folder in my skydrive: [URL]
I get this error when I try to publish a asp.net 4.0 application on my server. I am using entity framework and mysql as the database. Unable to find the requested .Net Framework Data Provider. It may not be installed.
[ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed.] System.Data.EntityClient.EntityConnection.GetFactory(String providerString) +251 [ArgumentException: The specified store provider cannot be found in the configuration, or is not valid.] System.Data.EntityClient.EntityConnection.GetFactory(String providerString) +10983191 System.Data.EntityClient.EntityConnection.ChangeConnectionString(String newConnectionString) +641 System.Data.Objects.ObjectContext.CreateEntityConnection(String connectionString) +67 Satelite.Dados.sateliteEntities..ctor() in E:Sites_dotNet4.0satelite runkSistemaDadosSatelite.Designer.cs:64 [TargetInvocationException: Exception has been thrown by the target of an invocation.] System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0 System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache) +117 System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) +247 System.Activator.CreateInstance(Type type, Boolean nonPublic) +106 System.Web.DynamicData.<>c__DisplayClass2.<RegisterContext>b__1() +15 System.Web.DynamicData.MetaModel.RegisterContext(Func`1 contextFactory, ContextConfiguration configuration) +483 Satelite.Global.RegisterRoutes(RouteCollection routes) in E:Sites_dotNet4.0satelite runkSistemaSateliteGlobal.asax.cs:35 [HttpException (0x80004005): Exception has been thrown by the target of an invocation.] System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +3988565 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +191 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +325 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +407 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +375 [HttpException (0x80004005): Exception has been thrown by the target of an invocation.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11529072 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4784373