Query IIS Configuration?
Jul 5, 2011
I'm a newbie to this, so hope I can explain myself well enough. I'm trying to develop an app that will need to query IIS configuration settings. This includes Default Website settings, Virtual Directory settings etc.
View 1 Replies
ADVERTISEMENT
Jul 18, 2012
i am putting this query in my querybuilder in the table adapter but i need to make the query only return the transaction done today!! i dont know the syntax to get the cuurent date today. this query should work in the tableadapter query configuration wizard!!!
SELECT Trans_ID, Trans_Cash, Trans_Deposit, Trans_Mtc, Trans_Alfa, Trans_Desc, Trans_Delete_Flg, Trans_Date, Trans_User_Name, Trans_Admin_Flg,
Trans_Msg_Cost
[code]....
View 3 Replies
Nov 16, 2010
Receive 'ConfigurationManager' is not a member of 'Configuration' in VS2008.I read all of the topics in the forum about this error Tried adding areference to System.Configuration.dll to the project and an "Imports System.Configuration" to the vb file.Still get an error
View 7 Replies
Feb 7, 2011
I have 3 components :
1.Manager : dll containing Iterface definition and other things
2.Implementation: dll containing Implementation of the Interface
3.Executable: (maybe this one could be a external application or another dll using the libraries)
I have particular methods (iside the interface dll file) that extract information of real Implementation from AppSettings keys in order to instance it using reflection. I use the Manager inside the Excecutable, but when I try to retrieve a especific key defined in "Manager.dll.config" (appSettings), the value returned is empty because the configuration file used is "Excecutable.exe.config" I need this configuration information in Manager config file because this Manager will be used from other programs and the configuration must be centralized into that config file to replicate the possible changes to every app calling this dll.How can I to specify that the ConfigurarionManager.AppSettings must extract values from manager.dll.config file?
View 3 Replies
May 2, 2012
I am creating a custom config section that will allow me to manage what ELMAH exceptions I want to ignore from my VB.NET/ASP.NET app. Here's my code. I made it easy to paste in a blank code file if anyone's up to the challenge of diagnosing the problem.
CODE:
When I execute this code:
CODE:
I get the error An error occurred creating the configuration section handler for IgnoredExceptionSection: Could not load file or assembly 'WEB' or one of its dependencies..
What boggles my mind is that this all works fine in my C# console test app after I convert the code from VB.NET using a web utility. However, when I paste the VB code from my web app into my VB.NET console test app, it doesn't work there, either, so it appears to be a C#/VB issue. What am I doing wrong here?
View 1 Replies
Aug 19, 2010
Here is the code:
Function getData(ByVal id As String)
Dim reader As SqlClient.SqlDataReader
Dim statement As String
[code].....
View 1 Replies
Feb 29, 2012
When Creating a query using the sear Criteria Builder . I keep getting the error : "The schema returned by the new query differs from the base query" what does that mean and how do i avoid this problem in future
View 2 Replies
Jan 23, 2010
How do I select DEBUG or RELEASE configuration in Visual Basic 2008?The drop down list Project > Properties > Compile > Configuration that was in Visual Basic 2005 is gone from Visual Basic 2008.software developer
View 4 Replies
Jan 12, 2009
I want to use app.config as outlined here[URL]..When I add the following code, the word using is underlined
using System.Configuration And in this piece of code ConfigurationSettings is undelined
Dim dbPath as String = ConfigurationSettings.AppSettings("DatabasePath")
Dim email as String = ConfigurationSettings.AppSettings("SupportEmail")
View 7 Replies
Sep 9, 2011
where is the configuration of vb.net? because I Need to set a User for the checker Role before go to verifier .. my boss told me if i will set it to config or i will hardcode it to set a new checker
View 1 Replies
Mar 26, 2010
how to add and use configuration file in the vb.net application like web config file can i change the value in the configuration file
View 14 Replies
Nov 28, 2010
When we are typing the msconfig in Start>Run the window is appearing that is named System Configuration Utility . Now I want with WMI and API objects access this data and change them by programming in VB6. Specially, I want to change data on Start-up lists and Boot up services Can any one suggest me a solution?
Note: When I am going to use registry datas in compare of System Configuration Utility I have found that all of applications are not listed in registry + startup folder of windows. I think there is a provider for this issue in windows that returns or manages all applications on startup. I am searching for that.
View 4 Replies
Sep 8, 2009
When I go to Build, Configuration Manager is not listed there. How do I get to it?
View 6 Replies
Aug 29, 2011
how to configure the adodc in vb2008? I'm using MySQL Connector Net 6.4.3 for my DB and i don't know how to configure it using adodc control...like what is the connection string and the provider....All I want is to link my DB to a particular textbox to display information.
View 1 Replies
Oct 13, 2010
I'm trying to connect to a database in my app, i'm using the app.config file to provide the connection string to the application.When i try to stablish de connection i get the following error msg: ConfigurationManager is not a member of Configuration. [code]
View 1 Replies
Apr 15, 2011
how to solve the error message " ConfigurationaManager not declared" when used to connect to database here is the line of code which gives the error
SQLConnStr= ConfigurationManager.ConnectionStrings("SQLConnStr").ConnectionString
View 1 Replies
Oct 19, 2011
I am getting the below error message in my WCF service. Below is my web,config. I have tried a few things and nothing has resolved the error.[code]
View 2 Replies
Feb 2, 2012
I am trying to send email with gmail smtp server and am getting this error even whe using different accounts to test
Dim myMail As New MailMessage
myMail.To.Add(New MailAddress("myemail@yahoo.com"))
myMail.Subject = "subject"
myMail.From = New MailAddress("fromemail@gmail.com")
[code]....
An the error am getting
451 4.7.1 Local configuration error, please try again later
View 1 Replies
Jun 22, 2010
we have several applications in Vb.Net using the built in log system (My.Log) to write log information. Until now this system was configured by the application.config file before execution but now we want to let the user to choose some options.
Is there a way that does not requires to parse the XML file and process it? Is there available something like My.Settings that will do the dirty job done?
An example would be to be able to modify the DefaultSwitch value from Verbose to Warning or changing a property of the FileLog like the maxFiles attribute:
<switches>
<add name="DefaultSwitch" value="Verbose" />
</switches>
<sharedListeners>
[Code]....
View 1 Replies
Jul 19, 2011
On the compile tab of the project properties: If you look at the configuration dropdown it typically shows debug/release/active/all. I attempted to add another option at one point in the build->configuration manager window, but decided that I didn't want to keep it. I removed it there, but it keeps showing up in the dropdown on the properties, as well as generates a folder by that name.
Does anyone know how to remove this? I can't find any "delete" or otherwise options.
View 1 Replies
Aug 23, 2011
Coding in VB.net in VS 2010. I have:Imports System.Configuration and I added a reference to System.Configuration.
When
**MsgBox(ConfigurationManager.AppSettings("sDBName").ToString)**
[code]....
View 2 Replies
Apr 2, 2009
I am trying to access settings in my config file, which is a series of xml elements listed as such:
[Code]...
View 6 Replies
Nov 22, 2008
I am trying to update the CallDirectory in our app.config file during installation. The file exists, however I cannot seem to narrow down the right key combination using the Configuration classes. I am thinking <CallCtrl.Settings> throw it off as this is differant from previous versions. This is the default structure created by Setting.Setting w/in the VSDesigner.
[Code]...
View 3 Replies
Aug 21, 2009
We have a new build machine to start using for our programming team. We are still trying to figure out how we want to organize everything to get the best configuration for building EXEs and DLLs.
We are using VB6 and VB.Net 2005, and VSS2005.
We were thinking of making working folders set for each project, release and support tickets. Does anyone have experience with a similar set up? What were your likes/dislikes?
View 2 Replies
Aug 4, 2010
I have some code that access an API out on the web. One of the API's parameters allows me to let them know that I am testing.I would like to only set this parameter in my code when I am testing. Currently, I just comment the code out when I do a release build. Is there an automatic way of doing this based on the build configuration?
View 6 Replies
Apr 15, 2009
Does anyone have or has anyone come across an in depth guide to the .net app.config? I'm having significant issues trying to find a definitive guide to this area of .net.I can already handle custom configuration sections, from basic key/value pair settings right through to complete custom configuration handlers which I struggled to find information on, but I cannot find any documentation regarding basic native .NET functionality of the configuration file...for instance, with regards to BCL configuration. I've gone through the machine.config.comments and the config.xsd files and it has provided a little insight but not enough to fully grasp the full potential of the config file. I've also trawled through everything I can find on Safari and only managed to come up with a couple of useful tidbits that I wasn't previously aware of but it seems this area of .NET is extremely poorly documented and unless you have a very specific purpose in mind, it's useless trying to find information on it.
View 1 Replies
Mar 2, 2012
Here's a question the popped in my mind: Is it possible to show only property(ies) based on what the user has passed parameter in the contructor? To make this question more clear, I'll illustrate a simple class with some properties.
[Code]...
View 1 Replies
Sep 8, 2011
Every .NET project I've worked on uses an app.config file for its configuration. Fair enough. "is there a better way?" (in the spirit of continual learning of course)I guess my specific questions are:
Does it matter either way if I use app.config or settings file?Are there any scenarios where settings files should not be used e.g web sites where you should use a web.config instead?Other than not having to edit xml, are there any other benefits gained by using settings instead of app.config, e.g. its easier to deploy or maintain apps etc.
Clarification: I'll put this question another way: Can I completely ignore app.config files if I want to and keep all the configuration in a settings.cs file and interact with configuration via the designer only?
View 2 Replies
Jul 30, 2011
I have a vb.net 2008 desktop application to make changes to it. Since the production database will be changing within a month, I know that i need to change the .net remoing.
1.I change the configuration manager file (app.config) in debug mode to point to the 'new' test database, however the changes are not pick up. The application is still pointing to the current database. Thus can you tell when what kind of files.I need to change so that this application picks up the 'test' data base?
2. After I have tested the changes that need to be made, I will need to deploy the changes. Thus i am assuming that I will need to do something different so I can put the application changes into production. Thus, can you tell what kind of extra dlls,exe, xml, and other files I will need to include in the deployment package? Is there anything else I need to do in the deployment package? This application uses .net remoting to have the database connect to the various proejct files in the entire solution file.
View 1 Replies
Dec 9, 2005
When i try to run my app I get this exception "Configuration system failed to initialize"I recently added a datascource to the app and am assuming that something has gone wrong there but it was all working ok and then this error just started.I assume it's a problem with my appconfig file which i'll post here I cant see anything wrong with it but.!!I've tried deleting the ConnectionString Section but nothing helps and i cant run my app at
[Code]...
View 1 Replies