.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Security problem

Posted By:      Posted Date: September 15, 2010    Points: 0   Category :ASP.Net
Dear friendI have two server one server runs (windows 2003 server Moodle opensource - PHP url : http://xxx.yyy.zzz.aaa/login.php)  and another server contains Course  Matterial video(url :http://sss.qqq.rrr.aaa). so user success full login i have transfer to another server. how can i know it is successful login and it is request comes from xxx.yyy.zzz.aaa ip. i want write code in C# (asp.net) pls guide meThanks in advanceYogarajan.G

View Complete Post

More Related Resource Links

Security problem with cross database chaining and stored procedures

I have a situation whereby ProcA exists on database A, but ProcA executes about 20 stored procedures scattered across different databases. To further complicate matters some procs that ProcA calls also call other procs in other databases, this then presents the problem of cross database chaining where you can’t really write to a database from a proc that resides in another database. I am wondering how I can get around this problem, I know I can simply let open cross database chaining and the problem will go away, the other option is to create a proxy which is very complicated and wouldn’t work in my environment. Is there any way around the problem.

SP-Designer Workflow Task assigned to a Security Group Problem

Task assigned to a Security Group Should be Filter basic on Show items only when the this conditon is true: "Assign To is Equal to [Me]" This above condtion shows my task only , not all task. So How i ve to make following Condition in it. "Assign To(Security Group) Contains [Me](currnt loged user). Actually Problem is that workflow is assinging a task to a GROUP( having a lot sharpeoint users) , if i m the current user(exists in that group) then i shud get the my task only ,which is assigned to me only , nothing else user's task. So pls help me. Thanks in Advance.Regards- Sharad

how to make WebService installation and How to overcome the security problem


how to make WebService installation and How to overcome the security problem ?

(i need to make My WebService setup that i can install on customer computer)

thank's in advance

Asp.net security problem for Captcha custom control


Hi, I downloaded the source code and followed the instruction to include a captcha control in my asp.net site's from:http://www.mondor.org/captcha.aspx  in my create user control. It was working well but when I implemented Asp.net role base sitemap, This security perventing me showing this captha image. Based on provided security all other portion of the 'create user control' is showing except the captcha image.

One solution is the create a separate folder for this page and ont include a web.config for authorization any other solution so that I keep the page in it's place.

Security hole in sessions - How to fix the problem


Hi all,

i need to store some informations in the session like username, userid and such other info (not password). I was reading about a big security hole in the sessions: when a session is created a cookie with the sessionId is created. Now, if i edit the cookie value of another browser on my pc i can use the session of the first original browser. This is really a big security hole, how can i fix this?

external dll security problem


I downloaded the ExcelDataReader from exceldatareader.codeplex.com and included in one project which was working fine in my local machine. When I uploaded to shared hosting,I am getting error "system.security.securityexception that assembly does not allow partially trusted callers"


talked to the host, they said I need to change the assemblyInfo.cs but don't know how to do since I only have the dll file.

how do I resolve it?


Problem with security on ISS?, why can i write HTML file but not XML files


hi guys

I have a web app the manages articles, users can generate articles which we store in the database and also in a folder inside the application in html.  We also have the ability to generate real time alerts, to targetted audiences but the list of audiences was cached from an sql query on the web server and at times, the cache was cleared by the server. so i wrote an http module, and the module now runs the query using a timer, and this then wrties the audiences to an xml file within a folder in the same application (same as my html files)

Now the weird thing is im getting the system.io unauthorised access exception, when i try to delete and overwrite the xml file.  Yet this doesnt happen when i write the html files.

Now although my users do login, there credentials are maintained via an sql database table, not windows security or the asp.net security model. 

Ive checked the folder that we publish our applications up to (its a mapped folder like a virtual directory), and i cannot see the network service or asp.net machine accounts usually used in iis5 or 6.  But i dont have the ability to change this anyway. 

Why would the html file write fine, and the xml file throw this error. 

I also changed my code to used HttpRuntime.AppDom

Security problem while debugging Infopath custom code


I have made a simple InfoPath formular, and in "Submit Options", checked  "Perform custom action using Code", and write some custom code...

Then i run the debug over this code. The InfoPath formular opened in preview mode, and i could successfully step through InternalStartup method.

I did put some data in fields and clicked on "Submit" button. I expected to be continue debugging at the beging of "FormEvents_Sumbit" method, but i got this error message:

Request for the permission of type 'Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c' failed.
   at TEST_FORM2.FormCode.FormEvents_Submit(Object sender, SubmitEventArgs e)
   at Microsoft.Office.InfoPath.Internal.FormEventsHost.OnSubmit(DocReturnEvent pEvent)
   at Microsoft.Office.Interop.InfoPath.SemiTrust._XDocumentEventSink2_SinkHelper.OnSubmitRequest(DocReturnEvent pEvent)"

After i clicked OK to this error, i got another one, a little different:

"InfoPath cannot submit the form.
The OnSubmitRequest event handler did not work.
Request for the permission of type 'Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint

Problem With Internet Explorer 8 - Internet Security Dialog Box


I have two computers, and on one of them I am unable to open Internet Explorer because I keep getting a dialog box that says "Internet Explorer Security - a website wants to open web content using this program on your computer.  This program will open outside of Protected mode.  Internet Explorer's Protected mode helps protect your computer.  If you do not trust this website, do not open this program.

  Name:  dw20.exe

  Publisher:  Microsoft Corporation"

The details say it has to do with ...rosoft.NET\Framework\v2.0.50727\dw20.exe

Each time I click on Allow or Don't allow, IE closes and I can't use it.  It doesn't seem to matter which option I choose....it still closes.  What is causing this and how do I fix it?  It's very frustrating.  I need to be able to get into IE on this particular computer.


Problem with Implementing Transport Message Security with WCF 4.0 and VS 2010



I'm working on a tree tier project in this solution I have tree project ,

the Service layer,the ServiceContract Layer and presentation layer

At first I implemented it without security and it worked  properly,

But when I tried to add Transport Message security with SSL I faced some problem here is some of my code :

web.config in service layer:



SharePoint problem in security


hi Guys

i make web application with sharepoint 2010 and administrator is owner in this site,i maka sub site with unique permission and make user in AD is Owner for this sub site.

The Problem , When I login with this user and go to sub site this user become admin for this sub site , when i go to site permissions and see owner,visitor and member when i link for eny one of this groups this user do not see eny thing , this pages is blank ,why? but if i login with administrator , administrator can see the pages of this groups.

plz help me ?


SharePoint Tutorial - Security

Security in SharePoint is comprised of users, groups and roles.

Users, Groups and Roles

A user account comes from the authentication system. For example, if Active Directory is used to authenticate then the user accounts will come from it.

There are two types of groups SharePoint uses: domain groups and SharePoint groups.

Problem to group radio button across gridview rows

In general no one can easily group or make a single selection from radio button list inside gridview rows. There are a lot of way to make a single or unique selection from list. Here i want to share how i can address this problem in the most easiest way. Googling the problem most of the cases i saw the grouping in horizontal way. Thats why i tried to group the radio buttons in vertical manner. Let i have a requirement like below:

Regrading Sharpoint 2010 problem and solutions

We can write your question and problem on this blogger.you get ans.use.

This sharpoint 2010 problem solving threads

Hi friend,

you can use this thread to solving problem and solutions.

Virtual Path Problem


 I get the following error on last line below (working on remote host): 'E:\web\sfcascom\ls_admin/uploads/images/001.JPG' is not a valid virtual path,

Note that the slashes go in different directions

I've tried a number of things but nothing seems to work. Thanks-


Imports System.Drawing
Imports System.Drawing.Drawing2D
Imports System.Drawing.Imaging
Imports System.Web.UI.WebControls

Imports System.Drawing.Imaging.ImageCodecInfo
Partial Class Protected_imageupload
    Inherits System.Web.UI.Page
    Private Sub btnUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpload.Click
        ' Initialize variables
        Dim sSavePath As String
        Dim sThumbExtension As String
        Dim intThumbWidth As Integer
        Dim intThumbHeight As Integer
        Dim sFilename As String = ""
        ' Set constant values
        'sSavePath = "images/"
        sSavePath = Server.MapPath("~/") + "ls_admin/uploads/images/"

        sThumbExtension = "_thumb"
        intThumbWidth = 160
        intThumbHeight = 120

        ' If file field isn?t empty
        If FilUpload.PostedFile IsNot Nothing Then
            ' Check file size (mustn?t be 0)
            Dim myFile As Http

Asp.net web site security database


Hello all, I'm new to asp.net and I'm currently practising some few stuffs. I'm creating a hotel reservation system using ASP.net Web site in visual studio 2008 and I currently don't have an App_Data in my solution explorer unlike visual web developer.

1. I have planned to make users of the website login before making their reservations.

2. I have also planned to develop the website such that I will be able to know all reservations made by each user.

First and formost, I will like to know how I can access/View the security database?

Secondly, how do I link my custom made reservation database and the security database in order to achieve my second plan above.?

Someone help me.

Thank you.

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend