Welcome to Neutex Support Sign in | Join | Help
in Search

Server Error in /Netpoint application

Last post 11-27-2006, 4:09 AM by Shannon. 3 replies.
Sort Posts: Previous Next
  •  11-22-2006, 1:54 AM 180

    Server Error in /Netpoint application

     Hi Shannon,

    I have had Netpoint installed for a while now and it is very impressive (looking forward to the next version).  It has recently been innaccessible due to the following error.  If you could shed some light on this I would be grateful.

    Thanks

    Lucas

    Server Error in '/NetPoint' Application.

    The key 'Main.ConnectionString' does not exist in the appSettings configuration section.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.InvalidOperationException: The key 'Main.ConnectionString' does not exist in the appSettings configuration section.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [InvalidOperationException: The key 'Main.ConnectionString' does not exist in the appSettings configuration section.]
    System.Configuration.AppSettingsReader.GetValue(String key, Type type) +634555
    NetStudio.NetPoint.Framework.HelperClasses.DbUtils.CreateConnection() +72
    NetStudio.NetPoint.Framework.HelperClasses.DbUtils.CallRetrievalStoredProcedure(String storedProcedureToCall, SqlParameter[] parameters, DataTable tableToFill, ITransaction transactionToUse) +173
    NetStudio.NetPoint.Framework.StoredProcedureCallerClasses.RetrievalProcedures.GetComponentProperties(String componentName, Int32 filter) +213
    NetStudio.NetPoint.WebApplication._Default.a(TypedViewType A_0, DropDownList A_1) +140
    NetStudio.NetPoint.WebApplication._Default.a(Object A_0, DataGridItemEventArgs A_1) +198
    System.Web.UI.WebControls.DataGrid.OnItemDataBound(DataGridItemEventArgs e) +105
    System.Web.UI.WebControls.DataGrid.CreateItem(Int32 itemIndex, Int32 dataSourceIndex, ListItemType itemType, Boolean dataBind, Object dataItem, DataGridColumn[] columns, TableRowCollection rows, PagedDataSource pagedDataSource) +212
    System.Web.UI.WebControls.DataGrid.CreateControlHierarchy(Boolean useDataSource) +1519
    System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) +56
    System.Web.UI.WebControls.BaseDataList.DataBind() +72
    NetStudio.NetPoint.WebApplication._Default.b() +311
    NetStudio.NetPoint.WebApplication._Default.c(Object A_0, EventArgs A_1) +55
    System.Web.UI.Control.OnLoad(EventArgs e) +99
    System.Web.UI.Control.LoadRecursive() +47
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
  •  11-22-2006, 7:35 AM 181 in reply to 180

    Re: Server Error in /Netpoint application

    Attachment: Web.config.txt
    Thanks for the comments Lucas. It looks like this is a problem with the configuration file for the NetPoint web site. Check the Web.config file located (by default) at C:\Program Files\Neutex NetStudio\NetPoint\www. You should see a line that looks like the following:

    <add key="Main.ConnectionString" value="Data Source=Your_Server;Initial Catalog=NetStudio;User ID=NetStudio;Password=neutex" />

    Where Your_Server is the name of the system the NetPoint database resides on.

    If this line is missing, I've attached a copy of the file. All you need to do is open it with Notepad, replace Your_Server with the name of your database server, and save it in your C:\Program Files\Neutex\NetPoint\www directory.

    Let me know if you run into any problems. Happy Holidays!

  •  11-23-2006, 4:47 AM 182 in reply to 181

    Re: Server Error in /Netpoint application

    Hi Shannon,

    Thanks for the reply.  I have done as instructed but still get the same error. 

    I have tried using the standard computer name, the FQDN and the IP address as the data source and restarted the netpoint service and IIS after each change, none seemed to make a difference.

    Any ideas?

    Thanks for your help
  •  11-27-2006, 4:09 AM 183 in reply to 182

    Re: Server Error in /Netpoint application

    What version of Windows is this running on?  Windows 2003 Server?  If so, please check the following:

    1) Open the IIS Manager snap-in.
    2) Expand the Web Sites > Default Web Site node.
    3) Right click on the NetPoint virtual directory and select Properties.
    4) The "NetPoint Properties" dialog will appear, click on the ASP.NET tab.
    5) The properties on this page should contain the following values:

    ASP.NET version: 1.1.4322
    Virtual path: /NetPoint
    File location: C:\Program Files\Neutex NetStudio\NetPoint\www\web.config

    The file location should be the address to the same web.config file you modified in the previous post.  You can also do the following to verify this file has been setup properly:

    1) On the ASP.NET tab, change ASP.NET version to 2.0.50727 (assuming you have ASP.NET 2.0 installed).
    2) Click Apply.
    3) Click on the Edit Configuration button.
    4) An "ASP.NET Configuration Settings" dialog will appear, in the "Application settings" panel verify the Main.ConnectionString key exists and is set properly (according to the previous post).
    5) Click OK.
    6) Change ASP.NET version back to 1.1.4322 and click Apply.

    If all of this checks out, you can reinstall NetPoint. After uninstalling NetPoint, make sure the NetPoint virtual directory gets deleted. When reinstalling NetPoint, specify the existing database server the NetPoint database resides on, however do not check the "Create Neutex NetPoint database" option.

    Let me know if this fixes your problem.

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems