Feeds:
Posts
Comments

Prashant Vanarase.
August 21, 2009

Dear Friends,

Recently I encountered very common problem and surprisingly enough didn’t found solution on Google search, so I just thought of sharing my experience with you.

C# .Net First web site problem.

Environment:

Windows XP (SP2)
VS2008

I created my first website using C# .net and published the same. When I tried to access the same from my local machine using following links it worked perfectly.

http://MyMachine/FusionChart/default.aspx
http://localhost/FusionChart/default.aspx

Problem:

But when I tried to access my website on another remote machine on intranet using http://MyMachine/FusionChart/default.aspx it unable to open my website’s default.aspx

After long browsing I got error message “404: Page not found”

I tried almost everything like

-          Directory permissions
-          IIS settings
-          Port settings

But still not able to resolve the issue.

Solution:

Finally I tried following steps and everything worked perfectly

Click Start, click Run, type ncpa.cpl in the Open box, and then click OK.

Right-click the network connection that you want to configure, and then click Properties.

Click the Advanced tab, and then click Settings.

Click the Advanced tab.

Click Settings for the network connection.

Use one of the following methods, depending on your situation:

  1. If IIS is configured to use port 80, click to select the Web Server (HTTP) check box. Verify that the name or the IP address is displayed correctly in the Service Settings dialog box, click OK, and then click OK again.
  2. If IIS is configured to use a different port, click Add. In the Service Settings dialog box, specify the settings and the port number that you want, click OK, and then click OK again.

Click OK.

Thanks to:

  1. Ms. Gauri Vaidya
  2. Mrs. Madhuri Gokhale

In RegEdit, go to HKEY_CURRENT_USER\Software\Microsoft\Windows Desktop Search\DS and set “ShowStartSearchBand” to 0, and you’ll get the default search behavior back.

And while you’re at it and poking around in the registry, you might as well go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ContentIndex and set FilterFilesWithUnknownExtensions to DWORD with the value of “1″ in order to enable full-text searching of files (like code!) that Explorer by default skips over.

http://www.ddj.com/dept/windows/184416740

August 06, 2002

Using Managed Code from MFC

Chris Sells

Update your legacy MFC apps in .NET without rewiting your older code by using Managed C++. Managed C++ allows existing C++ code to bring in and expose managed types that are compatible with .NET.