c# - ASP.Net Web Site Administration Tool Security tab error. Inaccessible registers: Security -
i trying create login form membership table in mysql server. al seems work ok, not able access security tab inside asp.net website. following message (it in spanish translated more or less this):
there problem selected data store. can caused invalid server name or credentials, or insufficient permission. can caused role manager feature not being enabled. click button below redirected page can choose new data store.
the following message may in diagnosing problem: no source found, not find in or event logs. create source, need permission read event records in order verify new source name unique. inaccessible records: security.
i tried everything. setting permissions users security in windows registry (i not able add networkservice user).
also mysql works great. created necessary tables , website working. problem i'm not able access security tab in order add rules, roles, users, block pages, etc...
thanks help!
try running visual studio administrator. admin previleges application may able access security logs may have sufficient permissions (thus preventing error).
this problem can occur not due permissions, due event source key missing because wasn't registered (you need admin privileges - if open visual studio usual , run program won't enough). make sure event source "myapp" registered, i.e. appears in registry under hkey_local_machine\system\currentcontrolset\services\eventlog\application.
to create event source in windows, must have administrative privileges.
so must either run event source registration code admin (also, check if source exists before - see below msdn example) or can manually add key registry:
1.create regkey hkey_local_machine\system\currentcontrolset\services\eventlog\application\myapp; 2.inside, create string value eventmessagefile , set value e.g. c:\windows\microsoft.net\framework\v2.0.50727\eventlogmessages.dll you can see link. create registry key
msdn eventlog.createeventsource():
Comments
Post a Comment