Hello, I am trying to do logging to SQL Server 2000 database by using Database Trace Listener. The problem I have is very strange: Scenario1: I have SQLExpress installed on my machine and I was able to achive logging in database in this scenario where I was using integrated security I I got all the desired value in tables; such as Log, Category etc. Scenario2: I furtured my experiment by doing logging on SQL Server 2000 which is installed on a seperate machine but within the domain where my machine is registered as well. After I got done creating tables and stored procedure in already made database. When ever I tried to do logging in the database nothing happens, no data get populated in Data tables such as Category, Log etc. I tried using integrated security after impersonating my application to an administrator accout, I tried by making connection string by using "sa" account. Nothing is working.. Can somebody give me any clue? Thanks in advance
osamahmirza
Posts
-
Enterprise Library 2.0 and Database Trace Listener -
Enterprise Library Database LoggingHello guyz, I am using Enterprise Library 2.0 and trying to do logging in database. What I have found is that if I use a database where I have integrated security on I can use my database listener to use database for logging but when i use Integrated Security = false with user id = sa and password = abs then Enterprise Library doesnt do any logging in database. I must use user from database e.g "sa" I am not suppose to use integrated security. Any idea how can I do it? Thanks in advance.
-
Enterprise Library 2.0 Database ListenerHello, I am developing a web app and trying to use Enterprise Library 2.0. I am using it for logging for now. I achived the logging on a flat file but when I tried to start doing the logging by using a DataBase Listener. I failed. Here's how I am using it after including all possible references to my web app. I configured a datasource with following attributes setup: -Server (my server name) -Database (my database in my server) -Integrated Security (I used API.. something, false, true and I even tested after removing this tag aswell). -user (my user name) -pwd (my password) Then I configured a Database Listner and gave the reference of my datasource. Then I configured a Logging block by adding different categories and then I added reference to my Database listner in categories. I also tested by adding and removing following in web.config within CodeDom tag: type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" compilerOptions="/d:TRACE" /> ---------------- After doing this all when I try to log an entry after specifing the category to the entry and other required attributes. NOTHING HAPPENS in tables I generated after running the script file provided by Best Patterns and Practices team. I couldnt log any data. Is there anybody who can help me or tell me what I am doing wrong?
-
Reflection with static inherited methodsHi, I am trying to invoke a static method on "a_class" which is derived by "another_class" and the static function I am trying to invoke in "another_class". The problem is that I am trying to do this by using reflections. And by using reflections on "a_class" I can not see any MethodInfo for any static method declared in "another_class". I am trying to do something as follows: //I will be getting a generic collection in this object object oCollection; //Getting the type Type factoryType = BuildManager.GetType("My.NameSpace.Class", true); //Calling a static function on factoryType oCollection = factoryType.InvokeMember("GetByFilter", BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static | BindingFlags.InvokeMethod | BindingFlags.DeclaredOnly | BindingFlags.FlattenHierarchy, null, null, new object[] { }); Can anybody kindly tell me how can I achive this? Thanks in advance Stuck
-
aspstate serviceDont worry! I got the answer here http://www.codeproject.com/aspnet/ASPNETSession.asp the name of the service is not ASPState.exe its aspnet_state.exe and is located in Folder "C:\WINDOWS\system32\dllcache"
-
aspstate serviceHello everybody! I just changed my sessionState to "StateServer" and I am using .NET 2.0... When ever I run my application it gives me an error: "Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and that the client and server ports are the same. If the server is on a remote machine, please ensure that it accepts remote requests by checking the value of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection. If the server is on the local machine, and if the before mentioned registry value does not exist or is set to 0, then the state server connection string must use either 'localhost' or '127.0.0.1' as the server name. " since I am developing this application on a remote machine. I tried modifing stateConnectionString="tcpip=127.0.0.1:42424" -> stateConnectionString="tcpip=http://domainname.com/application:42424" which didnt work. Then I tried to run ASPState by doing "net start ASPState" and it gave me an error "The service name is invalid".. Q1- How can I run this service/ from where I can get this service(i learned bout this service from gotdotnet.com) Q2- What could be possibly Wrong? Desperatly waiting
-
OpenLDAP and .NETHi Jan, I dont think you should do like this: newEntry.Properties["sn"].Value = "Doe"; newEntry.Properties["givenName"].Value = "John"; rather use Add instead of Value this it should work newEntry.Properties["sn"].Add = "Doe"; newEntry.Properties["givenName"].Add = "John"; I hope it helps Osama Mirza
-
implementing ajaxsorry, I forgot to not put tags in reply correction of the above answer ->> right under authentication tag add another tag identity impersonate="true" (make it complete tag with less than and greater than and empty tag /) sorry for that in machine.config you will may put username="machine" and for password="AutoGenerate". its not the best practice but you can try this to see if it works then make a custom policy and apply that policy on your required assemblies/user you are using either in identity tag or processmodel tag Osama Mirza
-
implementing ajaxtry right under if it doesnt work then you will have to open up your machine.config find tag hope it will help Osama Mirza
-
Active DirectoryHi gjsantana, According to my knowledge what you will have to do, you will make a new Directory Sercher Object and send a different group name in connection string e.g. private DirectorySearcher DS = new DirectorySearcher ("LDAP://cn=users,dc=servername,dc=domainname,dc=com"); Where it says "users", change it to your desired group. I hope it helps Osama Mirza
-
Move a Textbox with the curson in run-timeYes it is possible and easy too. Try to play around with "Location" property of your control e.g in MouseMove event try to do following Textbox1.Location = new point(Textbox1.Location.X+/*mouse X cordinate*/,Textbox1.Location.Y+/*mouse Y cordinate*/); I hope it helps!
-
How to place RadioButtons inside a ListView Control or DataGrid Control?Following is the address where you can look at a code snip which is in VB but I hope you will have an idea since there is not really a big difference in syntax between VB and C# http://groups.google.ca/group/microsoft.public.in.csharp/browse\_thread/thread/41e8df1a6198c78b/8522c43b78c7393b?lnk=st&q=How+to+place+radio+button+in+Listview&rnum=1&hl=en#8522c43b78c7393b
-
Deleting user from AD by using DirectoryServicesHi all, I am very new to DirectoryServices. I created an ActiveDirectory user by using DirectoryServices. I can find that added entry later-on aswell. But I still couldnt figure out that how can I delete an added user later. I tried DirectoryEntries.remove("username", DirectoryEntry.SchemalClassName); as mentioned on MSDN, but its keep on givng me an error like: Invalid DN name assigned. I think I have to get the GUID for user I want to delete but I have no idea how can I get the GUID for any user e.g. "testuser" in Active Directory Can anybody help me? btw, if this is not the right place to ask this question where should I ask this question? Thanks in Advance!!!!
-
Delete user by using DirectoryServicesHi all, I am very new to DirectoryServices. I created an ActiveDirectory user by using DirectoryServices. I can find that added entry later-on aswell. But I still couldnt figure out that how can I delete an added user later. I tried DirectoryEntries.remove("username", DirectoryEntry.SchemalClassName); as mentioned on MSDN, but its keep on givng me an error like: Invalid DN name assigned. I think I have to get the GUID for user I want to delete but I have no idea how can I get the GUID for any user e.g. "testuser" in Active Directory Can anybody help me? Thanks in Advance!!!!
-
Remove a Child Entry from ADHi all, I am very new to DirectoryServices. I created an ActiveDirectory user by using DirectoryServices. I can find that added entry later-on aswell. But I still couldnt figure out that how can I delete an added user later. I tried DirectoryEntries.remove("username", DirectoryEntry.SchemalClassName); as mentioned on MSDN, but its keep on givng me an error like: Invalid DN name assigned Can anybody help me? Thanks in Advance!!!!
-
axWebBrowser in MC++Thank you very much for such a great help!!!! Cheers
-
Creating Fileshi Saksida Bojan! The most unpainful way is to create XML files because .NET provides very comprehensive namespace for xml called System::Xml just use this and it will be even easier if you use serialization to deal with your XML files which can be found in System::Xml::Serialization. I have done it in VB and it worked fine for me, provided if you are not going to use very huge data processing. Hope it helps. osAma
-
Developing Database Applications Using Dialog Forms instead of SDI or MDI with ADO connectivityhi wisdom2004, so far I think, dialog based application is not much different from SDI, its just the matter how you gonna show your forms. So far the ADO is concerned, check this out: http://www.codeproject.com/managedcpp/adonet_mcpp.asp[^] I hope it will help! osAma