Tuesday, 17 July 2012

On Infopath 2010 "Unable to connect to the SharePoint site."

This is the scenario, you are going to Infopath 2010, you go to File->Sharepoint List and when it ask to enter the location of a Sharepoint list, you enter your site and gives you this error: "Unable to connect to the SharePoint site."

The problem is simple, your web application needs a Root site. This is common when you create a site with the wizard so you get http://xxx/sites/mynewsite. What we can it is to create a site for http://xxx/.

How?
  1. Go to Central Administration.
  2. Site Collections->Create site collections.
  3. Select web application where you want to create site collection from the drop down.
  4. Give a desiredtitle/description and select “/” from the URL drop down. Front slash stands for a top level site. You will not see it listed in the drop down if you have already created a top level site collection because you can only create one top level site collection per web application.
  5. Try Infopath 2010 now!

Tuesday, 19 June 2012

"The Module DLL 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\isapi\owssvr.dll' could not be loaded due to a configuration problem.The current configuration only supports loading images built for a x86 processor architecture. The data field contains the error number."

This is an interesting problem I spotted the other day when someone messed around with my lovely dev server.

The solution is really simple it is a matter of changing the application pool to x64... how?

go to Start->type InetMgr.exe -> Expand your server ->Application Pools -> Select the application pool you think it could be wrong->Advance Settings... -> Under general, change "Enable 32-Bit Applications" to False. Click ok!

Thursday, 31 May 2012

Configuring an Alternate Access Mapping (AAM) in SharePoint 2010 to expose a web application to the Internet.

I know many people have been in trouble trying to do what it looks a simple exercise, expose a web application to the outside world.

I have to admit we will need few requirements to do this, and they are not easy to get:

  • A DNS address: A URL will be pointing your server, in this case we are going to use a random one: http://svm15031.vps.tagadab.com
  • An Installation of Sharepoint 2010 Enterprise or Foundation.
  • II7
  • Windows Server 2008
  • a web application already created.

Let’s go to follow a simple step by step scenario so we know what we are doing.

Step 1
Go to Start->Microsoft SharePoint 2010 Products->SharePoint 2010 Central Administration

Step 2
Go to Central Administration->Application Management->Manage Web applications.image

Step 3
Click on web applications and select your “80” website, and on the top left click extend. In this way we are going to extend our site to port 81, so the users are comming from the outside world will use this port. Click on “Extend” and fill the following fields:

  1. Port: 81
  2. Host Header: svm15031.vps.tagadab.com
  3. Zone: Select Internet

image

Step 4
To check the bindings go to Server Manager->Roles->Web Server (IIS)->Internet Information Server.
Click on the site we are dealing, in this case will be called . On the right side click on bindings and be sure you receive something similar.
image

Step 5
We are going to change the authentication of the extended site now. Go to Central Administration->Application Management->Manage Web applications select the “80” Web application and click on Authentication Providers. You will receive this dialog, click on Internet.
image

Step 6
On IIS Authentication Settings un tick Integrated Windows authentication and tick Basic authentication (password is sent in clear text).
image

Step 7
Everything is done now…but we have to be sure that our application can be seen in port 81 from the outside world, so let’s go to create a rule in the firewall to do that. Go to Server Manager->Configuration->Windows Firewall with…->Inbound Rules-> Right click –> New Rule. Select Port and click Next. On specific local ports type 81 and click on Next –>Allow connection –> Next –> Domain, Public and private tick it! –>Next –>Type teh name of the rule and finish. Do the same with Outbound Rules.
image

Step 8
In my web application I created a site collection with a site called “hello”, this is how I will call it from Internet:
http://svm15031.vps.tagadab.com:81/sites/hello/SitePages/Home.aspx . It will prompt for user and password!

And this will be the result:
image

Enjoy!