|
hi frnds,
i have two web.confif file which have some different settings for two application. plz can u help to have one web.config file which have all settings which these two different web.config file have . i know its a tedious work to do ..........but plz help me out its urgent request for me.
Below u will find two different web.config file and another question is it possible to have two web.config file for one application
---------------1st-------------------------------------
<?xml version="1.0"?>
<configuration>
<connectionStrings/>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true">
<assemblies>
<add assembly="CrystalDecisions.CrystalReports.Engine, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.ReportSource, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.Shared, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.Enterprise.Framework, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.Enterprise.InfoStore, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>
</compilation>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<sessionState timeout="15"/>
<httpHandlers>
<add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
</httpHandlers>
</system.web>
<location allowOverride="true" inheritInChildApplications="true">
<appSettings>
<add key="DialConStr" value="Data Source=HP-SOFTWARE\SQLEXPRESS ; Initial Catalog=dialdb ; Trusted_Connection=true;" />
<add key="CrystalImageCleaner-AutoStart" value="true" />
<add key="CrystalImageCleaner-Sleep" value="60000" />
<add key="CrystalImageCleaner-Age" value="120000" />
</appSettings>
</location>
</configuration>
---------------2---------------------------------------------------
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<system.web>
<xhtmlConformance mode="Transitional"/>
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</controls>
</pages>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true">
<assemblies>
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>
</system.web>
<system.web.extensions>
<scripting>
<webServices>
<!-- Uncomment this line to customize maxJsonLength and add a custom converter -->
<!--
<jsonSerialization maxJsonLength="500">
<converters>
<add name="ConvertMe" type="Acme.SubAcme.ConvertMeTypeConverter"/>
</converters>
</jsonSerialization>
-->
<!-- Uncomment this line to enable the authentication service. Include requireSSL="true" if appropriate. -->
<!--
<authenticationService enabled="true" requireSSL = "true|false"/>
-->
<!-- Uncomment these lines to enable the profile service. To allow profile properties to be retrieved
and modified in ASP.NET AJAX applications, you need to add each property name to the readAccessProperties and
writeAccessProperties attributes. -->
<!--
<profileService enabled="true"
readAccessProperties="propertyname1,propertyname2"
writeAccessProperties="propertyname1,propertyname2" />
-->
</webServices>
<!--
<scriptResourceHandler enableCompression="true" enableCaching="true" />
-->
</scripting>
</system.web.extensions>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</handlers>
</system.webServer>
</configuration>
----------------------------------------------------------------------
Thanks & Regards
Manish Singhal
Software Engineer
Maxworth systems(Delhi)
|
|
|
|
|
1. Yes one application can have multiple web.config files but they should be placed in different directories.
2. Combining them is not a difficult task. Just make sure that they are placed in correct parent tags
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
Thanks for ur concern.
but i am still confuse that if only one aspx page of application is using 2nd one webconfig file from my earlier blog and all other around 30 aspx pages using 1st one webconfig file from my earlier blog how to do that.
how aspx page with know from which config file settings to be used as there is no link code .......................
plz elaborate where to keep both the webconfig file in application
Thanks a lot !
Thanks & Regards
Manish Singhal
Software Engineer
Maxworth systems(Delhi)
|
|
|
|
|
If you have pages from different blogs then i would recommend you to place them in different folders and then each folder can have its own web.config file
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
thanks people i joined both the web.config file in one and working fine...........................thanks a lot.........
Thanks & Regards
Manish Singhal
Software Engineer
Maxworth systems(Delhi)
|
|
|
|
|
First put thsi question in right forum. Suitable form for this question would be C# forum not ASP.NET forum
Anand Desai
Developer
Atharva Infotech
|
|
|
|
|
Hi All,
I have a requirement wherein I have to provide a datagrid with EDIT/DETLETE/ADD functionality without using the datagrid columns. This I have achieved using buttons but performance wise the app is crashing after loading 1600 records. I need to add 10000 records and be able to EDIT/DELETE them.
Any help is greatly appreciated!..
h
|
|
|
|
|
I will not recommend you to load 1600 records at once in datagrid. It is in itself a performance bottle neck. I would recommend you to optimize the store procedure which you are using to load the records. It should return only those records which are important for the user. Implement paging, and when user clicks on the next page only then load the next records.
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
Never try to load this amount of records at time, it should definatley be a performance issue. Try to display minimum no of records that reqired. use more filter that can give you some less no of records
Thanks
cheers,
Abhijit
|
|
|
|
|
Thanks Guys! Even I was thinking of the same but my client wont accept. Now i'll have to make them understand.
But still if anyone has any ideas apart from using Paging, please let me know
Sean
|
|
|
|
|
iam using an iframe of server control for mailing purose in my application where iam typing some text here now iam clicking save to save the text in the iframe as a draft.in the click iam getting the text of iframe .but the text in the iframe is not displaying after button click.but the values which are entered in the textboxes for subject, to address are remain as it is after button click.
|
|
|
|
|
lakshmichawala wrote: but the text in the iframe is not displaying after button click
is the text box Read only ?
cheers,
Abhijit
|
|
|
|
|
Question: Deploying Web Applications using Vs.net 2005 Web Setup Project
I am using vs.net 2005 web setup project, now have the following questions:
1. After the installation is completed , virtual directory need to manually set up permissions. Called for the adoption of procedure to achieve set up virtual directory permissions.
2. If this software has installing, prompts for the user: the database whether to retain or delete.
Can you help me?
Thanks.
good
|
|
|
|
|
1. You dont need to setup permissions manually. There is a property ExecutePermissions, Set it.
2. For installing database or deleting, add an installer class and add it to custom actions.
Hope it helps.
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
I have a dropdown list with a few items in it. I am developing a control in which whenever a user mouses over an item in the list a flyout containing a couple of buttons appears dynamically. Could someone help me understand how I should go about implementing this.
Thanks,
Sudeep
|
|
|
|
|
My application is written in ASP VB.Net VS-2002. I need to basically call another VB executable. When using either the shell or Process.Start method, I consitently loose my ASP Session variables upon returning to the orginal .aspx. Any suggestions would be great. --Tomb
|
|
|
|
|
This did solve my direct problem. Thank you. I'm concerned about web articles I'm reading about problems with Hang-Ups and performance in a full Production MultiUser environment when using SQLServer sessionState database ASPState. Anyone have any warnings, tips or suggestions.
|
|
|
|
|
Why are you using Process.Start in a web page ?
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
This a long story. In short, I'm using Process.Start on the Web application because I need to call executables and leverage pre-existing developed components. NOTE: Any call or shell from this area of the Asp .vb module was loosing my Session variables. Even shells to MarshalAs.exe. Articles researched on the Web and MSDN led me to Process.Start as the best method in a ASP VB.Net application.
|
|
|
|