July 8, 2009

Fixing another "HTTP Error 500.0 – Internal Server Error" in IIS7

Today I had a problem with IIS7 on Vista while testing and ran into an elusive problem that I thought I'd share the solution to. I created a new Website and a new corresponding Application Pool and started receiving the following error message in the browser when visiting the site: "HTTP Error 500.0 – Internal Server Error"
As usual it was followed by the normal additional error text on the page but nothing useful was there. I found the following two event log entries were also created:

Failed to initialize the AppDomain:/LM/W3SVC/0/ROOT

Exception: System.ArgumentException

Message: Value does not fall within the expected range.

StackTrace: at System.Web.Hosting.IProcessHostSupportFunctions.GetConfigToken(String appId)
at System.Web.Hosting.ISAPIApplicationHost.System.Web.Hosting.IApplicationHost.GetConfigToken()
at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)

followed by:

An error occurred while trying to start an integrated application instance.

Exception: System.ArgumentException

Message: Value does not fall within the expected range.

StackTrace: at System.Web.Hosting.IProcessHostSupportFunctions.GetConfigToken(String appId)
at System.Web.Hosting.ISAPIApplicationHost.System.Web.Hosting.IApplicationHost.GetConfigToken()
at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
at System.Web.Hosting.ApplicationManager.GetAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
at System.Web.Hosting.ApplicationManager.CreateObjectInternal(String appId, Type type, IApplicationHost appHost, Boolean failIfExists, HostingEnvironmentParameters hostingParameters)
at System.Web.Hosting.ProcessHost.StartApplication(String appId, String appPath, Object& runtimeInterface)

Searching Google for this information revealed nothing exactly like my problem and no solutions worked for me. - No it was not permissions!

Creating a fresh new Application Pool, as well as many other small attempts didn't fix the problem either. None of those attempts really made sense anyway, but then again neither does the solution:

Solution

Finally on a whim I tried the following:
  1. Visit the "Internet Information Services (IIS) Manager".
  2. Select the site and choose "Advanced Settings..."
  3. In my case the value for ID is 0.
  4. I changed that to 100 and restarted the site.
Now when I visit the site from a browser everything works fine.

June 26, 2009

Reporting from Russia 2009

I've been here in Акдемгородок for a about a week now and things are good. I've been walking the ~40 minute walk to work each day with a college and I really enjoy that introduction to my day - well at lest the first 30 minutes of it or so :) Great exercise, fresh air, great to be outside for as a part of a daily routine.






I got here with my carrier locked iPhone 3G and luckily it was only two days later when the venerable Dev Team allowed me unlock it with UltraSn0w. Simple, effective, brilliant. And I just love that MMS is working for me here but not for AT&T yet in the US. Not that I even use or need MMS, just that I /can/ and you can't.








Internet connectivity is impossibly bad here for Internet-addicts like my wife and I. In the event that it is working it's incredibly slow. One web page at a time per family please!
It reminds me of Putin's remarks to Michael Dell a few months ago when Michael Dell was asking how US companies can do to help Russia with their internet connectivity. Putin snapped back explaning that Russian's can do it themselves and didn't need any help. At the time I understood Putin's position (still do in a way) and respected him for his pride and command of respect. Now I'm thinking he should suck it up for his people (and me) and get some help in here!

June 12, 2009

Re: How to Fix the Economy

Today I received a message via my personal email about fixing the economy. Recently I have heard many people complain about President Obama's "bailouts" and the way he is handling this situation. In fact I've done some complaining myself about his approach and his strategy in general. However, I don't speak up much because I think the solution is not obvious to anyone and it hasn't been long enough to judge him. Anyway, first the letter I received:


Dear Mr. President:

Please find below my suggestion for fixing America's economy.

Instead of giving billions of dollars to companies that will squander the money on lavish parties and unearned bonuses, use the following plan.
You can call it the Patriotic Retirement Plan:

There are about 40 million people over 50 in the work force. Pay them $1 million each as severance for early retirement with the
following stipulations:

1) They MUST retire. Forty million job openings
- Unemployment fixed.

2) They MUST buy a new American CAR. Forty million cars ordered
- Auto Industry fixed.

3) They MUST either buy a house or pay off their mortgage
- Housing Crisis fixed.

4) Tons more Money they would spend on Medical care and Drugs
- Health care and Medicare not fixed, but better off.

It can't get any easier than that!

Disclosure: I might be over 50.

