This project is read-only.
1

Closed

Server error, please notify your admin

description

Hello,
 
I installed the server on localhost and i'm trying to run the client, i get this error.
I have Windows 7 Pro.
What should i do? I seems that this error is not documented here.
 
Thanks!
Closed Jan 31, 2011 at 11:31 AM by klot

comments

klot wrote Jan 24, 2011 at 11:10 AM

Hi,
A server error could be a lot of things (database connectoin failed, exchange connection failed, etc...)

All the server errors are logged at <YOUR SERVER wwwroot>\FactoryService\App_Data\Log\factorylog.txt
Could you see if are there any messages at the log file?

firteandrei wrote Jan 25, 2011 at 1:28 PM

Hi,

I didn't know they are logged there. The WPF client just tells that to me - "A server error occurred. Please notify the admin".
I also did get this .Net Framework error JIT "
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at BadHabit.Factory.Client.set_IsConnected(Boolean value)
at BadHabit.Factory.Client.Connect(Boolean fullLoad)
at BadHabit.Factory.Client.connectTasksToolStripMenuItem_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)"

As for the log file, it has nothing to do with my error. It has some info about: C:\Users\marcos.martins .. and
some spanish(I think) error.
What should i do? Thank you.

klot wrote Jan 25, 2011 at 2:54 PM

Hello,
I still think that is a SQL connection error.
To simulate the error i tried to run my client without the SQL Server running, and i got the same "A server error occurred. Please notify the admin", and also get the spanish (actually portuguese) message at my log file:

"Erro de rede ou específico à instância ao estabelecer conexão com o SQL Server. O servidor não foi encontrado ou não estava acessível. Verifique se o nome da instância está correto e se o SQL Server está configurado para permitir conexões remotas. (provider: Interfaces de Rede SQL, error: 26 - Erro ao Localizar Servidor/Instância Especificada)
Source: .Net SqlClient Data Provider"

Are you getting a simillar message? If so, that is a sql connection problem.

To test your connection go to the web.config file and find the similar line:

<add name="BadHabit.Factory.Data.Properties.Settings.FactoryConnectionString" connectionString="Data Source=YOUR SERVER;Initial Catalog=Factory_v1a;User ID=Factory_v1a_Login;Password=PASWORD" providerName="System.Data.SqlClient" >

That is the credentials that factory is using to connect to your database.
Can you connect to the database using the credentials at your web.config?

firteandrei wrote Jan 25, 2011 at 5:46 PM

Actually, you were right. It was the connection string. But now it says: You("") are not registered as a team member at the server.
How do i register from the web site?
Thank you.

klot wrote Jan 26, 2011 at 12:25 PM

ok, we are almost there.
Something should have happened at your server installation.

When you install the server it creates an admin user using one of the following authentication methods: “Windows Authentication” or “Factory Authentication”

What authentication method did you selected?

I am not sure, but in order to use “Windows Authentication” at Windows 7, your IIs should have the Windows Authentication module installed (I’m think is not the default option) and be well configured (see http://www.scrum-factory.com/en-us/HowDoI/HowDoIProblems.aspx).

If you want to use “Factory Authentication” just right-click at the factory icon at taskbar, select Setup > Connection and make sure the “Windows Authentication” is not checked.
You will need to provide the user Id and access key that was provided at the server installation.

firteandrei wrote Jan 26, 2011 at 5:51 PM

Hello again,

I would try to use forms auth in scrum factory settings. But i don't know which user id and access key to use.
I tried to look in the members table, but they don't really match(I don't what/where to add there).
In the installation I chose factory auth, but i was not asked to define an user id.

Thank you!

klot wrote Jan 27, 2011 at 11:27 AM

Hello,
when you select Windows auth, the installation uses the current loged user at your machine as Factory admin.
What we can do, is as you said, insert it manually at the Member's table.
Try that line:

INSERT [factory].[Member] VALUES ('FACTORY\firteandrei', 'S.M.', 'FACTORY\firteandrei', 1, 1, 1, 1, 1, NULL, NULL, 'ACME', 0, 'b259d248-85b4-4abd-b530-fa4e101b354f', 1)

and then at the client use the following information:

User: FACTORY\firteandrei
Key: b259d248-85b4-4abd-b530-fa4e101b354f

firteandrei wrote Jan 27, 2011 at 1:04 PM

It's getting to weird. I have added in the member table a member (this time i saw that there was an accescode colum).
It still won't budge, "You don't have the required role to perform this task" when i specify the user/code in settings.

Why is it so difficult?
Anyway, i think you should put some technical help in the program for people when they encounter such problems.
It can really be helpful.

Thanks.

klot wrote Jan 28, 2011 at 12:48 PM

Hi andrei,
sorry it really shouldnt be that hard.

Usually is just: install the server and go. but something happened at your installation.

Anyway, ive simulated the scenario here, and inserting the member manually works for me.
Please double-check if the acceskey and the user id is matching with the database (they are CASE-SENSITIVE).

One last try should be re-install the server, and this time select FACTORY AUTHENTICATION..it will create an admin the user for you.

firteandrei wrote Jan 29, 2011 at 4:19 PM

Yes, I will try more.
I'll tell you if it works.
Anyway, thanks for trying to help me!

firteandrei wrote Jan 29, 2011 at 6:11 PM

Hi,

I actually managed to make it work. I took the default
member, not the new inserted one. It's quite cool your application.
Nice work!

klot wrote Jan 31, 2011 at 11:30 AM

Thanks man!
Glad, you made it!

having any further questions, just ask.

cheers

wrote Jan 31, 2011 at 11:31 AM

wrote Feb 13, 2013 at 3:09 AM

wrote May 15, 2013 at 2:34 AM