
sj1187534
Avatar/Signature-
Posts
113 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by sj1187534
-
Hi...Does anyone know if the OnPaint() or InitializeComponent() events are ever fired for a Mobile form that is built during runtime? Thanks SJ
-
Luckily, I am testing my app through an emulator. So, i really dont know if changing the .dll is going to cause any problem other than breaching the EULA!! SJ.
-
I take it back. I was able to replace the mscorlib.dll file in the CompactFramework after closing all the VS apps. I was also able to see the SortedList. But I guess it is not good to use the 2MB dll in place of a 300kb dll while we are planning to run the app on a PDA or a similar device because of the limited memory!! SJ
-
Thats true. I realised it a little while ago. I created a new windows application and i was able to find the SortedList class. I already tried what Arch4ngel suggested but it was always saying that there is a sharing violation. I thought instead of messing around with the .dll file, maybe it is better to create a similar class by myself, only with the required functionalities. It worked fine. Thanks for the input. SJ
-
The code is no different than what I have posted in the main thread. in addition to that, I am importing the System and System.Collections namespaces. If there are any typos, I am sure the intellisense is going to tell us. Anyway, I searched for the mscorlib.dll in the VS.Net 2003 folder and I could find one in the "C:\Program Files\Microsoft Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE" folder. Do you think it should be somewhere else too? I forgot to tell you that my app is using the CompactFramework. I am writing a SmartDeviceApplication. Thanks. SJ
-
Yes...I am getting the "blue wavy line"...
-
Hi..I am writing an application in VB.Net and trying to use the SortedList Class. I imported both the System and System.Collections namespaces. When I am creating an instance of the SortedList class : dim sl1 as SortedList dim sl2 as System.Collections.SortedList ... it says that SortedList is not a valid object. I just dont see the class in the Collections namespace. What do you think is wrong? Thanks, SJ
-
I want to create set up projects for a windows service with and without the .net Framework. Does anyone know how this can be achieved? SJ.
-
Hi.. Can anyone tell me if we can build a windows service as a .dll? Until now, all the services I have been developing are .exe files. But the problem with the .exe service is whenever I modify the service, I have to stop the service, uninstall it and install it back again and then start it. Instead of that, can we build them as .dll and just replace the .dll file with the modified one if we have some changes??? any ideas? Thanks SJ
-
I am pretty sure that I am not opening the file anywhere else. The only reason I was able to think of is the first thread that is opening the file may not be closing it. But I am programmatically closing it. And about the screenshot, I usually paste the code but I wanted everyone to know the line number that I am talking about and be able to read the code clearly. Anyway, thanks for the suggestion. SJ
-
I have been fighting with this part of the code for a long time trying to figure out what is wrong with it. It is saying that the file is being used by another process( on line 197 ). As you can see from the code, the method that is giving me an error is a synchronized method so that only one thread can enter it at any time. I am even closing the streamwriter when I am done writing. Another wierd thing is in some threads, I am getting an error saying that the file represented by 'permlogfilepath' already exists even though I am performaing a check that if that file exists, process it differently!! Any suggestions? I have also tried debugging the code but I was not successfull in finding what process is locking it. Any other way to find out? Thanks SJ
-
Can anyone tell me what are the possible reasons for this error when I am trying to start a small windows service? "the executable program that this service is configured to run in does not implement the service" Thanks, SJ Never mind...I was able to fix that.
-
Yes...I did. The code that I removed was redundant. Even the code I have right now is giving me the same error. Seems strange to me. That is the only instance of the templogfile I am using. By the way, a fileinfo class does not have a Close() method. SJ
-
Dim dt As DateTime = DateTime.Now() Dim permlogfilename As String = "Gisb_Log_Out_" & dt.Year & dt.Month & dt.Day & dt.Hour & dt.Minute & dt.Second & ".txt" Dim permlogfilepath As String = Me.logDir & "OUTLOG\" & permlogfilename templogfileinfo.CopyTo(permlogfilepath) templogfileinfo.Delete() When it is attemtping to copy the file at the .CopyTo command, it is saying that the file represented by "permlogfilepath" is being used by another process. Any ideas? SJ
-
Never mind..I was able to figure out whats wrong...I just changed the way I am creating the file. ========================================== Dim proStat As New FileInfo("temp.tmp") If proStat.Exists Then Return True Else proStat.Create().Close() Return False End If ==========================================
-
Hi...I am having a problem with accessing the file. Here's the code that I am trying to execute. ========================================== Dim proStat As New FileInfo("temp.tmp") If proStat.Exists Then Return True Else proStat.Create() Return False End If ========================================== Later in the program, I am trying to delete this file in this way. ========================================== Dim flinfo As New FileInfo("temp.tmp") flinfo.Delete() ========================================== At this point, it is giving me an error that the file is already being used by another process. i am not using this file anywhere in the program except these two. And, I guess we have no explicit way to "close" the file in the first instance since the FileInfo class has no such method. What do you think is the problem here? Thanks SJ
-
PathTracker is a class within the "JAN.SJ.Web.Controls" namespace. Which one should I use then? The second one? SJ
-
Yes. I have the dll in the bin directory. I dont have it as a seperate dll but it is a part of a namespace in the application. I guess you know that the application dll is built with all the sub-namespaces within it. Does that make any difference? SJ
-
Can anyone tell me what the compiler is trying to say from this error. I created a web custom control ( not a web user control ) and I am trying to use it on an .aspx page. ---------------------------------------------------------------------- Parser Error Message: File or assembly name JAN.SJ.Web.Controls.PathTracker, or one of its dependencies, was not found. Source Error: Line 1: <%@ Page Language="vb" AutoEventWireup="false" Codebehind="index.aspx.vb" Inherits="JAN.SJ.Web.Articles.index" %> Line 2: <%@ Register TagPrefix="Tracker" Namespace="JAN.SJ.Web.Controls" Assembly="JAN.SJ.Web.Controls.PathTracker"%> Line 3: <%@ Register TagPrefix="uc1" TagName="Navigation" Src="/Controls/Navigation.ascx" %> Line 4: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> Source File: F:\Sharat\Work\MySite\SJ.Sol\SJ.Web\articles\index.aspx Line: 2 Assembly Load Trace: The following information can be helpful to determine why the assembly 'JAN.SJ.Web.Controls.PathTracker' could not be loaded. === Pre-bind state information === LOG: DisplayName = JAN.SJ.Web.Controls.PathTracker (Partial) LOG: Appbase = file:///F:/Sharat/Work/MySite/SJ.Sol/SJ.Web LOG: Initial PrivatePath = bin Calling assembly : (Unknown). === LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Post-policy reference: JAN.SJ.Web.Controls.PathTracker LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/cb1f5074/fd5b55ae/JAN.SJ.Web.Controls.PathTracker.DLL. LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/cb1f5074/fd5b55ae/JAN.SJ.Web.Controls.PathTracker/JAN.SJ.Web.Controls.PathTracker.DLL. LOG: Attempting download of new URL file:///F:/Sharat/Work/MySite/SJ.Sol/SJ.Web/bin/JAN.SJ.Web.Controls.PathTracker.DLL. LOG: Attempting download of new URL file:///F:/Sharat/Work/MySite/SJ.Sol/SJ.Web/bin/JAN.SJ.Web.Controls.PathTracker/JAN.SJ.Web.Controls.PathTracker.DLL. LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/cb1f5074/fd5b55ae/JAN.SJ.Web.Controls.PathTracker.EXE. LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/cb1f5074/fd5b55ae/JAN.SJ.Web.Controls.PathTracker/JAN.SJ.Web.Controls.PathTracker.EXE. LOG: Attempting download of new URL file:///F:/Sharat/Work/MySite/SJ.Sol/SJ.Web/bin/JAN.SJ.Web.Controls.PathTracker.EXE. LOG: Attempting download of new URL file:///F:/Sharat/Work/MySite/SJ.Sol/SJ.Web/bin/JAN.SJ.Web.Controls.PathTracker/JAN.SJ.Web.Controls.PathTracker.EXE. ---------------------------------------------------------------------- This is the directive that is giving me the error: <%@ Register TagPrefix="Tracker" Namespace="JAN.SJ.Web.Controls" Assembly="JAN.SJ.Web.Controls.PathTracker"%> Any ideas? Thanks SJ
-
Hi..Is this what you are looking for? <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> SJ
-
Hi.. I have a few questions on your code. Can you paste the exact error? One of the questions is the usage of '+' for string concatenation. I think you need to use '&' for that. SJ
-
Can you please tell exactly where you are getting the error? I didn't understand what you are pointing at. Or maybe you can try this: ... Dim a as DateTime = cDate(mydate) ... SJ
-
Hi... You can find a .NET web service for IP to country mapping at this link. http://www.xmlwebservices.cc/index_Samples.htm SJ
-
Hi...This is what I have been using to confirm a delete action: In the Page_Load() method...add the following like Me.btnDelete.Attributes.Add("onClick", "javascript:return confirm('Are you sure you want to delete?')") Private Sub btnDelete_Click(..,..) Handles btnDelete.Click ' This method is fired only when the user clicks OK in the confirm dialogue box End Sub Here you dont need to detect what the user clicked. It is handled by "return". If the user clicked OK, the method on the event of the button click is fired and the server side code is executed. Otherwise, it does nothing. Hope this helps. SJ
-
I guess this is a script error. I suggest that you download the Microsoft Script Debugging tool to get into the script that is generating this error. It would be a little easier if we know what file it is talking about. SJ