Amastaneh blog is a discussion site on software development, programming, algorithms, software architectures,software run-time errors and solutions from software engineers who love building great softwares.
November 22, 2005
Connect to localhost
Error: The "Connect to localhost" that want USER/PASS for connecting to localhost
Error: "Connect to the localhost"
Error: "how to connect to localhost"
Error: I see the "You are not authorized to view this page"
Error: I can not "connect to the localhost"
Error: Unable to "connect to the localhost"
Problem:
- If you want to used the Microsoft SharePoint Services (after install) and it needs the password for Connecting to the localhost...
- If you want to load the SharePoint or the other web applications from "http://localhost" and it needs the password for Connecting to the localhost...
- If you are a .NET programmer and have installed VS2005 or VS2003 (with IIS) and the IIS is not at work and it needs password to Connect to the localhost...
- If you are a Web Application Developer and after running a sample project (such as a starter kit from Visual Studio .Net) it needs the password for Connecting to the localhost...
OK ... take it easy because you can remove your problem... You must just set your BROWSER SECURITY for your project or web application ... This is easy...
Solution 1:
- Find a small icon from the right-down corner of Internet Explorer Status bar and click on it. (If you haven’t status-bar ... turn it with View>Status)
- You can see the "Internet Security Properties" and you must click on the "Local Internet" and after that click on "Sites" Button and add your address ... Close and OK and Refresh and Enjoy
Solution 2:
I think that your administrator password is empty ... and the "Connect to localhost" dialog box can not accepted your user name ... OK ... take password for your administrator account...
For setting the administrator password follow below:
- Control Panel>Administrative Tools>Computer Management>"Local User and Group">Users>Right click on Administrator>Set Password
[OR]
- Run>compmgmt.msc>"Local User and Group">Users>Right click on Administrator>Set Password
August 19, 2005
Failed to save settings
Error: Failed to save settings: An error occurred executing the configuration section handler for userSettings/XYZ.Properties.Settings. (C:\Documents and Settings\Administrator\Local Settings\Application Data\amastaneh\XYZ.exe_Url_znuhtk3o00xt5ahfq5tlsmqqiclldnz5\1
I had a big problem with this error because every thing came normal but i had one error on Settings.Default.Save() method.
I think that, You can correct this error from app.config file.
I know that you wanna say this file is OK but i must tell you that i was like you, too.
However, you can test this way.
In this way you can build a sample application and then go to app.config and copy/past some line form first.
You must compare these codes with your uncorrected app.config file.
This is a section of my corrected app.config file.
I had a big problem with this error because every thing came normal but i had one error on Settings.Default.Save() method.
I think that, You can correct this error from app.config file.
I know that you wanna say this file is OK but i must tell you that i was like you, too.
However, you can test this way.
In this way you can build a sample application and then go to app.config and copy/past some line form first.
You must compare these codes with your uncorrected app.config file.
This is a section of my corrected app.config file.
<?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > <section name="XYZ.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" /> </sectionGroup> <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > <section name="XYZ.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> </sectionGroup> </configSections> ....I hope this helps, Be happy.
August 18, 2005
Multilanguage Application
If you want to develope the Multi Language Application with newest Microsoft technology for supporting multi language feature then you can follow below:
New innovations in dot net technologies causes you not to need to add a new form for each language. You can have a form with multi configuration, image, and text … on interface.
Step 1: Insert New Form: Ctrl+Shift+A>WindowsForm
Step 2: Insert New Language: [On Form]RightClick>Properties>Design>Language>Select a new language like(French, Italy, US, Persian and ...)
Step 3: Insert New Language again: more and more...
Step 4: For Changing Languages you can use below
New innovations in dot net technologies causes you not to need to add a new form for each language. You can have a form with multi configuration, image, and text … on interface.
Step 1: Insert New Form: Ctrl+Shift+A>WindowsForm
Step 2: Insert New Language: [On Form]RightClick>Properties>Design>Language>Select a new language like(French, Italy, US, Persian and ...)
Step 3: Insert New Language again: more and more...
Step 4: For Changing Languages you can use below
Thread.CurrentThread.CurrentUICulture = new CultureInfo("fr-FR");
Thread.CurrentThread.CurrentUICulture = new CultureInfo("es-ES");
Thread.CurrentThread.CurrentUICulture = new CultureInfo("it-IT");
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
Thread.CurrentThread.CurrentUICulture = new CultureInfo("fa-IR");PS: this method is compatible with Microsoft .Net Framework 2.0 Beta 2 Compiler but I think that you can use this for old version and newest version of .net resealed.
July 12, 2005
NSIS Error
Error:
Installer integrity check has failed. Common causes include incomplete download and damaged media. Contact the installer’s author to obtain a new copy.
More information at:
http://nsis.sf.net/NSIS_Error
Error:
The installer you are trying to use corrupted or incomplete.
Solution:
run you exe file in CMD mode.
[FileName].exe /NCRC
Solution:
This could be the result of a damage disk, a failed download or a virus.
You may want to contact the author of this installer to obtain a new copy.
It may be possible to skip this check using the /NCRC command line switch (NOT RECOMMENDED)
If you have this error then you can go to Start>Run>cmd (or command for Win98 or ME)
and then go to your destination folder and run your setup (or any exe file) like this:
[FileName].exe /NCRC
for Example:
SharpDevelop_1.1.0.1964MayBetaRefresh_Setup.exe /NCRC
Installer integrity check has failed. Common causes include incomplete download and damaged media. Contact the installer’s author to obtain a new copy.
More information at:
http://nsis.sf.net/NSIS_Error
Error:
The installer you are trying to use corrupted or incomplete.
Solution:
run you exe file in CMD mode.
[FileName].exe /NCRC
Solution:
This could be the result of a damage disk, a failed download or a virus.
You may want to contact the author of this installer to obtain a new copy.
It may be possible to skip this check using the /NCRC command line switch (NOT RECOMMENDED)
If you have this error then you can go to Start>Run>cmd (or command for Win98 or ME)
and then go to your destination folder and run your setup (or any exe file) like this:
[FileName].exe /NCRC
for Example:
SharpDevelop_1.1.0.1964MayBetaRefresh_Setup.exe /NCRC
Subscribe to:
Posts (Atom)

