----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: rags_rao Message 2 in Discussion the refresh problem is beacuse of caching try giving some values for VaryByParam. Pinvoke - i'm not sure. maybe because of some com objects that u r using Regards, Raghunandan R, Software Engineer, Nous Infosystems, #1,1st main,1st block,kormangala,bangalore - 560034. ph: +91-80-553 4208/552 2086 -----Original Message----- From: Shesha [mailto:[EMAIL PROTECTED] Sent: Monday, January 12, 2004 2:39 PM To: BDOTNET Subject: Page Refresh and PInvoke Problem - ASP.NET - Brinksters Account New Message on BDOTNET Page Refresh and PInvoke Problem - ASP.NET - Brinksters Account Reply Reply to Sender Recommend Message 1 in Discussion From: Shesha Hi, I have developed an application in ASP.NET and hosted on Brinksters. I have framework 1.1 I have 2 issues Issue 1 - Page refresh Issue 2 - Invalid PInvoke metadata format. Issue 1) Page Refresh I have a form for customers. If I accesss the page, it displays the page with the previously accessed values. Surprisingly this works perfectly fine when I run on a local host. Below is the code of customer aspx and web.config Appreciate your help on this. Shesha CODE FOR CUSTOMER.ASPX ----------------------------------- <%@ Page Language="vb" AutoEventWireup="false" Codebehind="decust.aspx.vb" Inherits="MTMS.decust"%> <%@ OutputCache Duration="1" VaryByParam="None" Location="Server"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <title>decust</title> <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"> <meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE"> <meta content="JavaScript" name="vs_defaultClientScript"> <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema"> <LINK href="right.css" type="text/css" rel="stylesheet"> </HEAD> <body MS_POSITIONING="GridLayout"> ....body codes </body> </HTML> CODE OF WEB.CONFIG ---------------------------- <?xml version="1.0" encoding="utf-8" ?> <configuration> <!-- <add key="CountryRegionsStore" value="OleDB" /> <add key="CountryRegionsStoreParameters" value="Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=AimsErp;Data Source=AimsErp;" /> --> <startup> <supportedRuntime version="v1.1.4322" /> </startup> <system.web> <compilation defaultLanguage="vb" debug="true" /> <customErrors mode="Off"/> <!-- <customErrors mode="Off" defaultRedirect="error.htm"> <error statusCode="404" redirect="error.htm" /> </customErrors> --> <!-- <authentication mode="None" /> --> <authorization> <allow users="*" /> <!-- Allow all users --> <!-- <allow users="[comma separated list of users]" roles="[comma separated list of roles]"/> <deny users="[comma separated list of users]" roles="[comma separated list of roles]"/> --> </authorization> <trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" /> <!-- <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20" /> --> <!-- GLOBALIZATION This section sets the globalization settings of the application. --> <globalization requestEncoding="utf-8" responseEncoding="utf-8" /> </system.web> </configuration> Issue 2 -------- Sometimes while accessing a page, I get the following error Server Error in '/' Application. Invalid PInvoke metadata format. 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.TypeLoadException: Invalid PInvoke metadata format. 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: [TypeLoadException: Invalid PInvoke metadata format.] System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction) +474 System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction) +370 System.Data.SqlClient.SqlConnection.Open() +384 MTMS.login.ValidateUserIdPassword() +204 MTMS.login.btnSubmit_Click(Object sender, EventArgs e) +12 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain() +1263 View other groups in this category. ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
