|
Hi,
i am working on social networking website, I have to upload my(end user) address book into my database(with user permissions), while uploading, i want to check that is valid E-mail address or not, or atleast domain, please help me out, if any web service, or Code available?
Regards
murthy
|
|
|
|
|
there is excellent article on cp A Managed C++ Email Validator Control for ASP.NET [^] that shows how to it in Managed C++. you can learn from that article
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Hi,
I have a VCard file from Mac OS, I want to read that in Asp.net into dataSet. Please help me out, if any knows the code.
Regards
Murthy
|
|
|
|
|
Hi,
I am using the java script to show hide the control. I am using the style.display property in javascript. I want access the changes in the style.display property in code behind.
The changes are not refelected on server side.
Please suggest me, how to access the changes in style.display in code behind
|
|
|
|
|
prashantkharade wrote: I want access the changes in the style.display property in code behind.
Why do you want to do that? Showing/hiding of control is client side functionality. You can not access the state from the server.
You can save the state on hidden field and pass it to the server though!
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Hi,
When i am clearing the control values using java script, but after post back wehen i access control values it gives me the previous values.(the valuses which are set on previous page load.)
Please, Let me the reason for it and the means of acces the modified control values using javascript after PostBack.
Thanx in advance.
Regards,
Prashant.
|
|
|
|
|
Why don´t you use <asp:panel> instead of <div>?
The Panel control generate the same code ( <div></div> ) and can be manipulated in code behind.
modified on Friday, April 17, 2009 6:11 PM
|
|
|
|
|
HI FRIENDS
i got the error like below
"The state information is invalid for this page and might be corrupted."
this is error bcose of data in ViewState is lost or corrupt.
i also tried to enableviewstate="false". but yet error is thier.
any one have idea about this. then plz reply
regards
keyur satyadev
|
|
|
|
|
Does this[^] Microsoft kb helps?
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Guys,
I'm developed a quiet complex searh page for my company and produced the results in a datagrid.
I'm following N-Tier structure so I have a view model (SortSearch.aspx), Business Logic (SortSearchManagement.vb) and Data Access Layer (SortsearchDA.vb).
I created ObjectDataSource that is getting list of objects (SearchResultEntity) and the searching conditions are stored in a session as well as sortingexpression, sorting direction and others as it shows below
<asp:ObjectDataSource ID="SearchResultsObjectDataSource" runat="server"
SelectMethod="getRequests" TypeName="ATVS.Initiation.BLL.SortSearchManager"
SortParameterName="SortExpression">
<SelectParameters>
<asp:SessionParameter Name="searchCriteria" SessionField="SearchCriteria"
Type="Object" />
<asp:SessionParameter DefaultValue="" Name="SearchType" SessionField="TYPE"
Type="String" />
<asp:SessionParameter Name="UserGroup" SessionField="USERGROUP" Type="Int32" />
<asp:SessionParameter Name="SortExpression" SessionField="SortExpression"
Type="String" />
<asp:SessionParameter Name="SortDirection" SessionField="SortDirestion"
Type="Int32" />
</SelectParameters>
</asp:ObjectDataSource>
The grid contains multiple columns and some of its columns contains buttons and hyperlink as shown below:
<asp:GridView ID="resultsGrid" runat="server" AllowPaging="True"
AutoGenerateColumns="False"
DataSourceID="SearchResultsObjectDataSource" CssClass="grid"
AllowSorting="True">
<Columns>
<asp:HyperLinkField DataNavigateUrlFields="ARID" DataNavigateUrlFormatString="/LastResponse.aspx?ARID={0}"
HeaderText="ARID" Target="_blank" DataTextField="ARID"
SortExpression="ARID">
<HeaderStyle CssClass="groupHeading" />
</asp:HyperLinkField>
<asp:BoundField DataField="InitiatorName" HeaderText="Initiator Name"
SortExpression="INITIATOR_LOGIN" >
<HeaderStyle CssClass="groupHeading" />
</asp:BoundField>
<asp:BoundField DataField="LloydeNo" HeaderText="Lloyde #"
SortExpression="LLOYDS_NBR" >
<HeaderStyle CssClass="groupHeading" />
</asp:BoundField>
<asp:BoundField DataField="TankerName" HeaderText="Tanker Name"
SortExpression="CURRENT_NAME" >
<HeaderStyle CssClass="groupHeading" />
</asp:BoundField>
<asp:BoundField DataField="Port" HeaderText="Port" SortExpression="PORT_NAME" >
<HeaderStyle CssClass="groupHeading" />
</asp:BoundField>
<asp:BoundField DataField="InitiationDate" HeaderText="Initiation Date"
SortExpression="created_date" >
<HeaderStyle CssClass="groupHeading" />
</asp:BoundField>
<asp:BoundField DataField="Status" HeaderText="Status"
SortExpression="REQUEST_STATUS_NAME" >
<HeaderStyle CssClass="groupHeading" />
</asp:BoundField>
<asp:BoundField DataField="EvaluatorName" HeaderText="Evaluator Name"
SortExpression="EVALUATOR" >
<HeaderStyle CssClass="groupHeading" />
</asp:BoundField>
<asp:BoundField DataField="DaysLeft" HeaderText="Days Left"
SortExpression="EXPIRATION_DATE" >
<HeaderStyle CssClass="groupHeading" />
</asp:BoundField>
<asp:BoundField DataField="Expirydate" HeaderText="Expiry Date"
SortExpression="EXPIRATION_DATE" >
<HeaderStyle CssClass="groupHeading" />
</asp:BoundField>
<asp:ButtonField ButtonType="Button" CommandName="Select_Override"
Text="Override" >
<ControlStyle CssClass="button" />
</asp:ButtonField>
<asp:ButtonField ButtonType="Button" CommandName="Select_Followup"
Text="Follow Up" >
<ControlStyle CssClass="button" />
</asp:ButtonField>
<asp:ButtonField ButtonType="Button" CommandName="Cancel" Text="Cancel" >
<ControlStyle CssClass="button" />
</asp:ButtonField>
<asp:BoundField DataField="InitiatorGroup"
SortExpression="InitiatorGroup" />
<asp:BoundField DataField="StatusID" SortExpression="StatusID" />
<asp:BoundField DataField="IsInitiatorReply"
SortExpression="IsInitiatorReply" />
</Columns>
<FooterStyle HorizontalAlign="Center" />
<HeaderStyle CssClass="groupHeading" />
</asp:GridView>
I turned autosorting on and wrote a cutomized sorting event as shown below
Protected Sub resultsGrid_Sorting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewSortEventArgs) Handles resultsGrid.Sorting
Session("SortDirestion") = CInt(e.SortDirection)
Session("SortExpression") = e.SortExpression.ToString()
resultsGrid.DataBind()
End Sub
I have two issues:
1. The session value SortExpression is passing nothing to Data Access Layer? While it is passing all others?
2. Once I click on a column header every thing went well but once the grid is rendering it disappears?!!
Here is the Page load event for the aspx file
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If IsNothing(Session("USERGROUP")) Then
Response.Redirect("Default.aspx")
End If
Session("TYPE") = Request.QueryString("TYPE")
resultsGrid.Visible = False
If Session("TYPE") = "" Then
Session("TYPE") = "ALL"
End If
Dim type As String = Session("TYPE")
If type.Equals("FOLLOWUP") Or type.Equals("OVERRIDE") Then
statusDropDownList.Visible = False
StatusLabel.Visible = False
End If
If Not IsPostBack Then
Session("SortDirestion") = 0
Session("SortExpression") = "ARID"
End If
End Sub
Here are all events for GridView control
Protected Sub resultsGrid_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles resultsGrid.PageIndexChanging
resultsGrid.PageIndex = e.NewPageIndex
'resultsGrid.DataBind()
startSearch()
End Sub
Private Sub resultsGrid_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles resultsGrid.PreRender
If resultsGrid.Rows.Count = 0 Then
ErrLabel.Visible = True
ErrLabel.Text = "There is no result matching your search criteria"
Else
ErrLabel.Visible = False
End If
'If Results.Count > 0 Then
populateResultGrid(Session("USERGROUP"))
'End If
End Sub
Protected Sub resultsGrid_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles resultsGrid.RowCommand
Dim x As Integer = 0
If e.CommandName.Equals("Select_Override") Then
x = CInt(e.CommandArgument)
Dim HyperLinkFromGrid As New HyperLink
HyperLinkFromGrid = resultsGrid.Rows(x).Cells(0).Controls(0)
Dim ARID As String = HyperLinkFromGrid.Text
Session("ARID") = ARID
Session("PORT") = resultsGrid.Rows(x).Cells.Item(4).Text
Session("OverrideDataTableCreationFlag") = False
Session("CurrentReqStatusID") = CInt(resultsGrid.Rows(x).Cells.Item(resultsGrid.Columns.Count - 2).Text)
'Destroy all Sessions
Session("TYPE") = Nothing
Session("SearchCriteria") = Nothing
Response.Redirect("Override_Request.aspx")
ElseIf e.CommandName.Equals("Select_Followup") Then
x = CInt(e.CommandArgument)
Dim HyperLinkFromGrid As New HyperLink
HyperLinkFromGrid = resultsGrid.Rows(x).Cells(0).Controls(0)
Dim ARID As String = HyperLinkFromGrid.Text
Session("ARID") = ARID
Session("PORT") = resultsGrid.Rows(x).Cells.Item(4).Text
Dim status As Integer = CInt(resultsGrid.Rows(x).Cells.Item(14).Text)
'Destroy all Sessions
Session("TYPE") = Nothing
Session("SearchCriteria") = Nothing
If status = 3 Then
Response.Redirect("Followup_Request.aspx")
ElseIf status = 9 Then
Response.Redirect("OverrideFollowupRequest.aspx")
End If
ElseIf e.CommandName.Equals("Cancel") Then
x = CInt(e.CommandArgument)
Dim HyperLinkFromGrid As New HyperLink
HyperLinkFromGrid = resultsGrid.Rows(x).Cells(0).Controls(0)
Dim ARID As String = HyperLinkFromGrid.Text
Session("ARID") = ARID
'Destroy all Sessions
Session("TYPE") = Nothing
Session("SearchCriteria") = Nothing
Response.Redirect("CancelRequest.aspx")
End If
End Sub
Here is the data access layer class
Imports System.Data.OracleClient
Imports ATVS.Initiation.Entities
Imports Microsoft.ApplicationBlocks.Data
Imports Microsoft.ApplicationBlocks.ExceptionManagement
Public Class SortSearchDA
Public Function SearchRequests(ByVal searchCriteria As SearchCriteria, ByVal SortExpression As String, ByVal SortDirection As Integer) As List(Of SearchResults)
Dim searchs As New List(Of SearchResults)
Try
Dim SQLStr As String = ""
SQLStr = PrepareSelectStatement(SQLStr, searchCriteria)
If Not SortExpression.Equals(String.Empty) Then
SQLStr += " ORDER BY " + SortExpression + " "
If SortDirection = 0 Then
SQLStr += "ASC"
Else
SQLStr += "DESC"
End If
End If
Dim dsResult As New System.Data.DataSet
dsResult = OracleHelper.ExecuteDataset(StoredProcedure.strConnection, CommandType.Text, SQLStr)
Dim tbl As DataTable = dsResult.Tables(0)
For Each row As DataRow In tbl.Rows
Dim search As New SearchResults
Dim dsGroup As New DataSet
search = prepareSearchEntity(row)
Dim SQLStr2 As String = "SELECT DISTINCT RE.ROLE_ID FROM T_RTT_TVS_ROLE_EMPLOYEE RE WHERE RE.VTMS_ROLE_OR_LOGIN='" + search.InitiatorName.ToUpper() + "'"
dsGroup = OracleHelper.ExecuteDataset(StoredProcedure.strConnection, CommandType.Text, SQLStr2)
Dim table As New DataTable
table = dsGroup.Tables(0)
If dsGroup.Tables(0).Rows.Count > 0 Then
search.InitiatorGroup = CInt(dsGroup.Tables(0).Rows(0).Item(0).ToString())
End If
searchs.Add(search)
Next
Catch ex As ApplicationException
End Try
Return searchs
End Function
Private Function PrepareSelectStatement(ByVal SQLStr As String, ByVal searchCriteria As SearchCriteria) As String
SQLStr = "SELECT DISTINCT ar.ARID,ar.INITIATOR_LOGIN,ar.LLOYDS_NBR,TAN.DEADWT_TONNAGE,TAN.CURRENT_NAME,ar.SUBMITTEDDATE created_date,ar.REQUEST_STATUS_ID,"
SQLStr += "ars.REQUEST_STATUS_NAME,ar.EXPIRATION_DATE, ar.EVALUATOR,"
SQLStr += "( (CASE WHEN (V.TVS_ACC_ID > 0 OR AR.EXPIRATION_DATE < SYSDATE) THEN 'EXPIRED'"
SQLStr += "ELSE DECODE(AR.REQUEST_STATUS_ID, 4,'VALID') END)) AS STATUS,"
SQLStr += "( (CASE WHEN (V.TVS_ACC_ID > 0 OR AR.EXPIRATION_DATE < SYSDATE) THEN ''"
SQLStr += "ELSE DECODE(AR.REQUEST_STATUS_ID, 3,'Follow up') END)) AS DISPLAY_TEXT,"
SQLStr += "planned.SAUDI_PORT_CODE,port.PORT_NAME,ars.REQUEST_STATUS_NAME AS STATUS_NAME, AR.YN_INITIATOR_REPLY"
SQLStr += " FROM RTTDBA.T_RTT_ACCEPTANCE_REQUEST ar,RTTDBA.T_RTT_ACCEPTANC_REQUEST_STATUS ars,RTTDBA.T_RTT_TANKER TAN,"
SQLStr += "RTTDBA.T_RTT_VISIT V,RTTDBA.T_RTT_PLANNED_VISIT planned, RTTDBA.T_RTT_SAUDI_PORT port"
SQLStr += " WHERE ar.REQUEST_STATUS_ID = ars.REQUEST_STATUS_ID AND"
SQLStr += " ar.LLOYDS_NBR = TAN.LLOYDS_NBR AND"
SQLStr += " V.TVS_ACC_ID(+) = AR.ARID AND"
SQLStr += " planned.SAUDI_PORT_CODE = port.SAUDI_PORT_CODE AND"
SQLStr += " ar.ARID ="
If searchCriteria.ARID = 0 Then
SQLStr += "ar.ARID"
Else
SQLStr += searchCriteria.ARID.ToString()
End If
SQLStr += " AND planned.ARID = ar.ARID"
SQLStr += " AND ar.LLOYDS_NBR ="
If searchCriteria.LloydsNo = 0 Then
SQLStr += "ar.LLOYDS_NBR "
Else
SQLStr += searchCriteria.LloydsNo.ToString()
End If
SQLStr += " AND ar.MODIFIED_DATE >="
If searchCriteria.InitiationDateFrom.Equals(CDate("1/1/1900")) Then
SQLStr += "ar.MODIFIED_DATE"
Else
SQLStr += searchCriteria.InitiationDateFrom.ToString()
End If
SQLStr += " AND ar.MODIFIED_DATE <="
If searchCriteria.InitiationDateTo.Equals(CDate("1/1/1900")) Then
SQLStr += "ar.MODIFIED_DATE"
Else
SQLStr += searchCriteria.InitiationDateTo.ToString()
End If
SQLStr += " AND lower(ar.INITIATOR_LOGIN) LIKE '%'||"
If searchCriteria.InitiatorName.Equals(String.Empty) Then
SQLStr += "lower(ar.INITIATOR_LOGIN)||'%'"
Else
SQLStr += "lower(" + searchCriteria.InitiatorName + ")||'%'"
End If
SQLStr += " AND ars.REQUEST_STATUS_ID ="
If searchCriteria.Status = 0 Then
SQLStr += "ars.REQUEST_STATUS_ID"
Else
SQLStr += searchCriteria.Status
End If
SQLStr += " AND lower(TAN.CURRENT_NAME) LIKE '%'||"
If searchCriteria.TankerName.Equals(String.Empty) Then
SQLStr += "lower(TAN.CURRENT_NAME)||'%'"
Else
SQLStr += "lower(" + searchCriteria.TankerName + ")||'%'"
End If
Return SQLStr
End Function
Public Function prepareNewRequestEntity(ByVal row As DataRow) As NewRequest
Dim search As New NewRequest
If Not IsDBNull(row) Then
search.ARID = row("ARID")
If row("EXPIRATION_DATE").Equals(DBNull.Value) Then
'do nothing
Else
search.ExpiryDate = row("EXPIRATION_DATE")
End If
search.Tanker.LloydNum = row("LLOYDS_NBR")
search.PortNCargo.SaudiPortCodeName = row("PORT_NAME")
search.Status = row("REQUEST_STATUS_NAME")
search.Tanker.TankerName = row("CURRENT_NAME")
End If
Return search
End Function
End Class
and last but not least the Business Logic Layer
Imports ATVS.Common
Imports ATVS.Initiation.Entities
Imports ATVS.Initiation.DAL
Imports ATVS.Initiation.DAL.TnakerInfoDA
Public Class SortSearchManager
Public Function getRequests(ByVal searchCriteria As SearchCriteria, ByVal SearchType As String, ByVal UserGroup As Integer, ByVal SortExpression As String, ByVal SortDirection As Integer) As List(Of SearchResults)
Dim results As New List(Of SearchResults)
Dim Search As New SortSearchDA
If SearchType = "" Then
Return results
End If
results = Search.SearchRequests(searchCriteria, SortExpression, SortDirection)
'Apply filtering if user group is basic
If UserGroup = UserRole.INITIATOR_BASIC Then
results = FilterSearch(results, UserGroup)
End If
'Apply Filtering if the search is by override or followup
If SearchType.Equals("OVERRIDE") Or SearchType.Equals("FOLLOWUP") Then
results = FilterSearch(results, SearchType, searchCriteria)
End If
'results(0).DaysLeft = results(0).Expirydate.Day - results(0).InitiationDate.Day
Return results
End Function
Private Function FilterSearch(ByVal results As List(Of SearchResults), ByVal SearchType As String, ByVal searchCriteria As SearchCriteria) As List(Of SearchResults)
Dim TempResults As New List(Of SearchResults)
If SearchType.Equals("OVERRIDE") Then
For Each result As SearchResults In results
If result.StatusID = 4 Or result.StatusID = 5 Or result.StatusID = 6 Then
If searchCriteria.InitiationDateFrom.Equals(CDate("1/1/1900")) And searchCriteria.InitiationDateTo.Equals(CDate("1/1/1900")) Then
If Not result.InitiationDate < Now.AddMonths(-1) Then
TempResults.Add(result)
End If
Else
TempResults.Add(result)
End If
End If
Next
ElseIf SearchType.Equals("FOLLOWUP") Then
For Each result As SearchResults In results
If result.StatusID = 3 Or result.StatusID = 9 Then
If searchCriteria.InitiationDateFrom.Equals(CDate("1/1/1900")) And searchCriteria.InitiationDateTo.Equals(CDate("1/1/1900")) Then
If Not result.InitiationDate < Now.AddMonths(-1) Then
TempResults.Add(result)
End If
Else
TempResults.Add(result)
End If
End If
Next
End If
results = New List(Of SearchResults)
results = TempResults
Return results
End Function
Private Function FilterSearch(ByVal results As List(Of SearchResults), ByVal UserGroup As Integer) As List(Of SearchResults)
Dim TempResults As New List(Of SearchResults)
For Each Result As SearchResults In results
If Result.InitiatorGroup = UserRole.INITIATOR_BASIC Then
TempResults.Add(Result)
End If
Next
Return TempResults
End Function
End Class
Guys, Your help is highly appreciated and I'm sorry in advance for the amount of code I included but I would like to make it as clear as possible for every one.
I'm sorry also for my weak english
PS: I'm trying to find a way to sort the grid using ObjectDataSource for weeks and this is what I got and I'm new to all of this I'm originally a Java Developer !!
Mazen
|
|
|
|
|
Hello ,everybody, I'm a chinese,and my english is so bad.
I'm the beginner in VS2008.
I have a question about the masterpage.
When I build a new masterpage,a question appear.
The source code like this:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage2.master.cs" Inherits="MasterPage2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</div>
</form>
</body>
</html>
I don't do any change in the source code.
But the design view give me mistake like this:
//-----------------
Error Rendering Control - ContentPlaceHolder1
An unhandled exception has occurred.
This control can only be used in a MasterPage.
//-----------------
|
|
|
|
|
The above code does not give any error when I put your code in a master page in VS 2008.
Please check your extension of the above master page.
The above error could occure if you put the above code in an .aspx file.
Master pages should have the extension of .master.
|
|
|
|
|
Thank you.
But ,I checked my file's name,it is sure that the master page have the extension of .master.
Besides,I do a further checking.
When I remove the blank line in the "div" tags,the design view run normal.
Then I restored the blank line ,the page also gone well.
Next,I rebuild a master page again,the same as the last,design view report the mistake.
Then I remove the code <asp:ContentPlaceHolder id="head" runat="server"> </asp:ContentPlaceHolder> in the "head" tags,the master page also could run normal without mistake.
Like the last step,I restored the code in "head" tags,the master page run well.
I think,is there any bug with the VS2008 in my computer?
Because I also meet a similar problem about the master page in another project. The mster page run very well,but the other .aspx pages which use the master page,have nothing in design view.
All the above-mentioned pages can run very well in Browser.
And the Wrong master pages also can view normally with no mistakes in VS2005.
modified on Saturday, April 11, 2009 9:29 AM
|
|
|
|
|
Hi All
My requirement is create a dynamic sitemap, i have already set my web application there have more than 50 pages, and also there 3 master pages for different modules, so i need create sitemap, which i need to add dynamic names there (ex-different product names), so pls help me to do this,and i've tried something as follows
1. is there any way to add dynamic nodes to web.sitemap,
2 and also , using StaticSiteMapProvider how can i use that with my web forms, in Page_Load event,
Thanks
|
|
|
|
|
Hello Fred's
I have Deploy Web Application on a Server.Server has a Static IP Address.
This Application Developed in Asp.Net Which use Modem For SMS Sending.
modem Install On Com Port5 if i am run application from server then It's ok
But as Soon as i run application from other machine Com Port Disable Automatic.
In event Viewer Following Warning Message Thrown.
When i first time Deploy and Check From other Machine then It's Work Fine
But after Sometime Same Machine Has same Problem.
Error Says that "Access Denied for Com Port 5" and After That Modem Port Disable permanently
After Restart Machine Com Port Enable Again automatic.
There may be Security Problem.How I can Solved this Problem.
In event Viewer Following Event Fire.
Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1309
Date: 4/10/2009
Time: 11:19:51 PM
User: N/A
Computer: KETAN-1CCDAA7E5
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 4/10/2009 11:19:51 PM
Event time (UTC): 4/10/2009 5:49:51 PM
Event ID: 6e414ffa5de6479fb1fff241887ed1f7
Event sequence: 8
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/w3svc/1/ROOT/H1-2-128838592248125000
Trust level: Full
Application Virtual Path: /H1
Application Path: d:\inetpub\wwwroot\H1\
Machine name: KETAN-1CCDAA7E5
Process information:
Process ID: 1864
Process name: aspnet_wp.exe
Account name: KETAN-1CCDAA7E5\ASPNET
Exception information:
Exception type: CommException
Exception message: Unable to open port COM4: Unable to open COM4
Access is denied
Request information:
Request URL: http://116.74.118.18/h1/Default.aspx
Request path: /h1/Default.aspx
User host address: 117.198.182.42
User:
Is authenticated: False
Authentication Type:
Thread account name: KETAN-1CCDAA7E5\ASPNET
Thread information:
Thread ID: 1
Thread account name: KETAN-1CCDAA7E5\ASPNET
Is impersonating: False
Stack trace: at GsmComm.GsmCommunication.GsmPhone.Open()
at GsmComm.GsmCommunication.GsmCommMain.Open()
at _Default.Button1_Click(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Custom event details:
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
http://webaspdotnet.blogspot.com/
|
|
|
|
|
It looks like a hardware problem, are you sure that hard ware is correct?
be a part of the solution, rather then problem
|
|
|
|
|
Yes Hardware Is ok.
Even i am run application using real ip address from my pC.it's Work fine But If Some One Access Application From Remote PC.The Port Number disable Permanently. Now if i Restart my Machine All Works Fine Again.
So i not think this Hardware Problem they may be security problem but not exact know.
Thanks for answer.
http://webaspdotnet.blogspot.com/
|
|
|
|
|
I've been digging to find out how well the professional addons for visual studio 2008 work for integration with office, and I've come up with nothing.
I'd appreciate any information, opinions or experience, but specifically I'd like to know if it's capable of generating older excel documents and functions in .net 2.0.
Thanks for any answers guys
|
|
|
|
|
I have done Paging with Page number links and Previous Next Links like( Prev 1 2 3 4 Next )in Repeater.And it workd fine.But I want to avoid Javascript and create this links(Paging).
|
|
|
|
|
Hi Guys,
I need your help I have forms authentication setup on an asp.net portal. Even though I have the auth ticket to "NOT" persist, it does so after closing the browser... I have tried all the tricks with FormsAuthentication.SignOut() but still no cure.
Is there a way I could get rid of the forms auth cookie when the client browser is closed??
Many thanks in advance
Green Grape
|
|
|
|
|
Grapes-R-Fun wrote: Even though I have the auth ticket to "NOT" persist
How? That's the first thing I would check. If there is a mechanism that is supposed to result in the browser not caching the cookie and it's not working then the first thing I would suspect is my implementation of the mechanism.
|
|
|
|
|
Mike, I don't know what's causing it to behaive this way... I'm running out of options!
This is my code:
if (_IsAuthenticated)
{
FormsAuthenticationTicket _ticket = new FormsAuthenticationTicket(1,
this.userHandletbx.Text + "_" + DateTime.Now.ToString(),
DateTime.Now,
DateTime.Now.AddMinutes(30),
false,
String.Empty,
FormsAuthentication.FormsCookiePath);
string _encryptedTicket = FormsAuthentication.Encrypt(_ticket);
HttpCookie _authCookie = new HttpCookie(
FormsAuthentication.FormsCookieName,
_encryptedTicket);
_authCookie.Secure = false;
Response.Cookies.Add(_authCookie);
FormsAuthentication.RedirectFromLoginPage(this.userHandletbx.Text, true);
}
And this is my web.config:
<authentication mode="Forms">
<forms loginUrl="Login.aspx"
name=".ASPXFORMSAUTH"
protection="All"
path="/"
timeout="40"
defaultUrl="Home.aspx"
enableCrossAppRedirects="false"
slidingExpiration="true">
</forms>
</authentication>
...and no matter where I stick
FormsAuthentication.SignOut() it doesn't kill that darn cookie!
Am I missing something? Is this a blonde moment I'm having?
Thanks for your help, by the way.
Green Grape
|
|
|
|
|
Grapes-R-Fun wrote: ...and no matter where I stick
FormsAuthentication.SignOut()
it doesn't kill that darn cookie!
Am I missing something?
First two obvious questions are:
1) Is the code executing? The function can't work if it is never being called.
2) Have you followed all the directions of the documentation for the SignOut method?
|
|
|
|
|
Hi,
I have a problem of storing .swf files to SQL Server 2005. Currently my application is storing Image( .bmp, .gif, .png, .jpg, .htm, .html,.png,wmf ) in Binary Field in a table.
I would like to store .swf file in the binary table and retrieve for further processing.
Appreciate if anybody has idea about this.
Thanks in advance.
|
|
|
|
|
AARIFBANGI wrote: Appreciate if anybody has idea about this.
If you are already storing ".bmp, .gif, .png, .jpg, .htm, .html,.png,wmf" then what is the difference between them and .swf?
|
|
|
|
|