a few different, but very likely related installation issues on Server 2008 R2

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/16/2011 4:35:26 PM
Gravatar
Total Posts 139
"All that is gold does not glitter, not all those who wander are lost;" --J.R.R. Tolkien

a few different, but very likely related installation issues on Server 2008 R2

hello all,

I know it might seem as if issues never end here at this realm of the virtual world, but here we go again LOL.  I was trying to install Mojo Portal from the web Platform installer onto an installation of IIS 7 and Server 2008 R2 (foundation edition if that matters).  I am using MSSQL Server 2008 R2 express edition (web edition won't install even after removing Express so I had to revert back).  I don't know why that is, but that's a different issue.  Something I'm curious about, but it doesn't have anything to do with this.  But anyway.  after installing SQL Server (I chose to use the default instance, (using mssqlserver as the instance name), I went to install Mojo portal with WPI.  It installed just fine after providing SA credentials and then the database credentials.  I got no database connection errors, so I'm thinking that that's not the problem here.  (though strangely enough, the mssqlserver default instance isn't the one Mojo Uses.  It's the sqlexpress instance that is the only one I can even connect to regardless of the fact that the other one is there).  I told Mojo Portal where I wanted it to be put in my IIS configuration.  I have three sites on the server because another application I have on here needs it's own site.  I chose the site named site 1.  After a successful installation, I told WPI to go ahead and launch Mojo portal.  This is where the trouble started.  Firefox gave me the message "Firefox can't establish a connection to the server at localhost:8008 (it's on that port for testing purposes).  and here's the funny thing.  Though I gave it that site as it's installation point, I actually have two copies of the application installed (one at site 1 and the other at site 2 on port 8881).  How in the world did that happen?  For that one, Firefox gives me an http404 error (understandable since I didn't tell WPI to use that).  If somebody could please explain what's going on here, and whether all these issues are related, I'd really appreciate it.  Thanks. 

 

Katherine

4/17/2011 7:40:04 AM
Gravatar
Total Posts 18439

Re: a few different, but very likely related installation issues on Server 2008 R2

Hi Katherine,

you said:

after installing SQL Server (I chose to use the default instance, (using mssqlserver as the instance name)

but this makes no sense because a default instance does not use an instance name and that is what makes it a default instance and that is why there can only be one default instance on a machine.

So if I have 2 instances running, a default instance and a named instance then in a connection string for the default instance I just use localhost for the server name (assuming it is on the same machine as the web server) whereas with a named instance it would be localhost\instancename

So an example of a connection string for a default instance would be like this:

<add key="MSSQLConnectionString" value="server=localhost;UID=mojouser;PWD=mojo123;database=mojo" />

whereas a connection string for an instance named SQLExpress would be like this:

<add key="MSSQLConnectionString" value="server=localhost\SQLExpress;UID=mojouser;PWD=mojo123;database=mojo" />

Hope it helps,

Joe

4/17/2011 9:33:59 AM
Gravatar
Total Posts 139
"All that is gold does not glitter, not all those who wander are lost;" --J.R.R. Tolkien

Re: a few different, but very likely related installation issues on Server 2008 R2

It definitely makes sense, but it makes no sense still that there are two sqlservr.exe processes running, and that both of their services are enabled, yet only one of them is actually functional.  I didn't actually check the Web.config file, because I figured that using the Web Platform Installer automatically adds those values for you.  Is that true?  If so, I'm thinking that it used the \sqlexpress ID since that's what it was pointing to on the "location of the database server" prompt in the installation.  That instance is where the database is, so I'm definitely thinking that's what happened.  But what do you think the reasoning for the error in firefox was?  And not to mention, I forgot to say that the application pool it was using was .net framework 2.0.  But since there were so many application pools running (I somehow added seven), I couldn't tell which was running Mojo Portal.  I ended up simply deleting all of the sites, since Mojo had somehow gotten itself into all of them (though in the wwwroot folder, there was only one physical folder for it), and I'm thinking of trying the .zip method through IIS so that I'll have more control over where it is.  I begin to wonder if this wasn't a database issue at all.  (I might have taken a clue in the fact that the .net framework was running version 2.0).  Though regardless if it is or isn't, I'm still kind of interested in how in the world I have two sets of SQL server processes and two sets of services running though only one of them actually works.  Thanks for any feedback. 

4/17/2011 9:50:43 AM
Gravatar
Total Posts 18439

Re: a few different, but very likely related installation issues on Server 2008 R2

Hi Katherine,

Just because you are having trouble connecting to an instance does not mean it isn't running, so if you see 2 processes that means you have 2 instances running. Of course the connection string matters and if it cannot connect to the database after the Web PI installs it then you should check the connection string in user.config and see if it is configured as you expected.

Regarding your IIS stuff, I have no way of knowing how you have things configured, it sounds like you probably have things mis-configured but not being able to see how you do have it configured it is difficult to help. If the error says .NET 2 then you don't have it running with a .NET 4 app pool.

Best,

Joe

 

4/17/2011 10:48:48 AM
Gravatar
Total Posts 139
"All that is gold does not glitter, not all those who wander are lost;" --J.R.R. Tolkien

Re: a few different, but very likely related installation issues on Server 2008 R2

Okay thanks.  I will tell you though that IIS is simply configured in it's default state. 

4/17/2011 11:44:45 AM
Gravatar
Total Posts 18439

Re: a few different, but very likely related installation issues on Server 2008 R2

You said before you have multiple sites running on different ports, that is not the default state, in fact after any configuration is made at all it is no longer in its default state, even after installing mojoPortal or any application it is not in its default state. The point is not whether it is in a default state or not but that it is difficult to help since I cannot know what state it is in. I have no doubt that if I had access to your machine I could diagnose the problem very quickly by looking around at configuration items, but not having that it is very difficult to help just by forum questions.

IIS is a complex and very configurable thing and how it is configured makes all the difference in whether it works as you would like it to or not. Configuring IIS web sites requires a good deal of knowledge, things like Web Platform Installer are trying to make it simple to do it without having to understand it very much but it falls short on that goal because there is a lot to it, and once something is not working Web PI is not able to fix it. I'm sure it is even more difficult using a screen reader as you do, but there is a lot to know even for a user who does not use a screen reader.

Best,

Joe

4/17/2011 3:17:26 PM
Gravatar
Total Posts 139
"All that is gold does not glitter, not all those who wander are lost;" --J.R.R. Tolkien

Re: a few different, but very likely related installation issues on Server 2008 R2

Well.  That's what testing's for.  So that I can explore this kind of stuff with local sites running.  I have since returned IIS back to it's default with only one site running on port 80.  Mojo portal is installed in there nicely, but I'll have to check next week if the connection string was added.  Something tells me that WebPI doesn't touch user.config.  is that correct?  Because if not, it never adds anything into the web.config file either.  And is (local), in the context of entering in a connection string, simply another way of denoting localhost, or the local machine when it is placed behind server=?  I've never seen that before, and I've always seen samples denote it fully, or even fuller, by the adding of the entire local machine name in my case "Katherine-serv\sqlexpress".  I'll have to try that and see if it works, because right now, at least I'm no longer getting a firefox error complaining about the fact that it can't connect to the server, but now I'm getting what's purely a code error.  I assume it means that it can't connect to the database (understandable if nothing's specified where it should be).  I'll let you know over next weekend since I'm at college right now, and then we'll be away.  If I have time, I'll see if I can test it correctly under Windows 7.  I think that this weekend was a series of brain farts anyway. 

4/17/2011 6:44:15 PM
Gravatar
Total Posts 139
"All that is gold does not glitter, not all those who wander are lost;" --J.R.R. Tolkien

Re: a few different, but very likely related installation issues on Server 2008 R2

Oh wow ... never mind.  I guess I've got so much on my mind this week with projects here and books to read there, that I got that line confused with something else I was doing.  I think I got confused between the way that database connection strings are written in user.config files versus the way it's denoted in SQL Server Management studio.  Forgive me.  I'll try to keep my programs straight next time.  But I'll also let you know if I get this working or if I don't, and then if not, we'll know that it was more than me just trying to do more than one thing at once LOL.  Thanks again, and Gosh, I'm so sorry about that!  I'm hoping by this summer, some of these silly issues will be minimal with my entry into the C#/ASP.net world. 

 

Katherine

4/18/2011 7:00:28 AM
Gravatar
Total Posts 18439

Re: a few different, but very likely related installation issues on Server 2008 R2

Hi Katherine,

For connection strings I always thought that (local) was equivalent to localhost because in practice either one usually works for connecting to the current machine, but when I googled for a link to share with you I learned there is a difference from this blog post. Given the difference I would generally use localhost to use TCP for the connection. With (local) it uses named pipes which also usually works fine on the local machine. When you use Katherine-serv, that is actually the NetBios Name.

For understanding how to setup multiple sites in IIS (without using non standard ports) you'll need to learn about IIS host headers and how they resolve requests to a specific web site when multiple web sites are using the same ip address. But to really understand that you need to understand the background information about host name resolution, the hosts file and the loopback address.

For testing and dev purposes it is easy to setup additional web sites in IIS using made up host names added to the hosts file at

c:\Windows\system32\drivers\etc\hosts

You'll have to run Notepad as administrator  and change the file open dialog to open all files since the hosts file has no file extension.

Then you can make up arbitrary host names and point them to the loopback address and then you can setup additional web sites for testing by using those made up host names for host headers.

You'll see that the hosts file already has

127.0.0.1 localhost

and that is what makes the default web site able to run using localhost as the host name

but you could just as easily add 

127.0.0.1 cheeseburber

and then it would also work for http://cheeseburger/

Then you could create a new web site and set cheesburger as the host name/host header for the site and that would make requests for cheesburger be handled by the new site instead of the default web site.

Anyway the above links should make some good reading and learning these concepts will clear up a lot in your understanding.

Hope it helps,

Joe

4/18/2011 9:18:35 AM
Gravatar
Total Posts 139
"All that is gold does not glitter, not all those who wander are lost;" --J.R.R. Tolkien

Re: a few different, but very likely related installation issues on Server 2008 R2

Thanks!  i'll definitely be reading those, as that was on my list of things to learn.  But something interesting happened here when I tried testing on Win 7 that I think you should know about.  I set the default Mojo Portal installation up correctly i'm pretty sure, adding the connection string to web.config as demonstrated.  I went to finish the setup through Firefox, and then I was greeted with a lovely 500.21 internal server error saying "ScriptHandlerFactory-integrated has a bad module "ManagedPipelineHandler" in it's module list."  I've read a lot on IIS, but I've never seen how in the world to troubleshoot this, but I think that the way I did it wasn't the correct way since using the command to register .net with IIS just induced a 404 not found error.  The error message could have said PageHandlerFactory-Integrated.  I can't remember off the top of my head.  I ran that command because IIS hinted that ASP.net may not have been installed completely.  If you've seen this before, please let me know.  Thanks! 

 

Katherine

4/19/2011 12:33:06 AM
Gravatar
Total Posts 139
"All that is gold does not glitter, not all those who wander are lost;" --J.R.R. Tolkien

Re: a few different, but very likely related installation issues on Server 2008 R2

I should also tell you that due to the fact that I spend about 90 percent of my spare time sitting at a computer playing with this stuff, I think that I have at least the basic idea of what most of the IIS configuration is.  I may not understand every setting, but I think that by learning by doing, I'll be able to understand them.  Where would you suggest I go to gain the required knowledge in order to be successful at such things?  I've already read a 900 page book on IIS 7, and I can refer to it at any time.  The issue is that it only discusses certain situations, and it doesn't go through every incident and error, so what is the best way to tackle an error that someone has not encountered before?  I always figured that a good method is to explore, try things out, and then ask questions.  If you have anything to add to that, please don't hesitate to let me know.  Thanks so much. 

4/19/2011 6:53:08 AM
Gravatar
Total Posts 18439

Re: a few different, but very likely related installation issues on Server 2008 R2

 

Hi Katherine,
 
Learning by doing is great, learning by reading books is great, learning any way you can is great. But there is a common expression about "knowing just enough to be dangerous". One may have a 1000 page manual about their car and may learn a lot about cars by taking one apart but after you put it back together and it doesn't work then you're stuck. You could find an auto mechanic forum and ask questions but its rather expecting a lot if you think the mechanic reading the forum can magically guess what you did wrong putting it back together. The mechanic might be quite capable of fixing it if he could directly work on the car, he may need to take it apart and put it back together himself to fix it. But it is not reasonable to think he will be able to do it over the forums. Some problems which one can easily help with in person with direct access to the car or in this case the IIS server are very difficult to do remotely based on question and answer. My point is not that it is wrong to ask such questions but don't be surprised if the mechanic cannot help you with your questions. In all realms of learning one can learn just as much from failure as success so it is ok to learn by trial and error, but learning such a way is not painless, it can and will be very frustrating at times.
 
The internet is full of resources to help you learn, you could take classes, and there are lots of forums where you can ask questions but you may not always get answers. I already posted quite a few links on this thread to help you learn the needed background information, there are also the IIS forums, there is a great series of IIS training videos being posted each week on Scott Forsyths blog, he is posting 1 per week and is on week 16 of 52, though I don't know how much they will help with only the audio, there is always google and bing to help you research questions.
 
Best,
 
Joe
 
4/19/2011 8:21:23 AM
Gravatar
Total Posts 139
"All that is gold does not glitter, not all those who wander are lost;" --J.R.R. Tolkien

Re: a few different, but very likely related installation issues on Server 2008 R2

I'll definitely be looking at those.  And classes also are on my list of things to do.  The question is where in the world to take them where I will succeed.  I think though that I'm going to begin my Microsoft Certification preparation with some online courses through some program that the head network dude is purchasing for the whole school to utilize right here at Gordon.  But I did have a question for you.  Which pipeline mode is Mojo portal supposed to run in?  I meant to ask before when posting about the bad Module error I mentioned earlier.  I asked about that on the IIS forums when I didn't see anything, and they told me that it was probably because I set the application pool to integrated mode instead of classic.  I understand that Integrated pipeline mode allows IIS to be tied to ASP.net, and it is the mode in which native IIS 7 applications would be running in, whereas classic mode is there more for compatibility. 

4/19/2011 8:38:01 AM
Gravatar
Total Posts 18439

Re: a few different, but very likely related installation issues on Server 2008 R2

mojoPortal can run just fine using either kind of app pool but given a choice I would always use Integrated. But there are lots of people still using Win2003/IIS 6 and they don't have that option and it still works just fine. Anyone using IIS 7.x should use an Integrated app pool for mojoPortal.

Best,

Joe

4/19/2011 2:14:48 PM
Gravatar
Total Posts 139
"All that is gold does not glitter, not all those who wander are lost;" --J.R.R. Tolkien

Re: a few different, but very likely related installation issues on Server 2008 R2

Okay cool.  There's one possible cause of the bad module error eliminated.  I'll first have to check though if that actually occurs on the server 2008 machine.  That could just be a Win7 thing.  But on a more general note, this is non-machine specific, after one installs IIS, and before they even touch it to even install a web application, are there any settings in any of IIS' sections you recommend we change or modify in any way?  I ask because I know for a fact that I have installed ASP.net, .net extensibility, ISAPI filters, and the other ISAPI module that is required for ASP.net to run.  I may have installed ISAPI and CGI restrictions too by mistake, but I'm not sure if ASP.net needs it.  if not, can I uninstall it without breaking things?  I have kept the default modules that come installed as well.  and before following Mojo Portal's installation instructions, does anything need to be done with any of the other sections such as .net authorization rules, .net trust levels, default document, custom error pages?  I've never really fooled too much with anything that instructions don't instruct me too, but maybe that's the issue?  I'm not looking at the whole picture?  You're absolutely correct about the fact that I don't understand everything about IIS' configuration.  The problem is that I more or less don't understand when it's appropriate to use a certain function either before or after an installation, and then I never know what's assumed to have been changed on the server before following instructions to install various apps.  And in reference to the other two sites that were in there at first, I have since taken them out.  They were on nonstandard ports, because, when these skills become more pronounced in me, I have a mail server that is also driven by ASP.net, and it's not recommended that the app be run on standard port 80.  I think what happened was that I typed 8881 when I meant to type 9998.  9998 is the recommended port for that application.  I just thought that I'd let you know that I took those out and that nothing else has been touched but the mojo portal files themselves.  And you mentioned classes before.  I had said that I plan to begin the road to becoming Microsoft Certified as a MCITP in server 2008 as an enterprise server administrator.  There are a couple of mCTS requirements that go along with that.  Do you know if IIS is an optional component of that cert?  Thanks again for your continued assistance and remember if you need a hand, you can have me looking for stuff. 

 

4/20/2011 1:01:32 PM
Gravatar
Total Posts 18439

Re: a few different, but very likely related installation issues on Server 2008 R2

I've just created this article rather than answer here, hope it is helpful. There are no pre-configuration steps, but there are a number of possible ways to install and configure mojoPortal, the article tells how to make it a root level web site.

Manual Installation Recipe for IIS 7.x and .NET 4

Hope it helps,

Joe

4/20/2011 3:05:24 PM
Gravatar
Total Posts 139
"All that is gold does not glitter, not all those who wander are lost;" --J.R.R. Tolkien

Re: a few different, but very likely related installation issues on Server 2008 R2

That's definitely a help since it mentions some stuff I never considered.  You should move that to the documentation section, as the docs there don't mention the application pool identity.  That is something I probably didn't look at either. 

You must sign in to post in the forums. This thread is closed to new posts.