|
Hi..
I wrote a code to read from a file(Polls.config).Locally no problem occured but after uploading the project to the web a dialog appeared asking me for the UserName and Password and when I click Cancel Button the following error occur:
Access to the path "C:\Sites\Single25\nabeel1eagle\webroot\AdministratorSite\Polls.config" is denied.
Please..could any one help?
I am too late but i will never give up
|
|
|
|
|
I'm writing a project in ASP.NET 2.0 (C#, if it matters to you). I want to take advantage of the security framework provided by .NET 2.0. However, the client demands that the backend be SQL Server 2000, not 2005.
I ran the setup utility (aspnet_whatever.exe, I can't remember the name now), made entries in the web.config to point to the database, and I successfully set up 5 users and multiple roles. In the development environment, everything works great.
I deployed the project to a staging server (that can also recognize the SQL server I set up the database on), and the login control told me that my login could not be verified. Drilling deeper into the Membership class I found that the framework is not finding any users at all.
I next ran SQL Profiler to make sure the database could be found. It is. So if I have the right user name and password, and the app is communicating with the database, why can I not log in on the deployed app?
I've read on multiple websites many others who have experienced the same problem, but no one seems to have a solution. Please help. Thanks.
|
|
|
|
|
Hi to all,
I'm trying to debug a local web service that use in a local windows app but I'm getting this error:
"There is not source code available for the current location."
What can I do?
(I'm using VS.NET 2005 C#)
Thanks in advance
hlopez on RD
|
|
|
|
|
i knw that this sounds crazy but i am preparing a web page for elections and i want the user after submitting his\her choices not to go back to the choices page to change the choices
please help
abdelhameed81
|
|
|
|
|
Use database instead. When a user makes a choice save this as an information for that user as "UserHasMadeChoice" column and make its value 1. Then when the user makes a choice first you control this value for that user. If UserHasMadeChoice is 1 then you show a warning like "You have already made a choice"
|
|
|
|
|
ic3b3rg3 wrote: Use database instead.
Instead of what?
Set a session variable to indicate the page visited then check it when the page loads, if it indicates a page has already been visted, then redirect to another page.
only two letters away from being an asset
|
|
|
|
|
whenever user click bck button forward him to the same page using javascript function 'History.forward(+1)'
Saloni
|
|
|
|
|
open your site onto a browser page without controls, your users wont have the change to use the browsers bars
keep Learning...
|
|
|
|
|
What is the best way to generate 3D graphics in ASP.NET 2.0? I don't want anything that moves around on the page, I just want to import a bmp/jpeg/png, rotate it in 3D, maybe shade it, and then capture an image of it.
AFAIK, a lot of the charting components (e.g. Dundas, Nevron) seem to use OpenGL. Is there some limitation with DirectX on a server?
How should I get started? I can't seem to find much with my searches ?!?!?
|
|
|
|
|
i made a custom error in web.config as the following code
<customErrors mode="On" >
<error statuscode="404" redirect="fnf.aspx" />
</customErrors>
but when i write a nonexistent page in the url i expected what i wrote in the fnf.aapx page but that what i had
Line 29: -->
Line 30: <customErrors mode="On" >
Line 31: <error statuscode="404" redirect="fnf.aspx" >
Line 32: </error>
Line 33: </customErrors>
what is the problem
thanks in advance
haitham
|
|
|
|
|
The problem is propably the casing of the word statuscode, it should be statusCode
<blockquote class="FQ"><div class="FQA">haytham_mohammad wrote:</div>Line 29: -->
Line 30: <customErrors mode="On" >
Line 31: <error statuscode="404" redirect="fnf.aspx" >
Line 32: </error>
Line 33: </customErrors></blockquote>
Kind Regards,
John Petersen
|
|
|
|
|
Hi ,
I am supposed to develop a web application in .Net 2.0, which should convert a file of any print support type to TIFF, JPEG, PDF and Text format on demand.
Please suggest me how can accomplish this task.
Thanks and Regards,
Raj.
|
|
|
|
|
I have been using Cassini (lightweight web server) and everytime something goes wrong I suspect that Cassini is the cluprit.... when actually Cassini is probably not the problem.
So I am wondering about Cassini limitations - specifically should membership & role functionality work just fine? Should I use IIS instead when learning about membership & roles --- will it work with fewer issues for membership & roles.
I merely using Cassini right now to teach myself ASP.NET 2.0. I do like the fact that I do not need to go through the work of creating virtual directory etc, just to do a quick demo project.
More generally this is what I have found to be the mentioned limitations or issues with Cassini use. This is only from a book and I do not claim full understanding of these limitations 1) does not scale to more than on user 2) because of simplifications to the user model, Cassini cannot support a robust security scheme [ is this referring to ssl security?] 3) when you run a page in Cassini it locks the page back in the IDE, so you must close the browser before working on the page back in the IDE. 4) Cassini needs a robust firewall [ so does this imply using IIS you automatically get better security somehow?]
Does anyone have advice on what to add to the list of Cassini limitations?
I did do a quick google search on "Cassini" and "Cassini limitations" I did find this site http://forums.asp.net/67/ShowForum.aspx[^]
There certainly a lot of issues with getting things to work with Cassini on the latter site. I did take an ASP.NET class and we only used Cassini.
|
|
|
|
|
How can I aceess system drives in asp.net(with C#) appliation? How to set permissions to folders in a drive from asp.net?
Thanks,
Bhasker P
|
|
|
|
|
hi bhasker,
use directoryinfo class which is present in the system.io namespace.
To set the permission to folders, the following steps are to be followed:-
Right click the folder to which you want to set permission.
Select properties.
Now, click on the Security tab.
Click on the Add button or select your user name from the given list.
Set the permission for the folder.
Click on the Apply button then press ok button to set the permission.
Thanks & regards,
Suresh Dayma
Everything Is Possible!
|
|
|
|
|
I am still having trouble with Form Authentication. Looks like my vb code doens't like the FormsAuthentication.RedirectfromLoginpage. I think its a variable that is not declared.
Here is my web.config
<forms name="AuthCookie" loginurl="Login.aspx" defaulturl="Default.aspx"
timeout="60" protection="All" cookieless="AutoDetect">
<trace enabled="false" requestlimit="10" pageoutput="false" tracemode="SortByTime" localonly="true">mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="20"
/>
This is what my login button looks like:
Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
Dim objSqlDataset As New DataSet
Dim isfound As Boolean = False
Dim objSqlDataAdapter As New SqlDataAdapter
Dim i As Integer = 0
Dim SelectMembers = New SqlCommand("select * from Members", objSqlConnection)
objSqlDataAdapter.SelectCommand = SelectMembers
objSqlDataAdapter.Fill(objSqlDataSet, "Members")
pstrUserId = Me.txtUserId.Text.Trim
PstrPassword = Me.txtPassword.Text.Trim
With objSqlDataSet.Tables("Members").TableName
Do Until (i >= objSqlDataSet.Tables("Members").Rows.Count Or isfound)
If objSqlDataSet.Tables("Members").Rows(i).Item("UserId").TOUPPER = pstrUserId.ToUpper Then
'Update the Flag
isfound = True
Else
'increment the counter
i = i + 1
End If
Loop
If isfound Then
If objSqlDataSet.Tables("Members").Rows(i).Item("Password").TOUPPER = PstrPassword.ToUpper Then
If Me.chkPassword.Checked = True Then
Response.Cookies("FremontPokerLeague")("FirstName") = objSqlDataset.Tables("Members").Rows(i).Item("FirstName").trim
Response.Cookies("FremontPokerLeague")("userId") = Me.txtUserId.Text.Trim
Response.Cookies("FremontPokerLeague")("Password") = Me.txtPassword.Text.Trim
Response.Cookies("FremontPokerLeague").Expires = DateTime.Now.AddMonths(1)
formsauthentication.redirectfromloginpage(pstrUserId, False)
End If
objSqlDataset.Dispose()
objSqlDataset = Nothing
objSqlDataAdapter.Dispose()
objSqlDataAdapter = Nothing
insertLogin()
Else
Lblstatus.Text = "Invalid Password!"
End If
Else
Lblstatus.Text = "Invalid User Id!"
End If
End With
End Sub
So confused!
|
|
|
|
|
|
Mark
Thanks for replying. Basically I am looping through my Dataset to find the username and password. I am in the process of changing it to a simple select Command. My issue is why does it think my FormsAuthentication is a variable and not part of the web.config? I Know its working because I can't get to any page on my site unless I got to the login. But I can't set the AuthCookie...
|
|
|
|
|
|
I think my problem is that I don't have this <%@ Import Namespace="System.Web.Security" %> in my codebehind page.
|
|
|
|
|
Help!
I've got a page that I need to have show a report I've built with the included Crystal Reports tool. I've created the report, added the report viewer to the page, added the report document component, set up the data binding and no go....I get the following error:
Specified argument was out of the range of valid values. Parameter name: value
<CR:CrystalReportViewer id=crvPMReport accessKey="<%# cachedPM1 %>" runat="server" Height="50px" Width="350px">
Any thoughts? The report itself is simply one column of a table, thought I'd make sure it worked before I invested a ton of time in it....
|
|
|
|
|
Hi,
I have an imagebutton and a submit button in my usercontrol. I have few textboxes to enter search criteria. Imagebutton placed before the submit button on the design code. When the user press "enter" key imagebutton's click event is firing, but I want the submit button't click event to get fired. Both are running at server. Both actions pulling data from the database.
Ram
|
|
|
|
|
Here by default imagebutton(whichever will come first) will get fired if you want other button to get fired then you have to use javascript for that.
Best Regards,
Apurva Kaushal
|
|
|
|
|
I tried all possibities of scripting, could you send something.
|
|
|
|
|
Two possibilities are there, first you place the control(whose event you want to get fired on enter key) before the other. The second possibility is to use javascript code that will trap the enter key and fire the event. The javascript function to trap the enter key is this:
function TrapEnterKey(field,event)<br />
{<br />
var keyCode = event.keyCode?event.keyCode:event.which?event.which:event.charcode<br />
if(keyCode==13)<br />
{<br />
document.getElementById("BtnSearch").click();<br />
return false;<br />
}<br />
}
Best Regards,
Apurva Kaushal
|
|
|
|