Can I change port used while HTTPS access???

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
8/20/2005 8:37:02 AM
Gravatar
Total Posts 25

Can I change port used while HTTPS access???

I have SSL (https://) enabled on my hosting only through port 472. Although I prefer to use http and http without additional port specs, this is my hosting standard.

Where I can change port used in mojoPortal - I have seen that it explicitly shows port :80 currently in URL, hope this is somewhere changeable ... :-)

Petr

8/20/2005 10:48:46 AM
Gravatar
Total Posts 18439

Re: Can I change port used while HTTPS access???

Try changing this Web.config setting:

MapAlternatePort

to false
8/20/2005 11:10:00 AM
Gravatar
Total Posts 25

Re: Can I change port used while HTTPS access???

this seems to be more bad than with "true" - gives me "Page cannot be displayed"

as I sed, my hosting requires EXPLICIT port :472 to be used in URL; with mapping enabled, I see this url:

https://mixworx.net:80/2005/Secure/Login.aspx

but I want to have :472 instead of :80, so where I can config this? Nothing in web.config seems like "SSLAlternatePort"  :-)

Petr

 

8/20/2005 11:30:26 AM
Gravatar
Total Posts 18439

Re: Can I change port used while HTTPS access???

I think that is a bug in some code we put in there to make things work through a proxy.

I just commited a change to svn that may fix it if you can get the latest code and build it.

There are 2 new web.config settings

MapAlternateSSLPort

you should set to true

and

AlternateSSLPort

you should set to your port 472 I guess.

Joe
8/20/2005 11:44:53 AM
Gravatar
Total Posts 25

Re: Can I change port used while HTTPS access???

ok thanks a lot!

this means for me a chance to try SVN :-)

Petr

8/21/2005 12:40:25 AM
Gravatar
Total Posts 25

Re: Can I change port used while HTTPS access???

Hello Joe,

I have successfully checked-out latest source, (surprisingly) successfully rebuilded Release by
"Visual C# Standard" package (do you know that its possible???, lot of warnings, but no error)
and deployed to local folder by UnleashIt fr?om where I am syncing with ftp through TotalCommander for now.
(I do not clean target ftp, simply add/replace new files, update CultureCZE.config and web.config according to newest ones.)

But  server return Http errorr 500 and currentlog.txt says this:
(My shared hosting uses Win2k3 IIS and MSSQL 2k.)

2005-08-21 12:29:59,516 [2956] INFO  mojoPortal.Web.Global [(null)] - Global.asax.cs Application_Start
2005-08-21 12:30:02,063 [2956] ERROR mojoPortal.Web.Global [(null)] - www.mixworx.net
System.Net.Sockets.SocketException: The requested name is valid, but no data of the requested type was found
   at System.Net.Dns.GetHostByName(String hostName)
   at System.Net.Dns.Resolve(String hostName)
   at Npgsql.NpgsqlClosedState.ResolveIPHost(String HostName)
   at Npgsql.NpgsqlClosedState.Open(NpgsqlConnector context)
   at Npgsql.NpgsqlConnector.Open()
   at Npgsql.NpgsqlConnectorPool.GetNonPooledConnector(NpgsqlConnection Connection)
   at Npgsql.NpgsqlConnectorPool.RequestConnector(NpgsqlConnection Connection)
   at Npgsql.NpgsqlConnection.Open()
   at mojoPortal.Data.NpgsqlHelper.ExecuteReader(String connectionString, CommandType commandType, String commandText, NpgsqlParameter[] commandParameters)
   at mojoPortal.Data.dbPortal.FriendlyUrl_GetByUrl(String HostName, String FriendlyUrl)
   at mojoPortal.Business.FriendlyUrl.GetFriendlyUrl(String HostName, String FriendlyUrl)
   at mojoPortal.Business.FriendlyUrl..ctor(String HostName, String FriendlyUrl)
   at mojoPortal.Web.SiteUtils.RewriteUrl(HttpApplication app)
   at mojoPortal.Web.UrlRewriter.UrlRewriter_BeginRequest(Object sender, EventArgs e)
   at System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2005-08-21 12:35:05,848 [2956] INFO  mojoPortal.Web.Global [(null)] - Global.asax.cs Application_End
2005-08-21 12:35:23,567 [3892] INFO  mojoPortal.Web.Global [(null)] - Global.asax.cs Application_Start
2005-08-21 12:35:23,645 [3892] DEBUG mojoPortal.Web.Global [(null)] - Global.asax.cs Application_BeginRequest
2005-08-21 12:35:23,645 [3892] DEBUG mojoPortal.Web.Global [(null)] - Application_BeginRequest culture = Czech (Czech Republic)
2005-08-21 12:35:23,692 [3892] DEBUG mojoPortal.Web.Global [(null)] - Global.asax.cs GetSiteSettings
2005-08-21 12:35:26,286 [3892] ERROR mojoPortal.Web.Global [(null)] - www.mixworx.net
System.Net.Sockets.SocketException: The requested name is valid, but no data of the requested type was found
   at mojoPortal.Web.Global.GetSiteSettings()
   at mojoPortal.Web.Global.Application_BeginRequest(Object sender, EventArgs e)
   at System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

(latest try is with UrlRewriting disabled, I tried almost all, disabling alternate ports, ... simply I dont know what can cause this kind of error ....)

can you help me?

Petr

8/21/2005 2:38:46 AM
Gravatar
Total Posts 18439

Re: Can I change port used while HTTPS access???


The problem is it is checked into svn configured for using PostgreSQL, it is easy to change it to use either MS SQL or MySQL, all you do is change the reference in the business layer.

In VS.NET you need to look at the references under the mojoPortal.Business project and remove the reference to PostgreSQLData then right click references and choose add reference, in the dialog box, go to the projects tab and choose MSSQLData, then rebuild the solution.
8/21/2005 2:45:35 AM
Gravatar
Total Posts 25

Re: Can I change port used while HTTPS access???

Good morning Joe, thanks, I will rebuild imeediatelly.

One question:
I have opened solution into VC#Standard , switched config to Release
and ReBuild, Deploy ... no problem

Need I VS.NET patches for class library "web"project only for editing/debugging source?

tnx, Petr

8/21/2005 3:17:03 AM
Gravatar
Total Posts 18439

Re: Can I change port used while HTTPS access???

You just need to configure it for debugging ASP.NET

Right click the web project and choose properties, then click  Configuration Properties > Debugging
Set Enable ASP.NET debugging to true
enter http://localhost/mojoportal/Default.aspx for the Start Page

now change Debug Mode to URL and enter http://localhost/mojoportal/Default.aspx for Start Url

click Apply/OK

right click the web project again and choose set as  startup project

You also need to create a Virtual Directory mojoportal pointing to the web folder under your default web site in IIS

Now you can use F5 or Play button to start debugging (put build in debug mode)

also in Unleash It make sure you add a file mask for .htm and .html or it won't deploy those files.

the project is set as a class library rather than a web project to avoid problems with svn

you may also want to review this info to add some things so that it is easy to add .aspx and .ascx to the project for your own development
8/21/2005 3:41:26 AM
Gravatar
Total Posts 25

Re: Can I change port used while HTTPS access???

thanks, I have reviewed all docs atleast twice, but ...

Unfortunatelly I am now working on my wifes WinXP Home notebook, so to run IIS there are few tweaks needed, debugging against mono isnt yet possible, right?

Some progress with my deployment, but currentlog still says this:

2005-08-21 15:37:44,996 [5504] ERROR mojoPortal.Web.Global [(null)] - www.mixworx.net
System.Web.HttpException: DataBinder.Eval: 'System.Data.Common.DbDataRecord' does not contain a property with the name Target.
at System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName)
at System.Web.UI.DataBinder.Eval(Object container, String[] expressionParts)
at System.Web.UI.DataBinder.Eval(Object container, String expression)
at ASP.Links_ascx.__DataBind__control3(Object sender, EventArgs e) in e:\wwwdata\rdje1276\www\2005\Modules\Links.ascx:line 6
at System.Web.UI.Control.OnDataBinding(EventArgs e)
at System.Web.UI.Control.DataBind()
at System.Web.UI.Control.DataBind()
at System.Web.UI.WebControls.DataList.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem)
at System.Web.UI.WebControls.DataList.CreateControlHierarchy(Boolean useDataSource)
at System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e)
at System.Web.UI.WebControls.BaseDataList.DataBind()
at mojoPortal.Web.LinksModule.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain()

...property with the name Target - it is related to Links module changes I have seen in CultureCZE ?

(it seems there is missing field in table? are DB update scripts in-line with current code poste to SVN too?)

Petr

8/21/2005 4:02:01 AM
Gravatar
Total Posts 18439

Re: Can I change port used while HTTPS access???

In the MSSQLData folder there is a script for the upgrade to the next release, upgradefrom20050710to.sql
run that then re-run the script to create all stored procs 3mojoPortal.MSSQL.CreateStoredProcedures.sql

That should get you past this error.

No reason you can't debug as long as you have IIS and Developer tool. On Windows we are not using mono but .NET 1.1. I compile on windows against .NET 1.1 and then deploy to a mono machine and it works fine but if you are using Windows for deployment target you have no need of mono for anything.
You must sign in to post in the forums. This thread is closed to new posts.