ok can you tell me how to read the web.config file's configuration section from getsection method
?
? pls giv me example
User Profile
Collapse
-
-
Frinny
this method-
Code:Dim webStr As Configuration.Configuration=WebConfigurationManager.OpenWebConfiguration()
Code:NullReferenceexception was caught object reference not set to an instance of an object
Code:Dim
Leave a comment:
-
thanks for your reply frinny
but it does not help and its almost same as i already did above..
well i am not able to read connection string by above methods till now
you or anybody has the solution pls tell meLeave a comment:
-
how to read web.config from iis web directory
hi all
i am using a windows application as well as web application developed in visual studio 2010 beta 2 using .net framework 4 on windows xp/windows server 2008/windows7
i am able to read web.config file on system running windows XP sp2 but same is not read by windows 7 and windows server 2008
i installed my web application on iis 7 on said windows with .net 4 but it not read web.config by my windows... -
gr8Ashish replied to Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))in .NETsame error
i am having same problem but not with office component
error --------------------------------------------------------------------------
Retrieving the COM class factory for component with CLSID {E82A4C8E-7CBA-11D3-8D90-005004561FA5} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSN OTREG)).
Description: An unhandled exception...Leave a comment:
-
but there is not any retrival of data here
i insert at first time that automatically takes different format(dd.MM.yy yy h:mm:ss)
when i update(overload same field) i got different format(dd/MMM/yyyy h:mm:ss tt) - default format
only change that i use same function Microsoft.Visua lBasic.FormatDa teTime(Date.Now , DateFormat.gene raldate)
but from different plateform [web(.aspx) and vb application(.vb )]...Leave a comment:
-
thanks for your reply
but the problem seems not with sql server it stored whatever it vb code provide it to variable
at first time - i got sqlserver value in dd.mm.yyy h:mm:ss
an dwhen update i got sql server value is changed to dd/MMM/yyyy h:mm:ss tt (default format)...Leave a comment:
-
DateTime Value differ
Hi all,
I am facing a problem. I create a application that is insert date and time in SQL Server 2005 table from web page then i fetch this datetime type field in vb.net application and adding some hours or minute into it then again update that field
but the problem is when i insert via web (my .aspx page) it save as different format then the other one same function i use in vb.net application...Leave a comment:
-
DateTime Value differ
Hi all,
I am facing a problem. I create a application that is insert date and time in SQL Server 2005 table from web page then i fetch this datetime type field in vb.net application and adding some hours or minute into it then again update that field
but the problem is when i insert via web (my .aspx page) it save as different format then the other one same function i use in vb.net application will give me different format...
No activity results to display
Show More
Leave a comment: