Moving VS 2008 Web Apps to IIS 7

Moving off of Windows XP and over to Windows 7 on my work computer has been trying. My latest problem has been getting a Visual Studio 2008 web application to run. Every attempt to run the application in Debug mode resulted in the following error message:

Unable to start debugging on the web server. Check for one of the following.1) The application you are trying to debug uses a version of the Microsoft .NET Framework that is not supported by the debugger. 2) The debugger has made an incorrect assumption about the Microsoft .NET Framework version your application is going to use. 3) The Microsoft .NET Framework version specified by you for debugging is incorrect.Please see the Visual Studio .NET debugger documentation for correctly specifying the Microsoft .NET Framework version your application is going to use for debugging.

To correct this issue, I ran the IIS 7.5 Manager and located my web app on the tree. I right clicked it and selected Manage Application/Advanced Settings.

Then I set the Application Pool to ASP.NET V2.0 as shown below. This fixed the problem.

Share

Mobile App Resources

A list of web sites with resources for mobile application development. If you have cool resources to add to the list, please post them in the comments.

Design Tips

Mobile UI Design  Patterns

Matt Legend Gemmell:  iPad Application Design

Development Tools

Corona SDK

Mobile Browser ID (User-Agent) Strings

 

Magazine Articles

Infoworld: Escape the App Store: 4 ways to create smartphone Web apps

Infoworld: 5 simple rules for creating mobile-savvy websites

Service Providers

NetBiscuits – uses cloud technology.

 

Share

Internet Explorer Rendering Problems

Where I work, we ‘officially’ support Internet Explorer. In my web applications, I try to support Firefox, Opera and Chrome as well. It is not too hard these days. But I did find one issue recently with IE. On my local development box, IE was rendering the web site one way, but when I deployed it to our intranet, I was seeing a different (and less attractive) look.

Continue reading

Share

Free Icons

If you need a really nice, large set of free icons to use in your web or desktop applications, I recommend the Fugue set. As of November 30, 2009, it has 2360 icons, includes the Adobe Photoshop PSD files in case you need to modify them and they are free if you provide a link back to the site from your application, or you can pay a fee of $50 and skip the link back.

Below is a sample of the icons:

Share

Free Tools for Developers

Here are some free tools (mostly open source) that I use to help in my job as a software developer.

Winmerge – an Open Source differencing and merging tool for Windows. WinMerge can compare both folders and files.

PSPad — this is a nice code editor.  Notepad++ is great as well.

FileZilla — a great, free, open source FTP program. Supports SFTP as well.

GIMP — It’s not photoshop, but if you are working on graphics for use in an application, it’s more than adequate.

Microsoft FXCop — this application analyzes managed code assemblies (.NET Framework common language runtime) and reports information about the assemblies, such as possible design, localization, performance, and security improvements. You can configure which rules to have it report on. I turn many of them off. The latest version has a glitch that keeps telling me there is an update available even though I’m running the latest version.

Gadwin Printscreen — good program for grabbing parts of the screen for making documentation. Also, if your mouse cursor is visible, it will be captured as well. That can be handy. There is a pro version, but the free version does all that I need.  (Direct download link for free version.)

Syncback (free edition) — Good basic backup program. I used to use it to back up source code files to my web host through FTP. Now I use it to back up my (home) file server every day.

Fiddler 2 — Not sure if your headers are looking correct? This web debugging tool can help. Works in IE and FireFox and others as well.

Stylizer Basic — This CSS editor is unique and very cool. The free basic version is really crippled, but you get a trial period with full functionality. I’ll actually probably buy the full version.

OpenOffice.

Image via Wikipedia

OpenOffice.Org (for PDF documentation creation) — Since compiled help files (.CHM) seem to have fallen out of favor, I do my online help as PDF files these days. OpenOffice.Org Writer is great for this. In fact, you can even create PDFs with forms that can be filled out. No need to buy Adobe Acrobat.

Developer Xpress CodeRush Xpress — According to their web site: CodeRush Xpress is freely available to all Visual Studio 2008 developers and offers a comprehensive suite of tools that enable you and your team to simplify and shape complex code – making it easier to read and less costly to maintain.

SSMS Tools – an Add-In (Add-On) for Microsoft SQL Server Management Studio and Microsoft SQL Server Management Studio Express.

What free tools have you found? Post comments below.


Reblog this post [with Zemanta]

Share

System.Data.OleDb.OleDbException: Unspecified error

815492_30356691If you are getting an error like the one below in your ASP.Net application when trying to open an Excel or Access file, you may need to reset IIS.

System.Data.OleDb.OleDbException: Unspecified error
at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup) at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.OleDb.OleDbConnection.Open() at

To reset IIS:

  • Open a command prompt on the box running IIS.
  • Issue the command: iisreset

My situation was that I had code that had previously worked, but it just stopped working one day with the error mentioned above.

Hope this helps.

Share

Visual Studio bug: asp:UpdatePanel could not be set on property ‘ContentTemplate’

So, I ran the Secunia Online Vulnerability inspector on my work PC and noticed there were over a dozen missing patches. I ran WindowsUpdate and had to reboot.

After rebooting, I reloaded Visual Studio 2008 and my ASP.Net project that I’m working on. I noticed that the designer was unable to render on any of my pages that had an updatePanel and the error I got was:

asp:UpdatePanel could not be set on property 'ContentTemplate'
Continue reading

Share

Keeping a Session Alive

waveformIt seems like such a simple thing, I’m amazed it’s not part of Microsoft’s whole webform architecture. I would like to keep a user’s session from timing out as long as he/she is still on the web page. Just ping the server, so to speak, periodically, to let it know that this session is still being used, even if the user has gone to lunch, gotten interrupted by a phone call or coworker, etc.

I’ve tried numerous ‘solutions’ that I have googled (jQuery heartbeat plugin, other javascript based things, AJAX controls, etc), but the only one I’ve gotten to work, is also about the simplest one I could find. It’s by Thomas Kurek and posted on Code Project.

http://www.codeproject.com/KB/session/Session_Defibrillator.aspx

So far, it has kept a session alive for over 16 hours. Keeping my fingers crossed that this one will be ‘the one’.

Share