Thanks! I did what you stated. But it didn't work.
peshawarcoder
Posts
-
Error with Atlas -
web.config errorThanks! I have ensured the single entry of section decleration and definition. The problem occured when one my project coworker backed up the old version of web application and created copy for changes. He created a folder on my local system and bound it to source project. It works ok on his system and other member's system but fails with mine one. Thanks!
-
Error with AtlasI have Microsoft ASP.Net extensions for atlas. When i run my application i get the following error:
Unknown server tag 'asp:ScriptManager'
Kindly, help me if you know about it. Thanks!
-
web.config errorI have added a section (named 'preliminaryQuoteGeneratorConfiguration') decleration and definition to the web.config file. But when i build the solution it gives me the following error: Section or group name 'preliminaryQuoteGeneratorConfiguration' is already defined. Updates to this may only occur at the configuration level where is defined. (F:\...\TestWebSite\Web\web.config line 12) even though it is declared and defined within this file (web.config) only. Please help me in this regard. Thanks!
-
Dynamically Updating web.configThanks. I have read and written custom configuration sections programming in windows applications. But it fails to update the web.config. I may review these further. Thank you once again.
-
Dynamically Updating web.configHi! How can i update the web.config file from asp.net? Thanks.
-
Submit button, onClick does not work automaticllySorry! the site did not display my contents entirly and correctly. web.config is as under:
web2.config is as under:
ObjectAConfiguration class is as under:
using System;
using System.Collections.Generic;
using System.Text;using System.Configuration;
using System.Xml;namespace MyApp
{
[Serializable]
public class ObjectAConfiguration:ConfigurationSection
{#region Properties \[ConfigurationProperty("property1", DefaultValue = 60.00F)\] public float Property1 { get { return (float)this\["property1"\]; } set { this\["property1"\] = value; } } \[ConfigurationProperty("property2", DefaultValue = 1.50F)\] public float Property2 { get { return (float)this\["property2"\]; } set { this\["property2"\] = value; } } #endregion }
}
Problem Area is bellow:
MyApp.ObjectAConfiguration objAConf= (MyApp.ObjectAConfiguration)ConfigurationManager.GetSection("objectAConfiguration");
The above did not find the web2.config file and thus objectASection section. Thanks.
-
Submit button, onClick does not work automaticllyweb.config is as under:
web2.config is as under:
ObjectAConfiguration class is as under: using System; using System.Collections.Generic; using System.Text; using System.Configuration; using System.Xml; namespace MyApp { [Serializable] public class ObjectAConfiguration:ConfigurationSection { #region Properties [ConfigurationProperty("property1", DefaultValue = 60.00F)] public float Property1 { get { return (float)this["property1"]; } set { this["property1"] = value; } } [ConfigurationProperty("property2", DefaultValue = 1.50F)] public float Property2 { get { return (float)this["property2"]; } set { this["property2"] = value; } } #endregion } } Problem Area is bellow: MyApp.ObjectAConfiguration objAConf= (MyApp.ObjectAConfiguration)ConfigurationManager.GetSection("objectAConfiguration"); The above did not find the web2.config file and thus objectASection section. Thanks.
-
Multiple Configuration FilesThanks. I found a lot of links on google and visted all of them. In one looked at the file attribute of appSettings that is used to refer appSettings stored in external file. I have my own custom settings in my custom sections. How to refer those?
-
Multiple Configuration Files -
Confiugration filesCan i use multiple configuration files within a Windows or ASP.NET application? If yes then how? I tried it but application only reads configuration from a single file. Thanks.
-
Configuration filesThanks. Your suggestion to implement my own configuration setting retrieval scheme will help me to a great extent. Did you mean to add configuration sections to the web.config file and provide code that my objects use to get information from their respective configuration sections in the web.config file. (I have already done this.) But i want that there should be a separate configuration file from which objects instantiated from the classes in the class library get thier data.
-
Configuration filesHi! I have a project say 'project1'. I have added some configuration sections to app.config file. The configuration sections contain initialization data for various objects. The objects read those configration information to initialize themselves. It works correctly. But when i create a class library of this project and add it to a web application the objects become unable to read thier configuration data from app.config file. So when i add that data to the web.config file it works fine. But i want my objects be able to read configuration data from the app.config file. How can i do that? Thanks.
-
Explorer is corruptedWhen i install windows-xp on pentium-4 HT, 865 GBF main board and all drivers the explorer corrupts. What is the problem and remedy? Thanks.
-
NHibernateThe contents a pasted in the first post were completely appeared there. I tried it again to enable the viewer interpret the message. But agin the same hell occured.
-
NHibernateHi! I have MS SQL Server 2005 installed on my system. I am using NHibernate to interact with my database named 'BRUSDB'. I have set the following configuration for nhibernate:
when i run the program The type initializer for 'NHibernate.Cfg.Configuration' threw an exception: 'System.TypeInitializationException' at line: Configuration cfg = new Configuration(); If any one has know then kindly guid me. Thanks.
-
NHibernateHi! I have MS SQL Server 2005 installed on my system. I am using NHibernate to interact with my database named 'BRUSDB'. I have set the following configuration for nhibernate:
when i run the program The type initializer for 'NHibernate.Cfg.Configuration' threw an exception: 'System.TypeInitializationException' at line: Configuration cfg = new Configuration(); If any one has know then kindly guid me. Thanks.
-
Regular ExpressionThanks.
-
Regular ExpressionThanks to all bodies. I found the solution myself. Regular Expression is as under: (?:)(.*)(?:)
-
Regular ExpressionI hav Input String as under: Inside XML I require the following Result: Inside XML I need regular expression for this. Thanks.