Wednesday, August 27, 2008

Visual Web Developer 2005 Express Edition is waiting for an internal operation to complete. If you regularly encounter this delay during normal usage

Some peoples may encounter this problem during the usage of Visual Web Developer. According to some expert opinions it waits for some Remote Procedure Call to Complete. But nobody could say which one. In my experience I noticed, it related with Internet Information Services. To VWD to get back to normal running do the following steps.
Open the Task manager. Close the inetinfo.exe process. Then wait a moment the VWD will start responding. To rectify the problem completely, try uninstall the IIS and reinstall. If the problem not solved when you stop the inetinfo.exe process try uninstall and reinstall IE 7.

Friday, August 22, 2008

The file has not been pre-compiled, and cannot be requested

Problem
I had a very serious problem a few years back. We created a new project based on net 2.0 on C#. It worked perfectly on my local development system without any problem. We deployed it on production server. After the deployment, when we tried to access some of the pages it thrown the error. Some of other pages loaded without any problem.
The file 'default.aspx' has not been pre-compiled, and cannot be requested.

The site itself was compiled before deployment. We tried the pre-compiled files in our local system( we tested only with non complied files). Then we could access almost every pages including the pages which created problem in deployment server. So we decided it is the problem with the deployment server. We contacted the hosting company, they finally concluded nothing wrong with the hosting.

Into Solution
Actually our project was converted from classic asp to asp.net. Some of the com components used in the old site still included in the new project for time saving. But that was the problem. We refer to some com dll files in the project. Those dll files were in the system folders of our local development system. So it worked perfectly in our local system. But when we compiled and deployed in the remote system, the dll files missed. That created the problems, but the error message was bit confusing. Only the pages we used the com components thrown errors and pages without reference loaded without any problem
Solution for "The file has not been pre-compiled, and cannot be requested"
It is not easy to install the missing "com" components in the deployment server. So we just copied the .dll files into the "bin" folder of the deployment server. Now it is working without fail.
Conclusion :-
A lots of error message from .net creating confusion everywhere. In the above case actually the problem was missing "com" components which was referred through web.config file. But raised an error message connected with compilation .







Tuesday, August 19, 2008

Call a method in an aspx page it runs perfectly fine on development machine when deploy it on the production server it throws an error BC30451

I would like to share some of my experience with code. First post is here.

call a method in an aspx page it runs perfectly fine on development machine when i deploy it on the production server it throws an error BC30451 type not declared



Last week I had a strange experience. I am using Visual Web Developer for creating web applications. I was working for one of our clients. I added some new functionalities to web application and put those methods in a class file of App_Code folder. Methods were declared as public and create new instance of that classes in aspx pages. So I could access those methods from my aspx pages. It worked perfectly form my local development machine. But when I tried to deploy it on the production server it throws some error "BC30451 type not declared" at the point where I created the instances of the classes.
I tried every possible methods to figure out the exact cause of the problem. First i put the class inside a namespace because it was not like that. But it made any change in the error

Finally I got the solution.
My web application on the production server resides inside a subfolder of "httpdocs" and the default App_data folder and everything in the root of "httpdocs". I had created the App_Code folder inside that subfolder and copied the class files there.
To rectify that problem I simply create App_code folder in the root of "httpdocs" and copied class files to there. Now it is working without fail.

I think the IIS looking class files for the root of the folder which created as an application. In this case "httpdocs" was the created application folder so IIS will always look there for class files, if it is not there will thrown as error message.

Wednesday, May 14, 2008

Fedora vs Windows

This is not a comparison, I am not intentional to support any company, but all are from my experience.


Last Month I installed fedora Core – 5 at my pc running Win-XP, so it is now dual boot mode. I could operate both OS. I have been working with windows platform for the last 10 years or so. So I am pretty much familiar with windows. The reason behind my Fedora install was to just study about new OS and explore something new and innovative in it.


I would like to have music in my system when I work around. The first problem I faced with Fedora in this matter. I have a collection of music mainly in MP3 format. But when I tried to play my MP3 files with Fedora, I understood, it not just works there, you have to have some extra software enhancements there. The system itself has Totum installed, I went through some web sites, and they showed some steps for how to play MP3 in fedora. But after a month’s trial, I just put aside. So I can’t play my DVD’s there as they not support or promote DVD.


The second problem was when I tried to have a web server in it. Httpd was there, but could not start that and also found no error report, why it is not starting when I tried to start it. After days research, I found, the reason shows at the startup screen, but you have to be too much vigilant to grab the message in a fraction of second. It was the problem in the config file. But still it can’t display a single page as it always thrown forbidden error message. But I know Apache is the best web browser with Linux based platforms. But as people know, how much easy to start an IIS on windows and can easily figure out problems with the error messages. Sure there is number ways for an experienced hand in Fedora.


Another problem when I try to install my network card with Fedore, it automatically detected and configured with my XP, but not in Fedora. So I went through a number of discussion forums and web sites. Everybody have too much to say, but nothing understandable for a nascent like me. Them said re-compile your core and just put some text there and some test here , bla bla bla. I even downloaded the Linux based driver for that card, but I didn’t get how to install in the system. The network card still there uninstalled.



From my experience I reached some conclusions

  1. I have a book purchased from some book shop, now one of my friends want read this book, can I give to him, sure you can(even the copyright act in some countries may not allow to lend books or movies). But is it possible to make the copies of that book and give it your friends with or without any charges?
  2. There is a house and it have a number of doors which all locked from inside with a number of locks, but nobody other than the company made the lock knows the exact specifications , vulnerabilities of the lock and how strong it is. There is one another house which also have a number of doors which all locked from inside with a number of locks, but so many people know the exact specifications , vulnerabilities of the lock and how strong it is and even one person want to know all those, it is still available there. The question is which house has the chance to get more successful attacks, answer is obvious - Second house, but in reality The First type of house get more successful attacks. Do you know, what is the reason?, because every 8 out 10 houses are in the first category and all them using the
    same company lock. So peoples get more chances for trial and error for the first type of houses. And the second types of houses survive because of the rare availability and targeting is not coast efficient. But some people may think second type of houses are more secure and first is not.
  3. If you can buy
    something free of coast, and there are a number of volunteer - unpaid technicians for your after services. It is ok the volunteer technician is always there to help you, but in cases the technician delayed your service call, or giving bad service or even denied service. You can’t complain as long as you are not paying for what
    you are getting.