This topic is locked

Issues when moving project to server

6/30/2006 2:17:38 PM
ASPRunner.NET General questions
P
paul.speck author

Hello,
I have a finished project that works perfectly on my development machine. When moving it to the server I am running into several problems. First, when I copy my project over I get the following error:
'Error: The ConnectionString property has not been initialized.'
It looks like func.GetConnectionString is not working correctly, so when I manually set the sConnectionString variable I get a new error:
'Error description: Object reference not set to an instance of an object.'
In this case the first record is displayed in the list page. I am using the Code Inline option. Using Code Behind does not seem to solve the problem either. If anyone have any insight to this problem I would appreciate it.
If my project file or compiled output will help, let me know and I can provide it.
Thank you for the help,

Paul Speck

P
paul.speck author 6/30/2006

I tracked the Object Reference error down to the Formatting step of project creation. When I set a field to be edited as a dropdown list which references another table the error arises. I am guessing that the code attempting to look up these values from the specified table is having the same problem with func.getConnectionString?
Hopefully this helps narrow down the issue.
Thanks again,

Paul Speck

Eugene 7/1/2006

Please, send me your connectionString and path to folder where database is located.

P
paul.speck author 7/1/2006

Eugene,
I sent you a message with this information.
Thanks,

Paul Speck

P
paul.speck author 7/3/2006

It appears that the page is not returning information correctly from lines such as the following:
sConnectionString = func.GetConnectionStr()

Dim sCulture As String = ConfigurationSettings.AppSettings("LCID")

func.GetLookupValue("[business_unit]", "[business_unit]", "[dbo].[business_units]", rowData.Item("business_unit"), SqlDbType.NVarChar)
I am not sure where these func.GetConnectionStr() and func.GetLookupValue functions are located. If anyone has any suggestions or has experienced this issue before and can offer some advice I would appreciate it.
Thanks,

Paul Speck

P
paul.speck author 7/3/2006

Eugene,
I found the problem and this is no longer an issue. When I copied the aspnet_client folder from wwwroot into my project folder, everything worked perfectly.
Thanks again for the help,

Paul Speck

Eugene 7/4/2006

I am not sure where these func.GetConnectionStr() and func.GetLookupValue functions are located. If anyone has any suggestions or has experienced this issue before and can offer some advice I would appreciate it.


Functions func.GetConnectionStr() and func.GetLookupValue are located in files lib.vb or lib.cs. Or, if you use codeinline options, in ASPRunner.db.dll file.