The requested name is valid, but no data...

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
4/5/2006 10:55:50 AM
Gravatar
Total Posts 5

Re: The requested name is valid, but no data...

Hi Everyone,
I’ve found mojoPortal as the most suitable CMS for my needs. I try to install this software on VirtualPC on Win2003 – for a test purpose. And what I’ve got:
The requested name is valid, but no data of the requested type was found

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.Sockets.SocketException: The requested name is valid, but no data of the requested type was found

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Stack Trace:
[SocketException (0x2afc): The requested name is valid, but no data of the requested type was found]System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6) +554
System.Net.Dns.Resolve(String hostName) +162
Npgsql.NpgsqlClosedState.ResolveIPHost(String HostName) +37
Npgsql.NpgsqlClosedState.Open(NpgsqlConnector context) +130
Npgsql.NpgsqlConnector.Open() +129
Npgsql.NpgsqlConnectorPool.GetNonPooledConnector(NpgsqlConnection Connection) +158
Npgsql.NpgsqlConnectorPool.RequestConnector(NpgsqlConnection Connection) +40
Npgsql.NpgsqlConnection.Open() +100
mojoPortal.Data.NpgsqlHelper.ExecuteReader(String connectionString, CommandType commandType, String commandText,
NpgsqlParameter[] commandParameters) +109
mojoPortal.Data.dbPortal.FriendlyUrl_GetByUrl(String HostName, String FriendlyUrl) +342
mojoPortal.Business.FriendlyUrl.GetFriendlyUrl(String hostName, String friendlyUrl) +15
mojoPortal.Business.FriendlyUrl..ctor(String hostName, String friendlyUrl) +9
mojoPortal.Web.SiteUtils.RewriteUrl(HttpApplication app) +121
mojoPortal.Web.UrlRewriter.UrlRewriter_BeginRequest(Object sender, EventArgs e) +128
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
MySQL 5.0.19


Please help me to solve this problem.

Sincerely,

Tomasz

4/5/2006 11:07:59 AM
Gravatar
Total Posts 18439

Re: The requested name is valid, but no data...

Well the error is happening when trying to connect to postresql. The error indicates it can resolve the host name of the database server in your connection string to an ip address but the machine is not allowing the connection for some reason or other.

Make sure there is a postgresql database on the machine idnetified in your connection string and consider whether a firewall or something else might be blocking the connection.

You might try pinging the ip address of the db server from inside the virtual win2003 machine and see if it sees that machine on the network.

Hope it helps,

Joe
4/5/2006 11:32:40 AM
Gravatar
Total Posts 5

Re: The requested name is valid, but no data...

Joe, thank you.
Now, I’m sure where is the problem. I have a question about the web.config. There are  keys connectionString for MySql and etc. In the documentation I’ve found what to change in connectionString but should I keep all the other keys beside MySQL?

Sincerely,
Tomasz

4/5/2006 12:33:51 PM
Gravatar
Total Posts 18439

Re: The requested name is valid, but no data...

Each data layer uses its own connection string and doesn't know about the connection strings for the other data layers so there is no need to remove anything. You do need to make sure the connection string for MySQL is correct but the reason its trying to use postgresql is because the version of mojoPortal.Data.dll in your bin folder is the one for postgresql.

If you want to use MySQL, you need to download the MySQL Data layer from the download page and replace the mojoPortal.Data.dll in the bin folder with the version for MySQL. You also need the other dlls in the bin, MySql.Data.dll and sharpziplib.dll

When working with the source code in VS, you just change the project reference to use whichever data layer you like. The above is the instructions for release files which is what I think you are using.

Hope it helps,

Joe
4/6/2006 9:44:00 AM
Gravatar
Total Posts 5

Re: The requested name is valid, but no data...

Joe,
Thank you very much. Everything  works just fine. Now, I’ve started to customize the portal to my needs.
Sincerely,
Tomasz
You must sign in to post in the forums. This thread is closed to new posts.