The system cannot find the file specified using System.Diagnostics.Process.Start #askjacace

Hello dear readers,

Recently one of my colleagues asked me the following question:

When the following line is executed from a Web Application in Visual Studio works alright:

System.Diagnostics.Process.Start(@”[MappedNetworkDrive]:\[Folder]\[FileWithoutExtension]”);

However, when it is invoked in the production server it fails with the following message:

[Win32Exception (0x80004005): The system cannot find the file specified]
   System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo) +614
   System.Diagnostics.Process.Start() +56
   System.Diagnostics.Process.Start(ProcessStartInfo startInfo) +49
   System.Diagnostics.Process.Start(String fileName) +31
   Recomat.Tablero.Button1_Click(Object sender, EventArgs e) +10
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

After looking at the code I made my mind and concluded that web applications should not invoke any kind of executable (including: .exe, .bat, ) in that manner. Having that said and IF this application is a simple Proof Of Concept or a throw away work at college then the possible reasons of failure are described below:

(1) The full path is not specified: in this case the problem will be solved by simply adding the file extension (as it occurred to someone else here).

(2) The user account IUSR can’t access the file: in this case simply add read permission to this user account.

Thanks again.

Javier Andrés Cáceres Alvis

Microsoft Most Valuable Professional – MVP

Intel Black Belt Software Developer

Summary of my session about ASP.Net vNext: MVC 6 in Kerry

Hello Everyone,

Last Monday, March 23rd I presented a session about Dependency Injection and REST APIs in the Kerry Technology User Group – Ireland. I’d like to thank you to all assistants and specially to the organizers for making it happen (thanks Pat, Billy, Noel, etc). I couldn’t find a connector (from mini hdmi to VGA) for my computer in the last minute, so I changed the tone of the session from a presentation to a (nearly one to one) discussion, which luckily led us to better interchange of ideas.

The agenda of the session was similar to the presentation I did for the DotNET Spain 2015 but with some updates from the most recent versions of the frameworks. You can see the agenda in the users’ meetup page or in the image below.

ktug_23march2015

Thanks again.

Javier Andrés Cáceres Alvis

Microsoft Most Valuable Professional – MVP

Intel Black Belt Software Developer

Imagine Cup 2015

The Microsoft Image Cup 2015 will take place in Seattle USA, in late July (more information here). This student’s competition has added interesting challenges over the years. One of my favorite ones is the “World Citizenship” challenge and the “Project Blueprint Challenge” which I had the honor to server as a Judge, so I had a first hand view of 11 projects. This competition is about pitching an idea before getting the hands dirty in coding.

I really enjoy this initiative because I was a participant when I was in college and then I became a mentor during the early years of my career. Have a look at the web site and spread the word.

Cheers,

Javier Andrés Cáceres Alvis

Microsoft Most Valuable Professional – MVP

Intel Black Belt Software Developer

My presentation at the Microsoft TUG Dublin on Jan 28

Hello dear readers,

Last Wednesday I presented the MVC deep dive session at the Microsoft Technology User Group in Dublin (remember?). I have some friends that could not make it so I decided to publish the following pictures to share the atmosphere we had in there:

El pase de diapositivas requiere JavaScript.

I also decided to record and make available my presentation in the following video:


The slides that I used are available here.

Cheers,

Javier Andrés Cáceres Alvis

Microsoft Most Valuable Professional – MVP

Intel Black Belt Software Developer

Next .Net event in Dublin – brought to you by Microsoft TUG

mtug_logo

The Microsoft Technology User Group MTUG in Ireland has put together a great session titled “Find out what’s happening with Project K and Deep Dive MVC” for next Wednesday, January 28, 2015 7:00 PM at Microsoft Building 3 in Carmanhall Road, Sandyford Industrial Estate, Dublin.

The session is all about ASP.Next vNext and related topics including:

1) Project k and .Net core.
2) Quick look into commanding MVC.
3) MVC deep dive.

Join and RSVP here: http://www.meetup.com/MTUGD-IE/events/219475033/

The talks will be delivered by Microsoft Most Valuable Professionals Hrvoje Hudo, Philip Bourke and myself so I hope to see you there!

Javier Andrés Cáceres Alvis

Microsoft Most Valuable Professional – MVP

Intel Black Belt Software Developer

One of the best events of 2014 – Intel IDF 2014 in San Francisco

It’s the time of the year when you look back and think about the best experiences of 2014. After thinking for a while I came to the conclusion that the Intel IDF 2014 in San Francisco was one of the best events this year.

The reason why I think like that is because IDF 2014 had a strong focus on IoT and I could experience one of the hobbies of my childhood: play with electronics. I could *build* an alien detector thanks to the Intel Black Belt Developer Program and the Intel Ultimate Maker Space (more info here and here) – check a few pics of my Galileo board in the following gallery:

El pase de diapositivas requiere JavaScript.

I’ll explain in another post how I built the detector using the Galileo board, the Arduino IDE and some sensors. I hope also to write some posts about coding in C++ and booting it using Windows on devices (which is compatible with Galileo Gen 2 by the way, more info here).

Please note that Intel are running IoT roadshows happening around the globe. I’d really enjoy seeing more of these IoT events happening in Dublin and Bogota.

Cheers and happy new year!

Javier Andrés Cáceres Alvis

Microsoft Most Valuable Professional – MVP

Intel Black Belt Software Developer

My presentation about ASP.NET vNext at the Official MTUGD

Hello dear readers,

The official Microsoft Technology User Group in Dublin organized an event for presenting the Microsoft’s open source efforts and to recap and update on the past Connect() event.

The event took place in the Science Gallery in the Trinity College Dublin and around 80 people (out of 140 confirmations) showed up, which is a really good number.

The evening started with an introduction by Niall Moran @niallermoran from Microsoft, then  Andrea Magnorsky @silverspoon presented F# and the different community efforts to make it better. I closed the event talking about ASP.NET vNext.

Finally we had a Q&A slot and we went to O’Neills  in a pure *irish* tradition. There are some pictures of the evening below:

The presentation that I put together for the event is below:

Thanks to the assistants, to the fellow speakers and to Michael Meagher @mmeagher11 and everyone who made this possible.

Cheers,

Javier Andrés Cáceres Alvis

Microsoft Most Valuable Professional – MVP

Intel Black Belt Software Developer

Seguir

Recibe cada nueva publicación en tu buzón de correo electrónico.

Únete a otros 322 seguidores