unconfigurated applications&framework version
In the article "Side by Side Execution of the .NET Framework
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetdep/html/sidexsidenet.asp
I read that Windows client applications without configuration file execute
with the Framework that was used to build the application, provided that the
framework is installed on the local system. When that version is not
available. the CLR uses a later version of the framework. But which version
will it use if there are 2 or more later versions installed? Tag: How to change the machine.config file from command line Tag: 91832
XML Serialization Weird Exception
I was testing XML Serialization to assess if it fits my needs. I coded two
methods, one dumping the XML serialized object to a file, and the other that
recreates the object:
static Graph Awake(string filename)
{
System.Xml.Serialization.XmlSerializer s = new
System.Xml.Serialization.XmlSerializer(typeof(Graph));
System.IO.TextReader r = new System.IO.StreamReader(filename);
object res = s.Deserialize(r);
r.Close();
return (Graph) res;
}
static void Hibernate(string filename, Graph graph)
{
System.Xml.Serialization.XmlSerializer s = new
System.Xml.Serialization.XmlSerializer(typeof(Graph));
System.IO.TextWriter w = new System.IO.StreamWriter(filename, false);
s.Serialize(w, graph);
w.Close();
}
If I run those methods separately, they work fine.
However, if I run Hibernate and then Awake, Awake throws an exception...
Furthermore, if I command Hibernate to dump the XML data to a file other
than the one Awake is going to read from, Awake fails again with the same
error.
Any ideas? Bug?
Regards,
Manuel. Tag: How to change the machine.config file from command line Tag: 91831
XML Serialization problems related to framework versions
Hi all
I get an exception when trying to deserialize a simple configuration
file using XML Serialization. The very long stacktrace can be seen at
the bottom of this message. I've see other messages related a similar
error but none of the solutions suggested are valid in case :/
I have tracked the problem down to the compilation of the temporary DLL
that handles the actual serialization. The following commandline (that
is one single line) is executed by the framework when trying to
deserialize my configuration:
"c:\windows\microsoft.net\framework\v1.1.4322\csc.exe" /t:library
/utf8output
/R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.dll"
/R:"c:\program files\MyApp\MyConfig.dll"
/R:"c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll"
/out:"C:\DOCUME~1\User\LOCALS~1\Temp\i2_6axn4.dll" /debug- /optimize+
/w:1 "C:\DOCUME~1\User\LOCALS~1\Temp\i2_6axn4.0.cs"
Note that it uses the .NET 1.1 compiler and core lib but references the
.NET 1.0 XML assembly. The result is that the assembly isn't created
and hence cannot be loaded.
I've specifeid the required runtime version in the .config file to be
.NET 1.1 without any improvements.
The problems occur on a Windows XP test machine with both .NET 1.0 and
1.1. The application is built using VS.NET 2003 on a machine with only
.NET 1.1. The user running the code on the test machine has
administrative rights.
I've have tried the XmlSerialization precompiler and it works without
problems...
Anyone have any ideas why this happens?
Kind regards,
Hakon
Exception:
System.Configuration.ConfigurationException: Unable to load
configuration from the XML configuration file: 'C:\Program
Files\MyApp\MyApp.exe.config'.
This can be caused by a number of problems, but the most common
problem is an incorrectly configured Updater configuration file.
The most probable sources of error are: missing nodes, incorrect
attribute names, white space within attributes or within elements,
white space between elements in the same sub-node, badly formed xml,
or xml that does not conform to the ConfigSchema.XSD. --->
System.Configuration.ConfigurationException: Exception in configuration
section handler (C:\Program Files\MyApp\MyApp.exe.config line 16) --->
System.IO.FileNotFoundException: File or assembly name _zdvwu31.dll, or
one of its dependencies, was not found.
File name: "_zdvwu31.dll"
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean
throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef,
Boolean stringized, Evidence assemblySecurity, StackCrawlMark&
stackMark)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef,
Evidence assemblySecurity)
at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly()
at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly()
at System.Xml.Serialization.Compiler.Compile()
at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[]
xmlMappings)
at System.Xml.Serialization.XmlSerializer..ctor(Type type, String
defaultNamespace)
at System.Xml.Serialization.XmlSerializer..ctor(Type type)
at
DSUpdater.UpdaterSectionHandler.System.Configuration.IConfigurationSectionHandler.Create(Object
parent, Object configContext, XmlNode section) in
C:\Projects\MyApp\MyApp\ConfigSectionHandler.cs:line 55
at
System.Configuration.ConfigurationRecord.EvaluateRecursive(IConfigurationSectionHandler
factory, Object config, String[] keys, Int32 iKey, XmlTextReader
reader)
=== Pre-bind state information ===
LOG: Where-ref bind. Location =
C:\DOCUME~1\User\LOCALS~1\Temp\_zdvwu31.dll
LOG: Appbase = C:\Program Files\MyApp\
LOG: Initial PrivatePath = NULL
Calling assembly : (Unknown).
===
LOG: Policy not being applied to reference at this time (private,
custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL
file:///C:/DOCUME~1/User/LOCALS~1/Temp/_zdvwu31.dll.
--- End of inner exception stack trace ---
at
System.Configuration.ConfigurationRecord.EvaluateRecursive(IConfigurationSectionHandler
factory, Object config, String[] keys, Int32 iKey, XmlTextReader
reader)
at System.Configuration.ConfigurationRecord.Evaluate(String
configKey)
at System.Configuration.ConfigurationRecord.ResolveConfig(String
configKey)
at System.Configuration.ConfigurationRecord.GetConfig(String
configKey)
at
System.Configuration.DefaultConfigurationSystem.System.Configuration.IConfigurationSystem.GetConfig(String
configKey)
at System.Configuration.ConfigurationSettings.GetConfig(String
sectionName)
at DSUpdater.UpdaterConfiguration.Init() in
C:\Projects\MyApp\MyApp\UpdaterConfiguration.cs:line 133
--- End of inner exception stack trace ---
at DSUpdater.ApplicationUpdateManager..ctor() in
C:\Projects\MyApp\DSUpdater\ApplicationUpdater.cs:line 98
at MyApp.Client.Services.SmartUpdateService.Initialize(Form form) in
C:\Projects\MyApp\MyApp\Services\SmartUpdateService.cs:line 32
at MyApp.Client.MainForm.Handler_CheckForUpdates(Object sender,
EventArgs e) in C:\Projects\MyApp\MyApp\MainForm.cs:line 570
at MyApp.Common.ActionHandler.ExecuteHandler(Object sender,
EventArgs args) in
C:\Projects\MyApp\MyCommon\General\ActionDispatcher.cs:line 252
at MyApp.Common.General.ActionDispatcher.Fire(String handlerName,
Object sender, EventArgs args) in
C:\Projects\MyApp\MyCommon\General\ActionDispatcher.cs:line 195
at MyApp.Client.MainForm.MainForm_Load(Object sender, EventArgs e)
in C:\Projects\MyApp\MyApp\MainForm.cs:line 423
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean
fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam) Tag: How to change the machine.config file from command line Tag: 91825
Setup project of .Net Framework 1.1 and Mdac 2.7
I am currently working in VB.NET project which is a desktop application with
Access as database. I had made a setup project of my application. I ran the
same in another machine which had Win 2000 professional as OS and no .NET
Framework installed.
When I was running the setup I got an error saying : .Net Framework 1.1 not
installed . Please install and then run your setup program.
I did the same then there was another error Mdac 2.7 not installed so not
database connectivity.
I would like to know instead of running two different setups can I bundle
the .NET Framework 1.1 setup and Mdac 2.7 setup along with my application
setup.
Please help me as Iam in the Alpha release of my project.
Regards Tag: How to change the machine.config file from command line Tag: 91821
Posting using httpwebrequest
Hi,
Should the form submit button click event handler fire when posting to a
aspx page using httpwebrequest.
In my tests the load event fires when POSTing back but not the button click
event handler.
I first issue a GET, extract __VIEWSTATE and then POST back __VIEWSTATE and
the form values.
I am hoping to use this technique for a screen scraper but if I can't get
the submit
buttons click event handler to fire its no use.
Thanks,
Pazza Tag: How to change the machine.config file from command line Tag: 91817
Login for Hotmail Problems
Not sure if this is the correct forum or not, if not, please advise.
Have recently noticed that when I sign on to my hotmail account, I am
directed to a screen asking me to type my password. It has the correct
e-mail address listed and the box "Sign me in automatically." is checked,
but the password field is blank. The other box ("Do not remember my e-mail
address for future sign-in. (Select this when using a public computer.)") is
not checked. If I simply click at the bottom on "get one now" I am told that
"You Are Already Signed In". If I click on the "Return to Hotmail" link I go
immediately to my hotmail account. How can I avoid taking these extra steps
each time? If I am already signed in, then why can't I go directly to my
hotmail account?
Thank you in advance... Tag: How to change the machine.config file from command line Tag: 91816
C# com Object in ASP(Win2000) Error!
Sorry,I'english is no skill.
I created dll(com object) use C#,
it used is right by win2003
but while i put to a win2000 computer occur error.
(win2000 has installed .NET framework 1.1)
my dll use strong name and use underside release (win2000):
regasm /tlb:XAPP.tlb XAPP.dll
gacutil /i XAPP.dll
error msg:
Microsoft VBScript error
'800a03f6'
'End'
/iisHelp/common/500-100.asp£¬ÐÐ242
mscorlib error '80070002'
File or assembly name qjdwg8nm.dll, or one of its dependencies, was not
found.
DLL with one class (using
a web reference for a soap interface).
not use underside namespace is ok for ASP(win2000 or win2003)
.....
using System.Xml.Serialization;
.....
.....
XmlSerializer xs=new XmlSerializer(fo.GetType());
xs.Serialize(stm,fo);
.....
Why? Tag: How to change the machine.config file from command line Tag: 91811
Secuirty patch ms05-004
There is a different "MS05-004" executable available for each version of
.Net Framework. The patch relates to service pack level whereas the Windows
folder structure shows the version number. Can you help identify which
version of Framework would need which security patch:
Patches available are:
NDP1.0sp2
NDP1.0sp3
NDP1.1
NDP1.1sp1
Framework version installed are:
V1.0.3705
V1.1.4322
If I have both versions installed on a given server, then would I need to
apply two patches, one for each version?
Any help will be appreciated.
Thanks,
Paul Tag: How to change the machine.config file from command line Tag: 91809
launch exe after install
How can I launch an exe directly after the msi has been run without using a
custom action? Tag: How to change the machine.config file from command line Tag: 91802
Adding function to Excel
Hi,
Using Add-In project, I can't find how to make my public functions available
in Excel ?
Thks for help. Tag: How to change the machine.config file from command line Tag: 91796
Error 1935
I received this message while reinstalling a program. I tried to reinstall
framework 1.1 but it will not install. Help? Tag: How to change the machine.config file from command line Tag: 91794
what is best practises for sending out emails from .net?
What are the best practises people have found for sending out emails with
their web apps in .net? I've read a few places that talk about using the
System.Web.Mail namespace. But I think that namespace requires an SMTP
server does it not? And if it does, do people redirect the SmtpServer to
their own email servers or to IIS SMTP service and have it use SmartHost to
goto their email server, or just have IIS forward the emails on?
I'm sorry if this has been covered before, I'm just getting into this now
and would appreciate some ideas on what you guys/gals have found that
worked.
Thanks. Tag: How to change the machine.config file from command line Tag: 91793
problem registering some file extension in winXP shell
Hi:
I'm trying to register some file extension in the system (.abc). According
the documentation the next example should be enough, but my result is that
the icon of my application appears on the Windows explorer with the files,
and the description too, and the files are associated with my application
correctly, but int the "Open With" submenu, and in the dialog used to select
applications, there is only an Icon, the name of the application does not
appear.
I also have realized that the problem appears only with a .net exe file.
Even creating a new .txt file and renaming it to .exe, "Open With" shows the
name of the "application", but if the command key is set to a path pointing
to a .net exe file, only the icon is showed.
what have I missed?
According to the documentation (wich is not specific to .net applications):
HKEY_CLASSES_ROOT
.abc = MyApp.abc.1
MyApp.abc.1 = MyApp document
DefaultIcon = "c:\MyApp.exe",0
shell
open
command = "c:\MyApp.exe" "%1"
//CODE:
string extension = ".abc";
string description = "MyApp document";
Microsoft.Win32.RegistryKey rkey = Microsoft.Win32.Registry.ClassesRoot;
rkey.CreateSubKey ( extension ).SetValue("", "MyApp" + extension + ".1" );
rkey = rkey.CreateSubKey( "MyApp" + extension + ".1" );
rkey.SetValue( "", description );
rkey.CreateSubKey("DefaultIcon").SetValue("", "\"" +
Application.ExecutablePath + "\",0");
rkey = rkey.CreateSubKey("shell");
rkey.CreateSubKey ( "open" ).CreateSubKey ( "command" ).SetValue (
"", "\"" + Application.ExecutablePath + "\" \"%1\""); Tag: How to change the machine.config file from command line Tag: 91789
.NET Framework 1.1 Configuration won't launch
I get the following error when trying to launch the .NET Framework 1.1
Configuration Snap-in:
Snap-in failed to initialize.
Name:.Net Framework 1.1 Configuration
CLSID:{1270E004-F895-42BE-8070-DF90D60CBB75}
Clicking 'OK' on the message box allows the MMC to start, which displays the
following message:
Snap-in Creation Failed.
The snap-in is not created, it may not be installed properly.
If I open an MMC console and try to manually add the .NET Framework 1.1
Configuration snap-in, the MMC hangs when I select the snap-in from the list
of Available Standalone Snap-ins and click "Add". The MMC must be killed
with Task Manager.
I'm running Windows XP SP2. It's a new Dell Optiplex that came
preconfigured with .NET Framework 1.1 eight weeks ago, but our domain has a
GPO that installs .NET framework 1.1 on client workstations. This resulted
in the .NET Framework appearing twice in Add/Remove programs. I couldn't be
sure which resulted from the GPO, so I uninstalled one, and had to remove
the other entry via the registry. Then I rebooted so the GPO would
reinstall the .NET Framework. It shows installed, but will not run. The
relevant registry key reports that my .NET 1.1 SP level is SP1. No programs
that rely on the .NET framwork will run.
Any help appreciated.
Thanks,
Bryan Tag: How to change the machine.config file from command line Tag: 91788
Creating Collections in Classes
In: microsoft.public.dotnet.framework.performance
Hi, can someone give links either in msdn.microsoft.com or other sites that
tell me what are the best ways to create Collection properties in a class
written in Visual Basic.NET?
Eg., say I create a Class that instantiated allows you to get a property of
collections: Forms.Controls, TreeView.Nodes etc etc.
In my work, I only used ArrayList to create Collections but want to try
other interface classes such iCollection, hasttables, etc etc.
Thanks in advance. Tag: How to change the machine.config file from command line Tag: 91787
Bursty data - SendBuffer TCP socket .NET, use messaging queue?
Hello
I am developing an application that sometimes ends up sending a large
burst of data on the socket. My understanding is that the kernel will
drop queued data randomly if the Send Buffer is overwhelmed with data.
In order to prevent this there is the "SendBuffer" (One of the the
enumeration values in SocketOptionName -
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemnetsocketssocketoptionnameclasstopic.asp
I have not been able to determine the largest possible value that
SendBuffer can be assigned; I really doubt if it is unlimited upto the
system memory.
I am hoping to get information about platforms running *WinXP* as well
as *CF* so I am placing the post on both the groups.
Extrapolating the question, *if* the SendBuffer is limited to a few
tens of kB then is there a built in queueing mechanism to make sure
that data trickles into the TCP connection when the burst comes? This
is a real-time app (with almost gaming like requirements) so I am not
sure if using a messaging queue would be very useful because the
messaging queue stores stuff on the hard-disk sometimes. Anyone had any
experience with these type of issues?
Thank you very much for reading.
-Jumu Tag: How to change the machine.config file from command line Tag: 91784
scheduled windows task
How to write a scheduled windows task . Not a windows service I want to
schedule this exe in windows task scheduler.
Thanks
ajit Tag: How to change the machine.config file from command line Tag: 91783
dll inside a dll?
is it possible to reference a dll that is inside another dll?
in our program we have a solution called functions.dll and we are also using
the mysql.data.dll in all our other solutions. is there a way to reference
the mysql.data.dll in each solution by only making the functions.dll one of
the references? i tried it by just having the "using mysql" in the
functions.dll but it does not seem to work. is this possible or not?
thanx in advance for the help Tag: How to change the machine.config file from command line Tag: 91782
Microsoft: Help with OLE documents...
Hi all.
I have an application to draw and design different documents, that supports
linking and embedding of other documents (like, for instance, Corel Draw or
Word). Then, the user can print their designs "WYSIWYG", so I load the
external document inside an OLE document container control (VB6), get a
handle to the object and invoke OleDraw with the hDC that I want the object
in.
This have been working excellent, and this application is largely
distributed among our clients.
The problem is we want to migrate to .NET (any language, VB, C#, C++, ...),
but there's no OLE container that lets me obtain a handle to an OLE
document.
I know you could import COM and ActiveX, but this particular control
(included in VB6) CANNOT BE IMPORTED NOR INSERTED in .Net.
Microsoft calls this a "migration issue" and warns us about it, but how,
then, can I draw an Ole document inside our application (let alone open,
edit, update, etc)?
Is Microsoft planning to update this component for VS.Net 2005? Or is there
an alternative?
I know I could load an OLE document "the hard way", but those are methods so
obscure, I get lost before even starting to insert the document in a
container... If this is the only solution, is there an easy (as easy as this
can be) example that can lead me to accomplish the insertion of a document
inside mine?
I know it can be done, because RTF editor lets you do it. It even lets you
open and edit the document, and "paste special", but I don't seem to
accomplish getting a handle to any of those inserted objects...
Thank you for your time,
VBen. Tag: How to change the machine.config file from command line Tag: 91781
Memory leak ? iexplore.exe?
Our applicaiton Windows Forms controls in IE browser. I noticed that some
times iexplore.exe process stays on the taskmanager even after closing the
browser window.
The behavious is not consistent and does not happen on all machines. However
it is consistent if we open a PDF file from our application in the browser.
Why iexplore.exe process never closed? Is it because we are hosting .NET
controls in IE ? Why is the memory not released for IE process?
Please help, any suggestions?
Thanks,
Srini Tag: How to change the machine.config file from command line Tag: 91780
Regex to identify asp.net server control in a given html
I am not sure if it is the right forum for Regex topic. If not, please point
me the right forum.
For a given HTML, I need to identify each asp.net server control. I am not
an expert in regex, can someone give me a hint to write it?
In the HTML, I need to identity the patterns for
<tag * runat="server" * />
or <tag * runat="server" * > * </tag>
In which tag is in the pattern of *:*
Then I need to get the start index and end index of the string that match
the pattern.
Thank you very much for your help! Tag: How to change the machine.config file from command line Tag: 91778
Socket.GetSocketOption MaxConnections bug ?
After calling mySocket.Bind(someEndpoint) to an IP endpoint I immediately
attempt to get the MaxConnections allowed through
mySocket.GetSocketOption(System.Net.Sockets.SocketOptionLevel.Socket,System.Net.Sockets.SocketOptionName.MaxConnections)
and a socket exception is thrown. Is this a bug in the .NET 1.1 framework,
or is there something I do not understand in this call ? Tag: How to change the machine.config file from command line Tag: 91777
How to Deserialize to a specific object instance.
Hi,
I would like to be able to deserialize a stream to a specific instance.
Deserialize returns me a new instances and that is not really what we need,
we need to deserialized to an existing instance. Can anyone point me in the
rigth direction?
Regards
-Martin Tag: How to change the machine.config file from command line Tag: 91765
VS 2002 and Framework 1.0/1.1 SP upgrades
This is a question regarding service packs for the .NET Framework. We are
still using Visual Studio .NET 2002 development environment to write our
ASP.NET apps. However, on our app servers we also have .NET Framework 1.1
installed. Our current versions of framework offerings are 1.0 SP2 and then
framework 1.1 with NO service pack. I know that as far as coding against the
.NET Framework goes, since we are using VStudio 2002, we are coding against
the 1.0 Framework.
So my question is, when there are new Framework service packs released, do
we need to only install the 1.0 SPs since we are coding with VStudio 2002?
Or do the latest 1.1 framework SPs essentially rollup all the 1.0 changes?
Since we code against the 1.0 Framework, just seems upgrading 1.1 service
packs wouldn't do anything. Right now the 1.0 Framework is up to SP3 and the
1.1 Framework is up to SP1. I just want to know if I only need to install
1.0 SP3, only 1.1 SP1 or both.
Thanks!
-Mike Tag: How to change the machine.config file from command line Tag: 91761
How to disable event
Hello,
I am writing vb .net win form application.
The code for disable button event at C# is:
button1.Click -= new System.EventHandler(button1_Click);
How can this be done at vb .net?
Thank you. Tag: How to change the machine.config file from command line Tag: 91755
xcel error at web server
Hello,
I am writing c# web application with Excel 2000.
I have Excel 2000 install at my workstation, but not at the web server.
My code is:
Excel.Application EXL;
EXL = new Excel.Application(); --> This row return the following error at
the web server:
COM object with CLSID {00024500-0000-0000-C000-000000000046} is either not
valid or not registered.
We don't want to install Excel at the web server. What should be done?
Thank you. Tag: How to change the machine.config file from command line Tag: 91754
How to assign value to Excel 2000 worksheet cell
Hello,
I am writing c# web application with Excel 2000.
My code is:
Excel.Application EXL;
EXL = new Excel.Application();
Excel.Worksheet WSheet = new Excel.WorksheetClass();
string FileName = MapPath(".") + "\\..xls";
WSheet = (Excel.Worksheet)EXL.Workbooks.Open(FileName, Type.Missing,
Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing,
Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing,
Type.Missing).Worksheets.get_Item(1);
Excel.Range rng = WSheet.get_Range("H12", Type.Missing);
string H12 = "H12: " + rng.Value2.ToString(); // Works fine
How can I assign value to cell?
rng.Cells[6, 3] = "a"; --> return the following error:
error: cannot assign '"a"' into 'rng.Cells[6,3]'
Thank you. Tag: How to change the machine.config file from command line Tag: 91753
Excel process doesn't shut down
Hello,
I am writing c# web application with Excel 2000.
My code is:
Excel.Application EXL;
EXL = new Excel.Application();
Excel.Worksheet WSheet = new Excel.WorksheetClass();
string FileName = MapPath(".") + "\\..xls";
WSheet = (Excel.Worksheet)EXL.Workbooks.Open(FileName, Type.Missing,
Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing,
Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing,
Type.Missing).Worksheets.get_Item(1);
Excel.Range rng = WSheet.get_Range("H12", Type.Missing);
string H12 = "H12: " + rng.Value2.ToString();
EXL.Workbooks.Close();
EXL.Quit();
Although I use EXL.Quit, Excel process doesn't shut down (still running at
windows task manager). Why?
Thank you. Tag: How to change the machine.config file from command line Tag: 91752
Method for finding dotnet version
Hi All,
I am using Visual studio 2002. The dotnet version that comes with
this, is dotnet version 1.0. I have installed dotnet framework version
1.1 recently. How can I associate dotnet version 1.1 with the
VS 2002 ?
Also, what is the dotnet API in C# to find the version of dotnet?
best regards
sijo Tag: How to change the machine.config file from command line Tag: 91750
System.Web.Mail Error
Hi,
We are trying to send the mail using these framework set of classes from the
namespace - System.Web. We are getting the following exception. Does anyone
know about this problem?
Exception - "Unable to send
mailSystem.Configuration.NameValueFileSectionHandler, System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 does
not implement IConfigSectionHandler"
Environment Details: In our client's machine - we have both Framework 1.0 &
Framework 1.1. And our application needs both the frameworks.
Developed Application: This is the data feed process developed using the
C#.Net application; the error log will be thrown to the configured email
address using the System.Web.Mail.
Since the above exception is throwing, we are not getting any email.
Can you please let me know the solution for this pronlem.
Thanks in advance,
Kiran Nakhate
+91-98805-94142 Tag: How to change the machine.config file from command line Tag: 91745
Simple: Excel Jet 4.0 Link vb 2005
I need to link an excel file to a VB.Net program, so that the host computer
doesn't need excel on it to read the cells. I don't need any functions of
excel, just values from cells for viewing in textbox's.
I am trying to link the file using the database explorer, but, after right
clicking and selecting new database ole connection, then Jet 4.0 and the file
name, I am being told that : "Could not find installable ISAM"
I have looked on the newsgroups, and I have made sure that I have the latest
versions of the Jet 4.0 installed I have the latest service pack, Office 2003
and VB 2005 express beta1. I'm thinking that maybe this a bit of a bad
combination?? Tag: How to change the machine.config file from command line Tag: 91744
ENTER and forms
Can I use ENTER to submit my form using C#?
I have used
Page.RegisterHiddenField("__EVENTTARGET", "btnFind");
This works SOMETIMES but not all the time.
I saw
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsformclassactivatedtopic.asp
and
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformscontrolclassgotfocustopic.asp
which explains that ENTER is not used since the Activate is used for Forms.
I understand the logic but I still cant get my forms to always submit on
ENTER and instead it uses the first control (a list) and ends up being
redirected.
Enter has been used for decades to submit a request dating back to "dumb
terminals" and even typewriters. So it makes sense to use the ENTER to
submit forms. Tag: How to change the machine.config file from command line Tag: 91742
Help for SocketOptionName.PacketInformation
Hello,
need aynone knowing something about the SocketOptionName.PacketInformation!
Background:
I have a little app sending and recieving ICMP-Echo and Echo-Replies.
Now I wonder if it's possible to determine the MAC-Address of the answering
Machine.
After searching in MSDN-Library I found the
SocketOptionName.PacketInformation and thought it could give me some details
of the recieved pakcet.
Now I'm trying to implement it but it doesn't gave me information at all.
I tried a socket.getsocketoption() with an predefined byte-Array but afte
the call the byte array is empty.
So is there anybody able to tell me how to use this SocketOption correctly?
Or does anybody know how to retrieve the MAC-Address from the
Echo-Reply-Packet recieved by my socket?
looking forward for the solution ;-)))) Tag: How to change the machine.config file from command line Tag: 91741
reflector
Do you know Lutz Roeder's Net Reflector..
it is disassembler for .net framework dll and exe.
How can i protect my dll from disassemble program like this... Tag: How to change the machine.config file from command line Tag: 91740
How does IIS or Framework set the Content-Length header ?
Hello,
I'm experiencing a strange problem with an aspx page. This page does NOT set
the Content-Length header. When hosted on my development PC (with IIS 5.0 and
.Net 1.1), the HTTP response however contains a Content-Length header. When
hosted on our test server (IIS 5.0 and .Net 1.1 as well) the Content-Length
is not set, causing the server to send the response (roughy 10KB) in several
chunks which seems to dramatically decrease performances.
My questions are:
- How does IIS (which layer or component and with which algorithm) sets the
Content-Length for a dynamic page ?
- Which conditions would make our test server not to fill this header
hencing causing (I guess so) this chunked encoding response ?
Any thoughs or idea ?
Thanks in advance
Arno Tag: How to change the machine.config file from command line Tag: 91739
mscorwks.dll
I have an application that runs for about 1 minute before
an exception window comes up saying:
SV_TpeConsole.exe - Application Error
The instruction at "0x7931529c" referenced memory
at "0x00000000." The memory could not be "read".
The .Net debugger only gives the assembly code. Is there a
way to find out the call stack for this error or some
other more useful information?
None of the timers in the program are invoking this error,
as they have been checked. Tag: How to change the machine.config file from command line Tag: 91731
Record my webcam
Hello,
I'm trying to record the video and audio streams from my webcam/microphone
to a file on the disk. Can someone point me in the right direction on how
to accomplish this?
Thanks,
Eric Tag: How to change the machine.config file from command line Tag: 91724
.net and mysql join
i'm curious if there are any known issues with the 2. i've tried it in vc#
and vb and i get the same results with both.
every time i run a join and it gets to a 0 or null it makes everything
following it in that column null. the mysql statement is:
"select customers.name, customers.firstname, customers.customerid,
customers.contact, customers.memorec, extinfo.info, memos.memo from customers
left join extinfo on customers.rec=extinfo.rec left join memos ON
customers.memorec=memos.rec where customers.rec=extinfo.linkrec and
extinfo.identifier=1 and extinfo.primarytype=2 and customers.inactive=0 order
by customers.name asc"
the memorec points to the coresponding rec in the memo file. the problem is
that if a customer has a 0 memorec (no memo) then the dataset makes it null
and all the memos following it. is this a known bug or am i doing something
wrong? is there a better way to do this? Tag: How to change the machine.config file from command line Tag: 91717
Windows service & Web service Interprocess Communication
Hello all!
I need an easy way to pass data between windows service & Web service
For example pass a data set, or recordset ,
Both written in C# ,
Both running on the same machine so I'm trying to avoid Sockets / network
communication
Any .Net solution?
Thank you!
Sharon Tag: How to change the machine.config file from command line Tag: 91687
Debugging windows service hosted remote classes
I have a windows service hosting remoted classes(SAO)
I want to debug these classes
My client is windows application, objects remoted using TCP channel
Any help is appreciated
Thanks
John Tag: How to change the machine.config file from command line Tag: 91686
.NET error using Group Policy Management Console?
I make extensive use of Group Policy on our SBS 2003, so a few weeks ago I
finally installed the Group Policy Management console snap-in on my XP Pro
SP2 workstation. I've been successfully managing Group Policy via this
console, but today when I selected a GPO and clicked the Settings tab, it
hung on the message "Generating Report..." for much longer than usual, and
finally displayed the following error message:
"An Error occurred while generating report: File or assembly name System, or
one of its depedencies, was not found."
Efforts to run down this message mostly lead to discussions of version
errors with the .NET framework that I don't completely follow. However, I
tried uninstalling and reinstalling the .net framework, and checking my
service pack level (I thought I might have applied .NET Framework SP2, but
it doesn't appear to be installed on my system). I'm not sure what's next.
Should I try uninstalling and reinstalling the GPM console? I'd rather not
work blindly, so I don't want to try too much until I have a better idea of
what went wrong in the first place.
Thanks in advance,
Bryan Tag: How to change the machine.config file from command line Tag: 91680
Impersonate call fails even after duplicating token
here is the code:
IntPtr token1 = IntPtr.Zero;
int loggedOn = -1;
loggedOn =
LogonUser(lpszUsername,lpszDomain,Pwd,LOGON32_LOGON_INTERACTIVE,LOGON32_PROVIDER_DEFAULT,ref token1);
if(loggedOn == 1)
{
IntPtr dupeTokenHandle = new IntPtr(0);
bool retVal = DuplicateToken(token1, SecurityImpersonation, ref
dupeTokenHandle);
WindowsIdentity newId = new WindowsIdentity(dupeTokenHandle);
CloseHandle(dupeTokenHandle);
CloseHandle(token1);
System.Security.Principal.WindowsImpersonationContext wimp =
newid.Impersonate();
}
The Impersonate() line fails with this error:
System.Security.SecurityException: Unable to impersonate user. Tag: How to change the machine.config file from command line Tag: 91674
I need some help with remote acces to a help file
I have a program that is resident in the web server. It is one-touch installed on the client system and it is activated via URL
so that it runs in IEEXEC.
This program has a .chm file associate with it. The problem is
1) - Every time I try to reference the .chm, I get a dialog warning me that .chm files might not be safe and ask if to continue
2) - When I do continue to access the .chm, none of the positioning to the different TAB (index, search, contents) work, but if
the same program is run from a command line from the same directory, this positioning works.
3) - Of course opening the help with a position to a keyword does not work either.
Question.
What is the best method for utilizing help files when the help file is remote to the system the program is being run on?
-------------------------------------------
Roy Chastain
KMSystems, Inc. Tag: How to change the machine.config file from command line Tag: 91673
StreamWriter.close() hangs in multithreaded execution
I've got a program accessing a HTTP service to get som XML data.
The code receiveing the data looks something like this:
stream = new StreamWriter(httpRequest.GetRequestStream(),Encoding.UTF8);
stream.Write(body);
stream.Close();
The httpRequest is a HttpWebRequest object.
This works fine from a single thread execution, but when I'm accessing this
method on its own thread, the Close() method seems to hang.
Any ideas as to what I'm doing wrong?
Jan
--
Do or die.. Tag: How to change the machine.config file from command line Tag: 91672
Windows Service and User Credentials
How can I get the credentials of the currently logged on user in a Windows
Service? The service is running under the user account and I need to pass
the credentials to other business layers. Tag: How to change the machine.config file from command line Tag: 91669
what is the best way to read text file
Dear sir/lady,
I need to process our web server log file every day. Normally, this file is about 50MB - 100s MB big. How can I read the file in a effective way.
I can open a streamreader to read it and use readline() function to read line by line and process them. However, this sounds very slow. I can also use readtoend to read everything into a string, but then I am afraid that it will be too big for memory.
How should I read the file? Tag: How to change the machine.config file from command line Tag: 91668
How to prevent double logins
Hi,
I would like to prevent users to login more than one time with single
user/password to my .NET web application at the same time.
I managed to achieve this by writing combination of last access time and
userid to application and session object but this solution is not stable
enough, because my ISP's web server is doing application pool recycling
frequently.
Any help or hint appreciated. Tag: How to change the machine.config file from command line Tag: 91667
VS.NET & client script viewer?
Dear All,
How can I access the client side scripts (javascript) for ASP.Net page.
Through the IDE of Visual studio .Net
AS We were did with Visual Interdive 6.
There was ability to see server and client side script, and overall object,...
I miss VID 6 !!
Any help ?
--
MCSD not .Net yet :( Tag: How to change the machine.config file from command line Tag: 91663
FTP Dir List with .NET Framework 1.1
Does anyone have knowledge of code that will get the directory list off an
FTP site? There doesn't seem to be support in .NET Framework 1.1. I found
code at the MSDN Longhorn help site but that code didn't work. I think it
was for a newer version of .NET not yet released.
Any insight would be greatly appreciated.
Thanx,
Poe Tag: How to change the machine.config file from command line Tag: 91652
Hello,
does anyone knows how to change the machine.config file from command line or
from a cmd script file?