|
Hi,
you can have multiple version of .NET FrameWork next to each other.
There is some dependency between Visual Studio and .NET versions.
2003 = 1.1,
2005 = 2.0,
2008 = 2.0/3.0/3.5
There is no need to upgrade one step at a time, you can go from 1.x to 3.5 directly,
all it takes is the Framework itself and an updated development tool such as Studio.
BTW: 3.0 and 3.5 really are extensions to 2.0, so the kernel of .NET is still at 2.0
|
|
|
|
|
|
Hi!
i want an article about .net exe files.
i want inject my code in this files (.net). how do i do?
i can inject my code in win32 PE files, but for .net exe file ???
please help me
Zo.Naderi-Iran
|
|
|
|
|
You cant inject code (well you can, but you will need to implement your own .NET profiler). Loading code from within your exe is easy though. Look at the System.Reflection namespace.
|
|
|
|
|
Is it possible to target .NET 2.0 using Visual Studio 2008, or will it force .NET 3.x?
Thanks in advance.
|
|
|
|
|
Rob Caldecott wrote: Is it possible to target .NET 2.0 using Visual Studio 2008
Yes. 2.0, 3.0, or 3.5
C# projects - Project properties/Application/Target Framework
C++ projects - Project properties/Common Properties/Framework and References
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Yes, you can target .net 2.0 with VS2008.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
hi to all,
can any body tell me where did u used delegate in your project or real time experience.
please help i am struggling for this question in interviews
This is haneef.............................................................
|
|
|
|
|
Try listing different skills on your resume.
|
|
|
|
|
Mostly used in event based environments. A wonderful usage scenario of delegates is in user interfaces. Its almost the same as C++ function pointers, but, they are type safe.
|
|
|
|
|
This asks where YOU used delegates. Not where I did, or Brady did. If you can't answer this question from personal experience, perhaps you should consider writing some samples.
|
|
|
|
|
I delegate all the time; life is much easier that way.
|
|
|
|
|
Here is a simple article that explains Delegates.
Article[^]
|
|
|
|
|
haneef wrote: i am struggling for this question in interviews
Maybe you ought to google it and learn about it then.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
haneef wrote: can any body tell me where did u used delegate in your project or real time experience.
please help i am struggling for this question in interviews
If they're asking you a question you don't know the answer to, try this approach - teach yourself the answer by writing code that exercises the question. That way, you'll a) be a more skilled programmer, and b) you'll know the answer in the next interview.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Good points there, John. Not sure if OP will take them. Worth a long shot.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi,
For any exception occurred in my Share Point application, I make the exception message entry to the event log. When I run the share point application using the administrator account application, for any error the system successfully makes the exception message entry to the Event Log. But as soon as I run the application with a different user (a normal user on the machine), I get the below error.
In the registry HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application\EAA I have provided the full control permission for "EAA" custom event source to the local user with which I have signed in to the application but the below error still persists.
I am using Win 2003 Server OS on my dev box. Where do I need to make necessary permissions settings to the local users of the machine in order to encounter this issue?
Error Message
Cannot open log for source 'EAA. You may not have write access.
System.InvalidOperationException: Cannot open log for source 'EAA'. You may not have write access. ---> System.ComponentModel.Win32Exception: Access is denied
--- End of inner exception stack trace ---
at System.Diagnostics.EventLog.OpenForWrite(String currentMachineName)
at System.Diagnostics.EventLog.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName)
at System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
at System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
at System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type, Int32 eventID)
at ExternalAccountForm.FormCode.btnSubmit_Clicked(Object sender, ClickedEventArgs e) in C:\InfoPath\Forms\Test\FormCode.cs:line 392
at Microsoft.Office.InfoPath.Server.SolutionLifetime.ButtonEventHost.<>c__DisplayClass6.<>c__DisplayClassa.<add_Clicked>b__3()
at Microsoft.Office.InfoPath.Server.Util.DocumentReliability.InvokeBusinessLogic(Thunk thunk)
at Microsoft.Office.InfoPath.Server.SolutionLifetime.ButtonEventHost.<>c__DisplayClass6.<add_Clicked>b__2(Object sender, ClickedEventArgs e)
at Microsoft.Office.InfoPath.Server.SolutionLifetime.ButtonEventHost.FireClickedEvent(Object sender, ClickedEventArgs args)
at Microsoft.Office.InfoPath.Server.SolutionLifetime.ButtonFormCode.<>c__DisplayClass2.<>c__DisplayClass5.<Click>b__1()
at Microsoft.Office.InfoPath.Server.DocumentLifetime.OMExceptionManager.CallFormCodeWithExceptionHandling(UserMessages userMessages, OMCall d)
An entry has been added to the Windows event log of the server.
Log ID:5337
Regards,
Vipul Mehta
modified on Tuesday, July 22, 2008 2:18 AM
|
|
|
|
|
Vipul Mehta wrote: Where do I need to make necessary permissions settings to the local users of the machine in order to encounter this issue?
Ask your system administrator, he should know what to do, if not, fire him, and find someone that knows a little.
|
|
|
|
|
Hi all - maybe somebody here can help me with this.
My Goal : To import some very large spreadsheets directly into access without using a dataset and writting line by line. The main problem is that I have a few hundred users and they will constantly be uploading LARGE files in different formats which I need to place into various access databases. If I use the INSERT INTO method it takes FOREVER but if I run the command directly from access, a file with 30000 records takes less than 4 seconds.
Option 1
(This runs a module that was previously set up (which Im trying to avoid using) but physically opens the database)
Dim oAccess As New Access.ApplicationClass
Dim test As Boolean
oAccess.Visible = False
oAccess.OpenCurrentDatabase(ConfigurationManager.AppSettings("physicalpathtomembersdirectory") & memid & "\addressbook.mdb", False)
test = oAccess.Run("ImportSpreadsheet", FileName, HasRows)
oAccess.CloseCurrentDatabase()
Option 2
(The idea of using this was that I could create a macro 'on the fly' and then run it - It doesn't work this way either)
Dim bAns As Boolean
Dim strsql As String
Dim cat As New ADOX.Catalog()
Try
Dim sCreateString As String
sCreateString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & DBFileName
Dim a As Object
a = "DoCmd.TransferSpreadsheet(Access.AcDataTransferType.acImport, Access.AcSpreadSheetType.acSpreadsheetTypeExcel9, 'group', " & ImportFileName & "," & HasRows & ")"
cat.Procedures.Append("import", a)
bAns = True
Catch Excep As System.Runtime.InteropServices.COMException
bAns = False
'do whatever else you need to do here, log,
'msgbox etc.
Finally
cat = Nothing
End Try
Return bAns
Option 3
(This one doesn't work because a oledb command object will only run a valid sql statement)
Dim Connectionstring As String
Connectionstring = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & DBFileName & ";Persist Security Info=False;"
Dim mycon As New OleDb.OleDbConnection(Connectionstring)
Dim str As String = "DoCmd.TransferSpreadsheet(Access.AcDataTransferType.acImport, Access.AcSpreadSheetType.acSpreadsheetTypeExcel9, 'group', " & ImportFileName & "," & HasRows & ")"
Dim mycmd As New OleDb.OleDbCommand
mycmd.CommandText = str
mycmd.Connection = mycon
mycon.Open()
mycmd.ExecuteNonQuery()
mycon.Close()
Return True
Any suggestions?
Thanks
Steve
|
|
|
|
|
What is the code, if any, that has run in 4 seconds?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
i need your help for my project..
i'm going to create a generic and customizable voting using vb .NET but i am facing problems when it comes to customizing it..
an example is that if i am the committee of the organization conducting the election and if i am going to create a voting page i have to make my own list of officers to elect and also the candidates for each position..if i will add candidates or positions for election i will just add textbox for me to add the candidates for election..and then just type the needed information then it will be dsplayed on the screen that he/she is a candidate for a particular position..
i can't do it b'coz i am not familiar on how should i do it to come up with my desired project..
please help me..i really need it..please
thank you..
modified on Sunday, July 20, 2008 10:46 AM
|
|
|
|
|
emmegor wrote: i'm going to create a generic and customizable voting using vb .NET
Wrong forum, but so far so good,
emmegor wrote: i am facing problems when it comes to customizing it..
Oh dear.
If you have managed to create the generic voting then post your code and maybe someone will be able to suggest what you need to do.
If, as I suspect, you have no code and want someone to do your college project, then try rentacoder.com
Bob
Ashfield Consultants Ltd
|
|
|
|
|
I use HttpWebRequest to connect ThumbCached server(a open source distributed caching and storing system, see www.domstorage.com), in single thread mode, it work perfect, but in multi-thread application, sometimes HttpWebRequest will not send request actually and throw TIMEOUT exception, It's known that the server is no problem (test by MS Web Application Stress Tool). Any suggeust?
|
|
|
|
|
Are we supposed to guess?
Do you have some sample code that shows what you're doing?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
First post in this forum, so please be gentle.
We have a product, written in C#, using .NET 2, running on a server. It is a normal process, not a service. Occasionally we are seeing a .NET 2.0.x 'Fatal Execution Engine Error', and I wanted some tips on the best way to debug this sort of problem. I know next to nothing about .NET (yet), so please bear with me!
If this was a C++ app, I would install a debug version and the next time it crashed, I would grab the user.dmp log file and use this via Visual Studio to see where the crash occurred. In the old days I would of used a combination of the apps MAP file and a Dr Watson log (gulp). Either way, finding out where the crash occurred would be fairly straight-forward. I could even install some of the MS WINDBG tools to get a debugger on the machine.
So, how would I go about doing the same thing in .NET (short of installing Visual Studio and having the source code on the machine).
|
|
|
|
|