thanx for the reply
i checked on ftp folder it has chmode =666 which means read & write permission is there. but i couldnot upload file.
plz let me know how to overcome this issue.
User Profile
Collapse
-
file upload problem
hi all
I have a page where i upload image file to web server and my code is as follows
but when i upload it give error as follow:
"Access to the path "D:\WEBDATA\... .\....." deneid"
Code:If Not FileUpload1.PostedFile Is Nothing And FileUpload1.PostedFile.ContentLength > 0 Then Dim fn As String = System.IO.Path.GetFileName(FileUpload1.PostedFile.FileName)
-
file upload problem
Hi all.
I have a page where I upload image file to web server and my code is as follows
but when I upload it gives an error as follows:
"Access to the path "D:\WEBDATA\... .\....." denied"
[CODE=vbnet]
If Not FileUpload1.Pos tedFile Is Nothing And FileUpload1.Pos tedFile.Content Length > 0 Then
Dim fn As String = System.IO.Path. GetFileName(Fil eUpload1.Posted File.FileName)... -
[code=vbnet]
If Not IsPostBack Then
If Not Session("USERID ") Is Nothing Then
If String.Compare( Session("ROLE") , "Retailer") = 0 Then
strUSERID = Session("USERID ")
Else
Response.Redire ct("usercp.aspx ")
End If
Else
Response.Redire ct("UserLogin.a spx")...Leave a comment:
-
below is my code when in page_load i check session variables and allow page to be browsable plz check the code & let me know is it correct or not.
//*************** *************** *************** *************** ********
[code=vbnet]
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArg s) Handles Me.Load
If Not Session("USERID ") > 0 Then
Response.Redire ct("UserLogin.a spx")...Leave a comment:
-
s dear i ran in debug mode also build succeeded and for your information my web application is running fine on my pc. no session expire problem nothing iam able to login and until sign out my page is working fine. no problem working on my pc.but problem is online. after i uploaded my application on web server online this problem i am facing offline on pc i have no prob. with my web applicationLeave a comment:
-
Visual Studio does not catch any error it perfectly shows build succeeded and that dll iam uploading on server. and i changed web.config file and i did <customErrors mode="On" /> but still no error raising and supposing i have a page to add new poll after logged in i am accessing this page and after filling the form when i click on save button it is going to login page. without saving the data. each logged in user page is i am able...Leave a comment:
-
dear peter
plz help me out same session expiring very shortly after logging in and i am and my expert friends suggested that may be unhandled exception is causing this session expiry. can you plz tell me how to get rid of unhandled exception or how to know where unhandled exception is raising.
thanx in advanceLeave a comment:
-
i check all settings are fine and the same coding few days back was working fine but now it is giving this problem. in web.config file i am using windows authentication mode. and just loggin check up using database and session variables. below see web.config file (plz reply if any changes required)
[code=xml]
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use...Leave a comment:
-
thanks dear plater. i am not that expert so i have no idea about whether sql server handling session timeout or not. and s iam calling session.abondon () in a link button labled 'sign out' on the same page.
and if user updated and new security restrictions applying then this problem i checked on two different pcs. and mean my page is online and i checked from two different areas. but the same problemLeave a comment:
-
session expires after logged in
as i developed a website using asp.net 2 vs2005 with database sqlserver and my website was running fine few days back but now i am getting a problem. i.e
user is logged in and browsed a page which page is only logged in users can browse and when he runs server side script on that page immediately session expires and user redirected to login page. what causing page to redirect to login page. can anybody explain it and solve my problem....
No activity results to display
Show More
Leave a comment: