The Final Weekend!

Well it’s (just about) Friday 7th June! That means only three days before I start work. In this weekend I will be:

  • Returning home from the visit to my mum’s house.
  • Moving house
  • Setting up my new room and getting settled
  • Very excited about starting work

I’m not quite sure how the first few days will pan out, I don’t know if it’ll be an induction or straight into work and learning the ropes, but regardless I think I will document my first week on my blog – in rough detail. Just to help give others the idea of what I found my first week in a graduate software developer role to be like – obviously Synectics Solutions won’t represent every companies initiation but hopefully it will give others an idea.

Staff Awards

Well I’ve officially finished my Student’s Union Job at the Leek Road Venue. To celebrate the end of the academic year we had a big staff party last night and I was awarded three Staff Awards! Thanks guys!

LRV Staff Award - Hardest Worker

Hardest Worker

LRV Staff Award - Funniest Member of Staff

Funniest Member of Staff

LRV Staff Award - Best Day Shift Staff

Best Day Shift Staff

Website Simplification

I wasn’t happy with the theme I was currently using for my website, I wanted something a lot simpler and much more to-the-point; so at the time of writing this I’m using the stock template Twenty Twelve; I think having a simple design helps focus on the content a lot more and makes the job of maintaining the site a little easier! Hopefully I’ll be posting more now I have a little motivation!

Employed!

From 10th June 2013 I will be working as a Software Developer in Newcastle-under-Lyme, Staffordshire; I’ve been offered a job at a very reputable company not far from where I currently live, I’m really looking forward to the opportunity and hopefully I’ll be able to share some knowledge from a graduates point-of-view of starting a job as a Graduate Software Developer.

I’m also very close to finishing University now, with just one presentation to go on Monday 13th May, and just two more shifts at work at the Student’s Union. A lot of change will be happening in the coming months but I’m very excited!

A Couple of RESTful WCF (Hosting on IIS) Solutions

 

I’ve started working on WCF for my final year project this week, in the process I encountered a few rather unhelpful issues with IIS and WCF:

When I navigated to my newly created web service I was confronted with the following error message:

The type ‘SMS.Service1′, provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The type ‘SMS.Service1′, provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the
origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidOperationException: The type 'SMS.Service1', provided as
the Service attribute value in the ServiceHost directive, or provided
in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations
could not be found.] System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +51530 System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +1461 System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +44 System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +651 [ServiceActivationException: The service '/SMS/Service1.svc' cannot be activated due to an exception during compilation.
The exception message is: The type 'SMS.Service1', provided as the Service attribute value in the ServiceHost directive,
or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found..] System.Runtime.AsyncResult.End(IAsyncResult result) +688590 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +190 System.ServiceModel.Activation.ServiceHttpModule.EndProcessRequest(IAsyncResult ar) +310694 System.Web.AsyncEventExecutionStep.OnAsyncEventCompletion(IAsyncResult ar) +94

Now as far as my source code was concerned everything was fine, my namespace and references were perfectly in order after several double checks; after hours of googling I finally discovered the solution – shockingly simple, all I needed to do was change the Virtual Directory in IIS into a Virtual Application:

Go to IIS Manager -> Expand your site -> Right Click Directory containing Web Service -> Select Convert to Application
IIS Screen Shot 1 - Changing a Virtual Directory into an application.

IIS Screenshot 1 – Changing a Virtual Directory into an application.

Now being new to this I just clicked “Ok” on the following screen; unfortunately this produced the following error when navigating to the web service:

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized attribute ‘targetFramework’. Note that attribute names are case-sensitive.

Source Error:

 

Line 2: <configuration>
Line 3: <system.web>
Line 4: <compilation targetFramework=”4.0″ /> Line 5: <customErrors mode=”Off” />
Line 6: </system.web>

—-

Fourty or so minutes of further googling uncovered the solution to this: I needed to set the Application Pool setting for the application to ‘ASP.NET v4.0′ – rather than the default 2.0; there are two ways to do this:

1. If you have not converted your virtual directory into an application:

Follow the same process as above, but rather than just clicking ok, click the “Select…” button and choose “ASP.NET v4.0″ from the drop down list shown:
IIS Screenshot 2 - Changing App Pool - Before Conversion

IIS Screenshot 2 – Changing App Pool – Before Conversion

2. If you have converted your virtual directory into an application:

On the right hand pane of IIS Manager after selecting the Virtual Application, click “Basic Settings” and adjust the application as shown in the previous screenshot above.
IIS Screenshot 3 - Basic Settings

IIS Screenshot 3 – Basic Settings

After completing this stage and accessing the web service once again, everything worked perfectly! Only took a good three hours to find the causes!

 

Database Administration and Management – Poster Links

For one of my final year modules I have had to create an academic poster on the title:

“Any decent DBMS should be able to handle multimedia so the concept of a ‘Multimedia Database’ is not sensible.”

Below is a download link for the poster I produced, plus direct links to the reference articles used on the poster.

Poster Download Link

Click HERE to download the poster.

References

Tech-FAQ

Northumbria University – Multimedia Databases

Multimedia Database Applications: Issues and Concerns for Classroom Teaching

Multimedia Databases—Seminar Report

Busy, busy, busy!

Well the final year of my degree has definitely set in, I’ve never been so busy in my life. Being a team leader at work and having a lot of coursework on lately I’ve not had a chance to keep the site up to date, hopefully I will be able to start blogging again soon but for the moment it’s just not feasible. I’m having a -mostly- good semester so far, grades seem to be good, and that’s what counts. I’ve been using JSP for one of my modules this year and absolutely LOVE it, I’ve always been a fan of PHP but JSP has just blown me away, the functionality it has is so powerful and the integration between JSP and HTML is outstanding; hopefully I’ll have more opportunities to use it in the future!

I’ll leave things there as it’s very late (or very early, depending on your outlook) and I still have a fair bit of work to do, writing this much could probably be considered procrastination!

Andy