.net,asp.net-mvc-3,azure,signalrRelated issues-Collection of common programming errors


  • Denis
    c# .net sql sql-server vb.net
    Maybe there is a better way to do this. The jist of I want is to have SQL Server raise me 2 types of errors: a WARNING and an ERROR from a trigger when I update a table. If SQL server returns a WARNING the trigger should COMMIT but show the warning to the user (using .NET – preferably through a SQL Exception which is only raised if severity > 10) and if it is an ERROR the trigger should ROLLBACK and show the ERROR to the user (through a SQL Exception). My attempts (needless to say this isn’t wor

  • abatishchev
    asp.net .net exception-handling application-pool
    Whenever we get the below error in the IIS7.5 which is running on windows 2008 R2 64bit OSA process serving application pool ‘app poolname’ suffered a fatal communication error with the Windows Process Activation Service. The process id was ‘2388’. The data field contains the error number.We are also getting random ASP.net error triggered after few seconds after the above error triggered.Is there any relation between the a application pool fatal communication error and asp.netI’m trouble shootin

  • Timbo
    .net class exception
    So let’s say I build a class with methods that may result in a fatal exception, such as network failure. Is it best practice to:1) Throw an exception and let the calling procedure trap and handle it? 2) Raise a class event for which the calling procedure has added a handler? 3) Suppress the exception and return False or Nothing from the method rather than the intended result?My apologies if this is an irritatingly trivial question. I’m new to .NET

  • Anthony Mastrean
    .net struct unity fatal-error
    I am trying to resolve a TimeSpan using Unity. Executing the container Resolve call results in a FatalExecutionEngineError. FatalExecutionEngineError was detectedMessage: The runtime has encountered a fatal error. The address of the error was at 0x543c3dc8, on thread 0x1bb8. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corru

  • Don Wakefield
    .net c++ windows compiler-errors stdafx.h
    I have a (com) c++ project, which uses a (.net) c++ dll. The project was compiling and running ok.Now, all I did was make changes to the dll, and I’m getting a fatal error c1083- cannot open include file stdafx.h – when recompiling my (com) project.What can this mean?

  • Ashwini Verma
    c# asp.net .net sql database
    This is the second time I got following error for my website:Warning: Fatal error 9001 occurred at May 5 2012 1:16AM. Note theerror and time, and contact your system administrator.I get this error while login to website. However, there is no any problem for connecting database or fetching records.Last time I just took a backup and restore my database then this issue was resolved. But, I got again similar issue, now I want to know exact cause for this error.I appreciate your reply.

  • Cat Zimmermann
    .net assemblies appdomain
    We have a type caching system in place to avoid searching all plug-in assemblies for all types each time our application starts up, but when moving from .NET 1.1 to 2.0+, the Event Log records a Fatal Execution Engine Error (6B3979C6) (80131506) on the AppDomain.Load() If and only if 1. the AppDomain is NOT AppDomain.CurrentDomain. 2. The assembly is not in the executable’s directory. We allow users to provide their own assemblies in project-specific directories, so we can’t work around 2.I bel

  • L-Three
    c# .net windows-server-2008 registration com+
    I have to do a modification on an old COM+ app written in C# 2.0. But when I try to register the DLL on a windows server 2008 machine with ‘regsvcs excelserver.dll’, I get the error:The following installation error occurred: 1: FATAL: Could not find component ‘Excelserver.CExcelManager’ we just installedI tried to run in as admin, and turned off UAC, but it doesn’t make a difference.If I try it on a windows 7 or windows server 2003 machine, it works.Any ideas why this doesn’t work on a windows s

  • marc_s
    sql .net sql-server-2008
    When I am trying to open SQL Server 2008 Management Studio, I am getting the following error..NET Runtime version 2.0.50727.5477 – Fatal Execution Engine Error (5D24FB66) (80131506)Earlier it used to work, but suddenly it stpoped working. The only reason I can think of is that I have installed Visual Studio 2013 Express. So something has messed up. Can someone kindly help me out on how I can get my Management Studio to work again?Regards,Phani

  • John Woo
    c# .net mysql database phpmyadmin
    private void button1_Click_1(object sender, EventArgs e){MySqlConnection con = new MySqlConnection(MyConString);con.Close();con.Open();string m = “INSERT INTO Tools (TCode,TName,Description,Classification,Model,Capacity,Status,Quantity,Avaiability,DatePurchased,DateDelivered) VALUES (@TCode,@TName,@Description,@Classification,@Model,@Capacity,@Status,@Quantity,@Avaiability,@DatePurchased,@DateDelivered)”;MySqlCommand cmd = new MySqlCommand(m, con);cmd.Parameters.Add(“@TCode”, MySqlDbType.VarChar

  • Davide.77
    asp.net-mvc-3 pdf fonts itextsharp font-face
    I’m not able to find a reason why my MVC 3 web site shows arabic font correctly and my pdf not.I use a bliss font in my web site;@font-face { font-family: ‘blissregular’; src: url(‘/Fonts/blissregular-webfont.eot’); src: url(‘/Fonts/blissregular-webfont.eot?#iefix’) format(’embedded-opentype’),url(‘/Fonts/blissregular-webfont.ttf’) format(‘truetype’); font-weight: normal; font-style: normal;}All working fine. After that I want to create the pdf of the output but arabic fonts does not appears.I’v

  • Jim
    asp.net asp.net-mvc asp.net-mvc-3 asynchronous
    I have a ASP.NET MVC3 application that handles time-consuming processes (copying a large file from network). What we want to do is:User clicks a button to post the form to trigger the process Application starts a new thread to start copying the file Application shows a message saying the file-copying process has begun User can close the browser while the copying processed and finished in the background.The idea is that the user doesn’t need any confirmation on the progress of the process, nor be

  • Kirk
    inversion-of-control asp.net-mvc-3
    We have recently upgraded a project to MVC 3 Tools and discovered that our inversion of control container is causing problems with the native MVC model binding validation on both client- and server-side. When we have the IoC hooked up the client validation fails to fire at all and the “IsValid” test in the controller fires erratically and passes along data when it should not. The only way we’ve been able to correct the validation framework is to disable the IoC completely. We were using Ninject

  • Cameron
    jquery asp.net-mvc-3
    I have the following JS:$(‘form’).live(‘submit’, function (event) {// Stop the form from doing a native postbackevent.preventDefault();$.ajax({type: ‘POST’,timeout: 5000,url: $(this).attr(‘action’),data: $(‘form’).serialize(),success: function (responseHtml) {$.getJSON($(this).attr(‘action’), function (data) {console.log(data);});},error: function (jqXHR, textStatus, errorThrown) {alert(‘server error’);}});});Which should log the json from the following mvc method on fail (note this is a login f

  • CD Smith
    vb.net asp.net-mvc-3 linq-to-sql .net-4.0
    I’ve read through the posts here and can’t find any eureka answers so here’s what I have. Linq to SQl not propagating a change back to the db.Here’s my code. Does anything stand out? The call to dc.GetChangeSet shows 0 changes. What am I missing? I can see the new values from “setting” being set to the cs object properties. SettingID is a primary key in my table and shows as PK in the dbml so that’s not an issue.Public Shared Function Update(ByVal setting As ClarifireSetup) As BooleanDim cs As

  • ekkis
    ajax asp.net-mvc-3 callback razor
    why do I always have so much trouble…? given that I didn’t solve the problem in my other article, I decided to just code the javascript right into the values… so I have:OnSuccess=”alert(‘ok’)”, OnFailure=”alert(‘failed’)”,so my problem is the submission works fine; a record gets inserted into the database and I get a callback… but I get the wrong callback! I get a failure even though the record got inserted. heeeeelp!

  • teahou
    asp.net-mvc-3 validation
    This has been asked and answered 100 times, and I have read them all, yet still my form submits after failing validation. I found a reference to not using jquery.validate higher than 1.9.0, so I rolled back to that (had been using 1.11) but no change.If i submit with an invalid form (nothing filled out) the error messages appear, then the form submits.I have successfully implemented validation a couple times in the past, and I can’t see what is different about this time. I need to take a break

  • Pat James
    asp.net-mvc asp.net-mvc-3 mobile 51degrees
    In my ASP.NET MVC 3 web application I am overriding the View name in a custom view engine to present a different view optimized for non-tablet mobile devices.All I want to perform this view override is an accurate value for Request.Browser.IsMobileDevice and the device’s native display width.51degrees.mobi feels very heavy and convoluted for this simple use case. Maybe that is just my frustration at trying to wade through all of the examples and documentation on the 51degrees web site to get an

  • EH_warch
    asp.net-mvc-3 sql-server-express asp.net-mvc-scaffolding
    I’m creating a new MVC 3 pilot application using Mvc3 and the MvcScaffolding NuGet, everything runs smoothly until i want to use the database i already have. The application keeps creating a database with the format:projectname.Models.projectnameContextI’m stuck in here, my connectionStrings is:<connectionStrings><add name=”ApplicationServices” connectionString=”data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true” providerNam

  • Christofer Eliasson
    c# asp.net-mvc-3 version-control entity-framework-4.3 ef-migrations
    I have an ASP.NET MVC3 project that uses Entity Framework 4.3 with the code-first approach. I use Migrations to keep the database up-to-date.The project is under source-control and I have a number of branches. What I just realized is that there will be a problem when I wan’t to merge one of my branches into the master. Since I have created migration-files in both branches, there will be overlapping migrations when I merge, which will probably cause conflicts.Is there a good way to manage Migrat

  • user2769957
    git azure ssl github tortoisegit
    I have an azure website that is connected to a git repository. I have been pushing and pulling from this repository sometimes 5 or more times a day since August and have never had an issue. Yesterday evening, however, I began running into “fatal errors” when I tried to pull from it. I tried to push to it as well, and received the same error.I have used git bash, git GUI, as well as tortoise git as an attempt to resolve this issue, but all of them are returning the same issues.I receive this erro

  • AJcodez
    ssh azure github npm
    Trying to deploy an Express app on an Azure “web site” through Github. I have a private repository in package.json dependencies:”dependencies”: {“express: “~3.4.0″,…”private-repo”: “git+ssh://[email protected]:private/repo.git” }Unfortunately, here’s the stacktrace:Command: C:\DWASFiles\Sites\website002\VirtualDirectory0\site\deployments\tools\deploy.cmd Handling node.js deployment. KuduSync.NET from: ‘C:\DWASFiles\Sites\website002\VirtualDirectory0\site\repository’ to: ‘C:\DWASFiles\Sites\websit

  • Brian Reischl
    azure windows-azure-storage azure-storage-tables azure-storage
    I’m looking at doing some updates into Azure Storage Tables. I want to use the optimistic concurrency mechanism properly. It seems like you’d need to do something like:Load row to update, possibly retrying failures Apply updates to row Save row, possibly retrying network errorsIf there is a concurrency conflict, reload the data (possibly retrying failures) and attempt to save again (possible retrying failures)Is there some generic class or code sample that handles this? I can code it up, but I h

  • Boomerangertanger
    extjs azure windows-phone-8 sencha-touch azure-mobile-services
    I’m trying to get Push notifications working in my Sencha Touch app which will be targeted to Windows Phone, iOS and Android. At the moment, I’m focussing on getting device registration to work inside the Windows Phone app.Please note: We have an existing ASP.NET backend inside a Windows Azure Cloud Service.I have installed the Sencha Touch Extensions for Windows Azure and I have installed the PhoneGap PushPlugin into my Sencha appI’ve followed all the instructions at the Windows Azure website

  • Dave Vronay
    java mongodb tomcat azure
    My system is a TomCat 7 server running on Ubuntu talking to a MongoDB cluster running in CentOS. We have this on AWS and it is working just fine.I recently brought up the exact same thing on Azure and we are having constant, seemingly random timeouts when the tomcat app tries to query MongoDB. A typical error is:Jan 31 08:13:54 catalina.out: Jan 31, 2014 4:14:09 PM com.mongodb.DBPortPool gotError Jan 31 08:13:54 catalina.out: WARNING: emptying DBPortPool to xxx.cloudapp.net/xxx.xxx.xxx.xxx:2

  • marc_s
    azure sql-azure azure-mobile-services
    I have set up an Azure Mobile Service (AMS) that’s associated with an Azure SQL database, as usual. However, when I try to use a custom api to query another table (NOT a mobile services table) with the custom API mssql object, I get a permissions error:Error: [Microsoft][SQL Server Native Client 10.0][SQL Server]Login failed for user ‘zwxABOesblahblahHYzLogin’.Some things to note:I had to drop delete the database and then re-create it with the same name after the mobile service was created. Mob

  • Nando
    java spring tomcat azure javax.imageio
    Im trying to deploy a spring web app to a tomcat 7 running on a production environment on windows azure (tried ubuntu and windows datacenter vm). Sadly, I retrieve an error while generating thumbnails in use with ImageIo (stacktrace below).During development, I used tomcat 7 too, so I realy dont understand, what is different on the production webserver.When I try to load the modules by “ImageIO.scanForPlugins();” the exakt same thing happen. Isn’t ImageIO or javax.awt in generaly included in the

  • Jay Harris
    node.js azure sass zurb-foundation azure-web-sites
    I have been trying to find if there is a way to support sass with a windows azure website? Can someone point me to some documentation or let me now if this is even possible. I am specifically looking to support Zurb Foundation responsive framework which is built on sass(scss).I already do this by using the complied css files with an override css file. I would like to use the semantic styling of sass if possible.Thanks

  • Stu1986C
    c# asp.net asp.net-mvc azure
    I get an System.Xml.XmlException: Root element is missing down in the code, at the line var user = await UserManager.FindAsync(model.UserName, model.Password); Obviously it is a MVC 5 AccountController unmodified from the template. It worked flawlessly local before I deployed to Azure, where I had some problems. Because of that I tried to check everything locally again, with the result of the Exception, that haunts me. Has anyone an idea what I am missing?// POST: /Account/Login[HttpPost][A

  • Michael Mortensen
    sql performance rest azure latency
    In our line of business we are hosting a REST based API that is hosted by Windows Azure and with SQL Azure as database storage.Both the Web Role (Windows 2008R2, IIS 7.5, WCF, Large instance) and SQL Azure is hosted in North Europe region.The problem is, that when we do intensive SQL work we often get a “Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.”.What troubles me here is, that no matter what we do, we cannot provoke this on

  • BenSwayne
    c# ajax asp.net-mvc signalr
    I have an ASP.NET MVC3 application.If my application had a large number of users – let’s say 100,000 – hypothetically, if all users were talking to each other and I used SignalR, would there be 100,000 long polling connections? Would these cause some sort of denial of service? Should I be using AJAX HTTP instead? Or would SignalR be smart enough to release the connection to resource pool when no activity is found for certain period of time? When would using signalR for chat be recommended for ch

  • LJS_27
    android phonegap signalr sencha-touch-2.1
    I am trying to connect to SignalR from within a native Android app using Sencha Touch 2.1 and PhoneGap 2.5.0.Here is what I have so far:My SignalR server is an ASP.NET MVC3 application running on Windows Server 2012. Cross Domain access has been enabled in global.asax.vb.Global.asax.vbSub Application_Start()Dim config As New HubConfigurationconfig.EnableCrossDomain = True ‘Allow cross domain (for native apps)RouteTable.Routes.MapHubs(config)AreaRegistration.RegisterAllAreas()RegisterGlobalF

  • Jad KJK
    safari signalr
    I have a web application which is implemented using mvc 4 , jquery mobile (.net framework 4.5) and hosted on IIS 8.0 with websockets enabled.When I try to access the website using safari or chrome on my ipad with ios7, the pages that are using SignalR connect to the hub using websockets (no spinning loader is showing).However when enabling windows authentication, I have first faced the following issue: the authentication popup keeps showing multiple times even though credentials are entered corr

  • Agzam
    asp.net-mvc-3 .net-4.0 signalr signalr-hub signalr.client
    This thing is dragging me nuts. I have a .net 4.0 console app and I have an MVC web app. javascript clients can connect and talk to the server – no problems here… but my .net client throws System.AggregateException with InnerException = “Unexpected character encountered while parsing value: <. Path…so I created an empty MVC3 app, added SignalR libraries, and .net client surprisingly connects to that. But for some reason it doesn’t to the other one. I’ve checked everything, both MVC3 apps

  • Leniel Macaferi
    .net signalr signalr-hub
    We have a SignalR hub called StatusUpdateHub. This hub is updated by a .NET client called HubClient. This client will be (in production) called about 1000 times per second by multiple users for different transactions. Here is the client code:public static class HubClient {private static readonly string statusUpdateUrl = ConfigurationManager.AppSettings[“StatusUpdateUrl”];private static readonly HubConnection connection = new HubConnection(statusUpdateUrl);private static readonly IHubProxy hub =

  • michael moore
    signalr signalr-hub
    I have simple project, where I’m using signalR, When page loads, signalR scripts are loaded succefully, however right after that, call to http://localhost:24634/signalr/signalr/connect?transport=foreverFrame&connectionId=dca2db9c-b16a-4b96-96dc-9a6b187b6d9e&connectionData=[{“name”:”notifier”}]&tid=5&frameId=1returns 500 Internal Server Error, I checked this request in fiddler, error message saysUnexpected end when deserializing object.Here’s my Hub Definitin[H

  • RobVious
    signalr signalr-hub
    I’m trying to set up a .Net client to send messages to my signalR hub from my service layer. I’m following this guide: http://www.asp.net/signalr/overview/signalr-20/hubs-api/hubs-api-guide-net-client#callserverThis is what I have: _hubConnection = new HubConnection(_baseUrl); // “http://localhost:3806″_hubProxy = _hubConnection.CreateHubProxy(“AppHub”);_hubConnection.Start().Wait();The hub lives inside of the same project – it’s an MVC application with forms authentication. I can never get pa

  • Cshift3iLike
    ssl websocket signalr
    I’m getting 500 error when running SignalR on secure websocket when running on IIS Express. Site is running on localhost:44300 with default cert. It works just fine with longPolling.When changing to webSockets, I’m getting following error:WebSocket connection to ‘wss://localhost:44300/signalr/connect?transport=webSockets&connectionToken=’ failed: Unexpected response code: 500 If the error is due to self-signed cert, how do I disable it with SignalR and websockets?Or could it be caused by so

  • ElHaix
    iis-7 configuration signalr
    I have a SignalR application running in production, where the enter code here Requests Current value exceeded 5000, rendering a 503 Service Unavailable error. So I updated the Aspnet.config with the following to increase the Requests Current value<?xml version=”1.0″ encoding=”UTF-8″ ?> <configuration><system.web><applicationPool maxConcurrentRequestsPerCPU=”20000″ maxConcurrentThreadsPerCPU=”20000″ requestQueueLimit=”20000″ /></system.web><runtime><legacyU

  • Sant14
    asp.net visual-studio-2012 signalr
    I am trying to create a chat application but after successful build of the web app its catching an exception when i am passing the paramaters for chat.The exception is0x800a139e – JavaScript runtime error: SignalR: Connection must bestarted before data can be sent. Call .start() before .send()The screen shots are attached here

Web site is in building