I'm assuming this was sent in a bit of a tongue-in-cheek manner, but since it was written fairly seriously, I'll reply in the same manner. At first glance it is an interesting proposal. However, I have some concerns:

I doubt it is possible for the federal government to borrow, earn or otherwise obtain forty-trillion dollars (40,000,000 people * $1,000,000 = $40,000,000,000,000).
Paying off mortgages (debt) in HUGE numbers by shifting that burden to all taxpayers is not a solution. It is yet another crisis waiting to happen.
In my estimation the root of the so-called "housing crisis" was caused by overly optimistic valuations of homes based in part by giving too much money to too many people (via low mortgage rates and poor vetting of borrowers incited in large part by the government's involvement via Fannie and Freddie).
Many of the people over fifty probably already have homes and will not need two. A temporary huge influx of cash into the housing market is not likely to make the sector sustainable. Indeed it will drive up house prices and increase sales, but how long will they stay there?

Paying off their mortgage will remove reliable income stream from the financial system: Mortgages. Despite the talk of doom and gloom, careless valuations of mortgages and home prices in the past several years, overall I believe mortgages are a relatively safe investment.

I understand from several respectable advisers that it is often the case that when people suddenly become wealthy they squander the money on lavish parties and unearned payments to anyone for haphazard reasons. Apparently lottery winners offer a good statistical sample of this type of behavior. So this leads me to believe that giving $1,000,000 to a bunch of people will instigate more of this unhelpful behavior.

Now I have been told not to knock an idea unless you have an alternative. So in this area I have only a few: My ideas are to focus on education, small/innovative business and to remain calm in order to take time to make deliberate rational decisions.

Education
As for the auto industry, I don't have much sympathy for the companies. They have been poorly run companies for a long time and they just waited too long to do anything about it. The competition has beat them at their own game. A free market is often a zero-sum game. Unfortunately, that's the deal.

However, the dramatic consequences of those employers not being there should indeed be taken seriously. That doesn't mean the solution is to fund large poorly run companies and hope they will change. That is really not much change. Instead, I suggest we invest in educating and training those people who will essentially be unemployed due to the collapse of most of the American auto industry (keep trying Ford). I think we all want and need those people to have jobs, just not auto jobs. So educate or train them for other jobs that will be beneficial to our community as a whole (and to them personally).


Small Business
Furthermore, as an investor (and as a tax payer issuing a "bailout" to a company, we are just that) I would feel safer investing in other companies. If you think it's a good idea to bailout GM and Chrysler you should be buying their stock? So, do you? Are you?

I don't, I am not. In general I'd feel safer investing in MANY small companies of all kinds rather than a fewer large companies. Off the top of my head and with no research I'd rather see some investment in companies like Tesla Motors, and Zero Motorcycles. These companies are not revolutionary but what they're doing does take ingenuity and innovation that I personally only find in small companies (or small teams). I'm sure there are hundreds and probably thousands more out there that aren't as visible but are at last as innovative and worthy of investment.


Remain Calm
In general it is companies in the pursuit of money that caused the great wealth of this country that has recently been depressed in a relatively small way (I stress relatively). This country remains incredibly prosperous and wealthy compared to generations past and much of the rest of the world. Therefore, we should trust in the greedy capitalist system that brought us to this far, understanding that there will be ups and downs along the way, but we will continue to learn and gradually improving as we proceed. It is not a perfect system but it changes evolves and largely it works. I view our current system very similarly to Winston Churchill's famous statement on Democracy "It has been said that democracy is the worst form of government except all the others that have been tried." That all gives me enough confidence to say remain calm long enough to make careful decisions.


I'm not saying I'm thrilled with the president's moves, but I do think he is smart and that he has surrounded himself with smart people and he has ambitious and genuinely good intentions. We are not yet six months into it with this new guy. The last guy spent eight years digging the hole Obama is trying to climb out of. Lets give him his chance.

March 25, 2009

Pilgrim Shows off ActiveReports with ASP.NET MVC

The other day we had someone ask on our support forums about using ActiveReports with ASP.NET MVC. After spending his day working through a solution for the customer at work
Pilgrim, one of our venerable employees at Data Dynamics / GrapeCity, went home and worked on a screencast showing how to use the ActiveReports WebViewer / WebControl with ASP.NET MVC for everyone else. He has published it at his blog here.


Pilgrim is also responsible for the screencasts for Data Dynamics Reports on our website. I like the one showing how to use Excel from Data Dynamics Reports. If you haven't seen it check it out!

February 17, 2009

Data Dynamics Reports Maintenance Release Leads the Way

The Data Dynamics Reports team at GrapeCity produced a maintenance release the other day.

Version: 1.5.1051.0
Enhancements: 9
Fixes: 43

Read full release notes and download it at http://www.datadynamics.com/Products/DDRPT/Default.aspx#release.

Our teams at Data Dynamics GrapeCity have been working on a lot of valuable stuff internally. Over 2009 one of our goals is to get that great work in the hands of customers more quickly and more often. The DDR team is leading the way with this new release.

With 9 new features and 43 fixes almost entirely driven by customer feedback, I'm pleased with this release and I'm sure our customers will appreciate it too. According to our forums (http://www.datadynamics.com/forums/120875/ShowPost.aspx) customers are already showing their appreciation!

February 12, 2009

ActiveReports Testimonials and Press

GrapeCity and our new team member Sanjeev is helping us do a much better job of getting the word out about ActiveReports and our other products. We have always had many loyal and happy customers and generally did poorly in getting the information out. Some new things you can check out:

A Refined Website: datadynamics.com
The home page and many other subtle but significant improvements are being made to the website at http://www.datadynamics.com . This will remain the primary source of information on the primary source of news and information on the products. We will continue to make improvements here in the coming weeks and months.

Twitter
http://twitter.com/activereports
The constant flow of updates about GrapeCity's US Tools and ActiveReports is online now.
 

ActiveReports Buzz
http://activereportsbuzz.blogspot.com
We're going to start keeping an online blog of community gossip about ActiveReports here.

Press Release: GrapeCity-Data Dynamics Customers Give ActiveReports .NET Reporting and BI Tools High Ratings
In the press release, the following statistics from a recent survey were highlighted:

  • 75% said the .NET reporting features are above average or well above average in their helpfulness to developers.
  • 77% said the overall quality of the .NET reporting components is above average or well above average.
  • 80% said they are satisfied or highly satisfied with the company and its .NET developer tools.
Read the press release at http://tinyurl.com/ARPressRelease-2009-02.


So we have lots of sources of information on the products now, but if you're used to using the the main website for news, continue to do so, as http://www.datadynamics.com will continue to be the primary hub for news and information on the products.

January 20, 2009

Adobe AIR vs MS Silverlight

While I like the Adobe AIR technology, I have the strong impression that MS & Silverlight is beating the pants off of Adobe. I see Silverlight "noise" in blogs, press, etc. constantly, but almost nothing about Adobe AIR. Silverlight is talking about 3.0, Adobe AIR just announced v1.5.

With that said, I've seen several Adobe AIR applications I find useful. In fact, I have three installed (Jott Express, Twirl, AlertThingy) - and I didn't go looking for something related to AIR I just found these useful applications on the web and they a /happened to be/ Adobe AIR. I've never seen anything that was useful from Silverlight. The only reason I have Silverlight installed is because I'm an MS-platform programmer and I'm learning it. So that is a great testament to the technology and maturity of Adobe AIR. It just seems Adobe isn't getting the word out.

I must admit, my blog list and reading list certainly has an Microsoft bias, but I do subscribe to several Adobe/Flash/AIR and generic RIA related blogs. Due to Microsoft's incredible breadth of marketshare and products, I think that is a fact of life and Adobe has to deal with it and should have been prepared to do so. They have to find a way to reach out to the MS-platform programmer community.   

In short, my impression is that Adobe is loosing the PR war with MS Silverlight. They're not loosing it based on technology or even tools (which while inferior to Visual Studio, aren't terrible).    What do you think? Leave a comment, lets discuss...

January 19, 2009

You Might Be a Geek If: Vacation

You might be a geek if you take a vacation to write code.

January 13, 2009

A Blogger in Gaza

There is an Aid worker in Gaza that is writing an online journal that the BBC is publishing. He writes:

I was coming home after visiting a friend at 1130 on Saturday, when I heard the horrific sound of three huge explosions. Then a series of explosions rocked Gaza City. I live in the centre near a number of police buildings which were targeted first.

As I rushed home, I saw the main Gaza police station had been destroyed. Suddenly, another missile hit it again and, along with dozens of people nearby, I ran away. When I got home I found almost all the glass from the windows and doors was shattered due to the explosions.

I ran to the Shifa hospital to check on casualties and was shocked by the number of cars and ambulances bringing in the injured. There was panic everywhere.

In less than half an hour, the hospital was full of casualties. There was no space for more, yet the casualties kept coming. At the hospital I saw something I have never seen before - dead bodies outside on the floor. Everyone in Gaza has a relative or a friend killed or injured after these attacks.

Islamic Relief is working hard to get medical aid to the hospitals, which desperately need disposable equipment. We spoke to the committee at the Shifa Hospital to find out what's needed. We are now supplying it with syringes, sponges, surgical gloves and other such equipment.

Hospitals are so overwhelmed that they are now using normal beds for intensive care patients. Everything is so desperate. Only 50% of the ambulances are working. If the attacks go on for another week the doctors are going to have to start using old and traditional ways of treating the injured - that means no anaesthetic. We have to get new supplies in!

For two years, Palestinians in the Gaza Strip have been witnessing daily crises over shortages of food, fuel, health services in addition to severe poverty and unemployment. We have seen the closure of crossings and the banning of patients from travelling for medical treatment.

All these restrictions have slowly sucked the life out of Gazans and it's no exaggeration when I say that trying to live daily life is a struggle. But Gaza has not witnessed anything like this onslaught since 1967.

I used to describe what was going on in Gaza as a catastrophe, now I have no words. I received news that the brother of one of my work colleagues has been killed in the attacks. They had been looking for him all day and discovered him under the ruins of a destroyed building.
That was written on December 27, 2008. He has written fourteen entries since then and each progressively more terrifying and saddening. In the latest entry he writes: "I sometimes wonder if there will be enough space to bury the dead."
Deaths
  • Palestinians: 925
  • Palestinian Civilians: 485
  • Israelis: 13
  • Israeli Civilians: 4
How to Help
Actually I'm not sure if anyone can actually help the Palestinians, the world is watching a very public massacre unfold by one of the most powerful and well armed militaries in the world against a group of people who hardly have a military at all, yet it is not stopping it. However, one might be able to help suffering people by donating to a civilian aid via a highly rated charity such as Islamic Relief USA at http://www.irw.org/campaigns/palestinecrisis08 .
I don't know a whole lot about Islamic Relief USA, but they appear to be very reputable with five consecutive years of being a 4-Star Rated Charity by Charity Navigator. Their is also an extensive wikipedia article on the organization at http://en.wikipedia.org/wiki/Islamic_Relief which doesn't state anything bad.

January 4, 2009

Mozilla: Please Enable Firefox to be Downloaded on Windows Server 2008

Has anyone else noticed it is next to impossible to download Firefox from mozilla.com with Internet Explorer 7 on Windows Server 2008?

The process goes something like this:

  • Visit mozilla.com
  • Click on link to download Firefox for Windows.
  • Get a dialog that reads: "You are attempting to download a file from a site that is not part of your Trusted Sites blah, blah, blah..." and it lists the site as http://mirror.yandex.ru (for example, your site might be different).
  • So you close the dialog and add http://mirror.yandex.ru to your trusted sites list.
  • Then you go click on the same link to download Firefox that you clicked on before and...
  • "You are attempting to download a file from a site that is not part of your Trusted Sites blah, blah, blah..." Only this time it lists site is something different (in my case it was http://ftp.sunet.se).
What's the Problem?
The problem is caused entirely mostly by mozilla. They are "magically" rotating the mirror. Presumably this is in case the visitor clicked on a download link and it didn't work or was slower than the visitor could tolerate (though I've never had that problem).

What is Mozilla Supposed to do?
Instead of rotating the link only when you click on the download link, they should rotate the download link embedded in the main Mozilla.com page. This way the download link is the same for the user if he clicks on it a second time. Adding another link to try a different download with something like "Download not working? Click Here", that would just refresh the page, and thus rotate the download link again would still help out someone who got a poor download server.

This way, once he has added the site to our trusted sites we could get the same site -now a "Trusted Site"- again and download it. It would also be nice if Mozilla gave Windows 2008/IE7 Specific instructions to the user about using the Trusted Sites mechanism, as this certainly is not intuitive for everyone. I mean hasn't anyone at Mozilla tried to download Firefox with Internet Explorer 7 on Windows Server 2008? I don't remember whether this happened to me on Vista or not, but I sure hope not, I'm sure someone at Mozilla at least tried that and it worked. (It does work, right?)

Enough Already, How Do I Fix It?
So, enough with the Mozilla rant, to download firefox with IE7 on Windows Server 2008, take the following steps:

  1. Right-Click on Internet Explorer in the start menu and select "Run as administrator".
  2. Once Internet Explorer opens, click on the Tools menu (in the upper right of the browser), and select "Internet Options".
  3. A dialog should appear, and you should select the "Security" tab.
  4. On the Security Tab, Uncheck the "Enable Protected Mode (requires restarting Internet Explorer)" checkbox.
  5. Select OK to close the dialog, close all instances of Internet Explorer.
  6. Open another copy of Internet Explorer (it is not necessary to select "Run as administrator" for this step) and select "Internet Options" from the "Tools" menu again to open the Internet Options dialog.
  7. Select the Security Tab again.
  8. With "Internet" selected in the box at the top of the security tab, click the "Custom level..." button. This should have opened the "Security Settings - Internet Zone" dialog.
  9. Scroll way down in this "Settings" tree until you see an option for "File download" and ensure select the Enable option below it.
  10. Press the OK button to close the "Security Settings - Internet Zone" dialog, and press OK on the next one to close the "Internet Options" dialog.
  11. Now navigate back to http://www.mozilla.com in IE (you can now even ignore the popup that might notify you about blocking content from http://www.mozilla.com, just press the Close button).
  12. You should see a link to download Firefox for Windows. Press it and it should prompt you normally to download files.
Now you can return to Internet Explorer's Internet Options dialog and check the Enable Protected Mode checkbox again. Apparently Microsoft thinks that is a good idea. Don't fret too much, if you do go back and enable Protected Mode you will still be able to download files because Protected Mode doesn't prevent that, it just prevents you from modifying the Internet Zone as we did in step nine above.

As always, I hope this is helpful to someone.

December 10, 2008

Wikipedia's Value

How valuable is wikipedia to you? What would you pay to have it back if it went out of business?

Don't tell me, tell wikipedia:


Wikipedia Affiliate Button

November 19, 2008

Well that Shatters One of My Preconception

The thought of creating some visualizations based on this data has crossed my mind in the past. I never would have thought the results were so dramatic. Coincidence? Luck? You decide. Go check this out: Bulls, Bears, Donkeys and Elephants

October 6, 2008

Huge Discount on Data Dynamics Reports & Analysis

Interactive Data Analysis

This summer we released Data Dynamics Analysis. Analysis is something like DynamiCube's pivot table, our original Business Intelligence tool that we started out with at Data Dynamics back in 1996.


With Analysis, the focus is on interactivity and visualization features. You can instantly drag & drop your way through a plethora different charts looking for trends or anomalies in your transactional data. In addition to a completely interactive numerical pivot table, the charts are both easy for an end user to explore and completely interactive. Analysis has some great screencasts to show it to you in action, and with Analysis, seeing it in action is the best way to understand these interactive features that make it unique, so check out the screencasts.

The Most Feature-Rich Reporting Package

Data Dynamics Reports was our new product released last year. Data Dynamics reports is a great tool for high-end, feature-rich reporting on the web. With things like sparkline, bullet chart, calendar, barcodes, data visualizers, KPIs, master reports (think asp.net master pages for reporting), PDF, HTML, XML, and Excel rendering all built in makes Data Dynamics Reports it the most feature-rich reporting package out there.

If you haven't had a chance to check it out, it has a ton of great screencasts from our PM and support team. Please check those out too!

A Powerful Combination

Data Dynamics Analysis and Data Dynamics Reports are a powerful combination. Executive managers need a way to explore data in new ways looking for new opportunities. Analysis gives them a way to do that with it's powerful interactivity features. Mid-level managers need a way to analyze business data (sales numbers, productivity, etc.) in a consistent way to make sure running day-to-day operations are running properly. Data Dynamics Reports offers the most feature-complete reporting package on the market to do just that.


We've decided to offer a fall pricing promotion through November 30 to allow you to get both of these powerful products for only $899! That's an extraordinary price at over 60% off the normal price. We're offering this price for only a short time, so go to our site for more details check out our site and take advantage!

August 11, 2008

More photos from Tokyo

More pictures from Tokyo...

Tokyo: Day 2 (Click to see more)

August 9, 2008

Reporting from Japan

I'm in Japan for the next several days on business and wouldn't you know on the first day my camera stopped working. Luckily, it's not hard to find a replacement here. I went through Beijing airport on the way here and managed to take some photos with my iPhone there:

Beijing Airport on the way to Tokyo (click on photo for more)


The rest are from Japan. I haven't slept in a couple days now so I can't write much now but I wanted to get the photos started at least. So far I've mostly been eating. What great food! A new refreshing palette of tastes. Remind me to tell you about the food and the taxi procedure :)

Tokyo: Day 1 (click on photo for more)