Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

150 Neutral

About akjal

  • Rank
  1. Hi, The below code works fine ... <object classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" width="320" height="42" > <param name="url" value="jennifer.mp3"> <param name="controller" value="true"> <param name "bgcolor" value="FED100" /> <param name='allowscriptaccess' value='always'> <PARAM name="SendPlayStateChangeEvents" value="True"> <embed type="application/x-mplayer2" pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" src="jennifer.mp3" showcontrols="True" showstatusbar="true" bgcolor="#FED100" width="320" height="42" allowscriptaccess='always' > </embed> </object>
  2. Hello All, I was trying to embed an audio player in one of my web pages (aspx). I used following code.. <OBJECT ID="MediaPlayer" WIDTH=320 HEIGHT=42 CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject"> <PARAM NAME="FileName" VALUE="C:\myfile\jennifer.mp3"> <EMBED TYPE="application/x-mplayer2" SRC="C:\myfile\jennifer.mp3" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/ NAME="MediaPlayer" AUTOPLAY="false" uiMode="mini" WIDTH=300 HEIGHT=42> </EMBED> </OBJECT> this works perfect in IE and Mozilla firefox . But not in Chrome. I have Chrome 4.1.249.... version. Any help is appreciated..!!
  3. I am using following code to access active directory in my Windows application. 1 Dim path = "LDAP://,DC=abcde,DC=com" 2 Dim userName = txtxUser.Text 3 Dim sUserName = path & "\" & userName 4 Dim passWord = txtPWD.Text 5 6 Dim dirEntry As DirectoryEntry = Nothing 7 Dim searchObject As DirectorySearcher = Nothing 8 Try 9 10 dirEntry = New DirectoryEntry(path, sUserName, passWord) 11 12 13 searchObject = New DirectorySearcher() 14 15 searchObject.SearchRoot = dirEntry 16 searchObject.SearchScope = SearchScope.Subtree 17 searchObject.Filter = "(sAMAccountName=" & userName & ")" 18 searchObject.PropertiesToLoad.Add("CN") 19 20 Dim colQueryResults As SearchResult = searchObject.FindOne() 'error throwing in this line 21 22 23 If colQueryResults IsNot Nothing Then 24 MessageBox.Show("Authentication success") 25 Else 26 MessageBox.Show("Authentication failure") 27 End If 28 Catch ex As Exception 29 MessageBox.Show(ex.ToString) 30 Finally 31 dirEntry.Close() 32 searchObject.Dispose() 33 End Try When I run this code in Windows 2000 it is working fine. But When i try in 2003 machine it is throwing an exception like this : System.Runtime.InteropServices.COMException (0x80005000): Unknown error (0x80005000) at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_AdsObject() at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne) at System.DirectoryServices.DirectorySearcher.FindOne() at ADErrortester.Form1.Button1_Click(Object sender, EventArgs e) Anybody can help in this...?
  4. Hi guys, I solve the issue by using a concept called system level mutex include in System.Threading.Mutex class of .NET. These are the some links helped me to solve this issue. http://www.informit.com/guides/content.aspx?g=dotnet&seqNum=605 http://msdn.microsoft.com/en-us/library/aa332344(VS.71).aspx Thanks everybody akjal
  5. Hi I have a dll(say DLL1) which log the execution sequence into a text file dll1.txt . Two applications ,say APP1 and APP2 (running in the same machine) are using the DLL1 . The problem is, sometimes, therre is a chance that APP1 and APP2 access the DLL1 which in turn accesses the text file at the same time. This leads to a contention betweeen applications and applications halt. The code for Logging is thread safe within an application. That is, even if the a single application has got more than one threads, it will be managed. Any help will be greatly appreciated. Thanks in advance
  6. Thank u so much TheTroll for your reply. files are most of the time dlls and exe.Most of the times they are of size in KBs. What could be the reason ftp site is not accessibile from a server?
  7. akjal

    [.net] .NET Framework Versions

    Hi, I had the same concern 1 month back. We had an application developed in .NET 2.0. Due to some stability issue, we modified one of the components using .NET 3.0 . After integrarting the new component with old application ,to set up the servers I installed only .Net 3.0 . It automatically installed .NET 2.0 also (if the machine does not have .NET 2.0 installed before). You can see this in the ADD/Remove programs. Also, the application runs smoothly just right now. :) regards, akjal
  8. Hi All, Is there any other way to achieve the same. I mean, uploading files to a remote machine outside my network. I have a user account with admin privilege in the remote machine. Any help ...plz?
  9. Hi , I want to upload some files to a remote machine frequently.We have an ftp .But I cannot use FTP for uploading file as ftp is not available from remote server. I planned to write an application for that using FileWebResponse class. As a starting point I just tried to access that machine using program. But I am getting an error like the network path not found. FileWebResponse response=null; try { Uri uri = new Uri("file://remotemachinename/sharedfolder/sample.txt"); if (uri.Scheme == Uri.UriSchemeFile) { FileWebRequest request = (FileWebRequest)FileWebRequest.Create(uri); request.Credentials = new NetworkCredential ("username", "password", "domainname"); response = (FileWebResponse )request.GetResponse(); //ERROR happens here StreamReader reader = new StreamReader(response.GetResponseStream()); string tmp = reader.ReadToEnd(); response.Close(); } } catch(Exception ex) { Console.WriteLine(ex.Message); } finally { if (response != null) { response.Close(); } } Note: Remotemachine is not in my network. I am able to connect the remotemachine using mstsc with a username and password in the domain of remotemachine. I want to read a file in a shared folder in D drive of that machine. Could anybody give me a hint ...? Thanks in advance,
  10. Yea, it is written in dotnet. The scenario is like this: 1.My application calls this thired party component which is supposed to do some work for me. 2. I want to get it notified when that work done.Here third party would raise a an event to notify me. 3. I have an event handler to perform when that event is raised. It is not a DLL. It is an exe running separately in the same machine where my application runs. If both these application runs in diifernt application domains, how can I acheive the evnt-driven programming model? Actually we just started the design of this architecture. I just wanted to know some best methods in this matter. :) Thanks in advance..............
  11. Hi, I have an application which wants subscribe an event raised by third party application . Can anybody give any hint for this.? Should I use remoting to make possibile ...? Thanks in advance.. Regards, akjal
  12. Hi, Thanks for ur valuable information. Actually when I check the log of loaded assemblies , i found out that the COM + dll is loaded from GAC. I think that COM+ dll should not be installed in GAC. When i uninstalled it from GAC , it works fine. Thanks a lot
  13. Hi We have a COM+ component named CreateLetterRequest which is being called from another server. We installed it on two servers as a part of load balancing our application. It was working fine till date. Now one of the servers having some problem in the com+ component. The other one is working perfect. The error I am getting is : I got this error when i use a test application (windows application) . See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002) at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) at System.EnterpriseServices.Thunk.Proxy.CoCreateObject(Type serverType, Boolean bQuerySCInfo, Boolean& bIsAnotherProcess, String& uri) at System.EnterpriseServices.ServicedComponentProxyAttribute.CreateInstance(Type serverType) at System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(Type serverType, Object[] props, Boolean bNewObj) at TestCrtLtrReq.Form1.Button1_Click(Object sender, EventArgs e) in D:\WellPointSBI\Letter Request and Preview\Wellpoint.Pharmacy.LGM.BG.CreateLetterRequest\TestCrtLtrReq\Form1.vb:line 21 at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ************** Loaded Assemblies ************** mscorlib Assembly Version: Win32 Version: 2.0.50727.832 (QFE.050727-8300) CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll ---------------------------------------- TestCrtLtrReq Assembly Version: Win32 Version: CodeBase: file:///D:/WellPointSBI/Debug/TestCrtLtrReq.exe ---------------------------------------- Microsoft.VisualBasic Assembly Version: Win32 Version: 8.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/ ---------------------------------------- System Assembly Version: Win32 Version: 2.0.50727.832 (QFE.050727-8300) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/ ---------------------------------------- System.Windows.Forms Assembly Version: Win32 Version: 2.0.50727.832 (QFE.050727-8300) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/ ---------------------------------------- System.Drawing Assembly Version: Win32 Version: 2.0.50727.832 (QFE.050727-8300) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/ ---------------------------------------- System.Runtime.Remoting Assembly Version: Win32 Version: 2.0.50727.832 (QFE.050727-8300) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/ ---------------------------------------- CreateLetterRequestSBI Assembly Version: Win32 Version: CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CreateLetterRequestSBI/ ---------------------------------------- System.Xml Assembly Version: Win32 Version: 2.0.50727.832 (QFE.050727-8300) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/ ---------------------------------------- LGMSbiUtility Assembly Version: Win32 Version: CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/LGMSbiUtility/ ---------------------------------------- System.EnterpriseServices Assembly Version: Win32 Version: 2.0.50727.832 (QFE.050727-8300) CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/ ---------------------------------------- System.Data Assembly Version: Win32 Version: 2.0.50727.832 (QFE.050727-8300) CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/ ---------------------------------------- ************** JIT Debugging ************** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled. For example: <configuration> <system.windows.forms jitDebugging="true" /> </configuration> When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box. I think the error is nothing to do with code as it in one server it is running. Can anybody help me to resolve this issue...? Thanks in advance.
  14. Hi, I have developed an application for our project which is used to generate Word documents (using microsoft office 11.0 object library dll) with the data taken from a databse. It is a multithreaded windows application. Each threads creates a word application , generate word file and then print as a file using Microsoft Office Document Image Writer print driver. All works fine. But, sometimes the application gets stuck and too many word objects can be seen in Task Manager. That means, some word application objects are not getting released from memory. This makes the entire application stuck. I am explicitly releasing all word objects in finally block.Even tried this also in Finally block: I mean explicitly calling Garbage Collector. Code SnippetGC.Collect() GC.WaitForPendingFinalizers() GC.Collect() GC.WaitForPendingFinalizers() But no way. Can anybody suggest some hints .i will be grateful to you people. Thanks in advance,
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!