February 2008 - Posts

I've just published an issue on Microsoft Product Feedback Center about a strange behavior I've found in the last two days. I'm working with Visual Studio 2008, developing an AJAX Enabled application that use massive javascript code. I take advantage of new Visual Studio 2008 intellisense for Javaxript that applies to files using <reference> tags but I saw that using an embedded resource javascript library cause Visual Studio 2008 to lock exclusively the resource assembly and fail during compilation with this error:

Unable to copy file "obj\Debug\ClassLibrary.dll" to "bin\Debug\ClassLibrary.dll". The process cannot access the file 'bin\Debug\ClassLibrary.dll' because it is being used by another process.

I've include a reference to a test project I've prepared to reproduce the issue, so you may download and test the example and possibly convalidate yourself the issue in the .

Steps to reproduce without my test project is:

1) create a solution containing a classlibrary and a webapplication
2) create a embeddedresource.js file in the ClassLibrary and set it to Embedded Resource
3) add the WebResourceAttribute
4) create a referencing.js file in the WebApplication
5) insert a reference to the embeddedresource.js file like this: /// <reference name="ClassLibrary.embeddedjscript.js" assembly="ClassLibrary" />
6) save and close all files
7) open both javascript files
8) run the compilation with CTRL+SHIFT+B (rebuild all)
9) the error happen

Please take a moment to check my sample and please vote it on the feedback center if you get the same behavior.

Test Project: http://blog.boschin.it/download/referencebugtest.zip

Feedback page:

https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=328999

The application I wrote some months ago is now published in the BEST ITA Apps showcase through the MSDN Italy weblog. I put into this application all my knowledge about Silverlight 1.0 and ASP.NET AJAX.

The application has been write to support a realtime monitoring system that works with GPS informations send by the vehicles on a central server. It show the position and the duty of public transportation vehicles, with tools to display races delay and current status.

It has been build using a transparent Silverlight layer on a map, and receive pseudo-realtime data from an AJAX ScriptService. The data is updated every few seconds and the vehicles marker move on the map. The application take advantage of AjaxControlToolkit to give a better user experience where it is necessary to get input from the user, and use silverlight for the rendering of markers, and tracks.

I hope this may be a good example on how to use Silverlight in a real application.

Link: http://blogs.msdn.com/italy/archive/2008/02/05/best-ita-apps-selsystemweb-e-silverlight.aspx

More Posts