|
Hello All,
When i tried to add reference of EXCEL 11.0 library, it appeared in list with exclamation mark and I was having its namespace but i m getting errors while using classes of namespace excel and even i have errors and warnings as listed, please help!!!:
Error 1 The type or namespace name 'Excel' could not be found (are you missing a using directive or an assembly reference?)E:\RM\RunMac\RunMacro\Form1.cs
Warning 1 Cannot find wrapper assembly for type library "Excel".
sejal
|
|
|
|
|
Do you have the Microsoft office interop assemblies installed and referenced?
|
|
|
|
|
I havent checked it yet.. but i have MS EXCEL library 5.0 that has no problem while referencing.
sejal
|
|
|
|
|
Hi,
I need to run a exe file from the local system using a web page.My attempt show error.
My code to call the exe from a web page is :-
System.Diagnostics.Process.Start
(@"D:\ProgramFile\WindowsApplication1.exe", "" + UsrId + " " + TextBox2.Text + " ");
and
System.Diagnostics.Process.Start("notepad");
It is properly working in the local system using http://localhost. When i publish the application ie. run from a site eg: http://192.169.1.26/application/login.aspx from server system, the windows form is not display.
Error message:--
"An unhandled exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll"
"Additional information: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application."
"Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application."
This is the error message in case of opening an windows form. No message is shown when i open a notepad, its not visible.
Regards,
YPKI
|
|
|
|
|
ypki wrote: When i publish the application ie. run from a site eg: http://192.169.1.26/application/login.aspx from server system, the windows form is not display.
Did you expect the windows form to appear in the machine where you are browsing the web page? If yes, you need to do some reading on how web applications works.
BTW, why do you want to launch some executable from a web application?
|
|
|
|
|
Yes, i need to appear the windows form in the machine and need to do some online works, using socket. The concept of yahoo messenger, but i need to open the .exe from a button click event from the website.
|
|
|
|
|
ypki wrote: The concept of yahoo messenger
Yahoo messenger is not opened from a webpage. It is a stand-alone application which communicates with a remote server.
ypki wrote: Yes, i need to appear the windows form in the machine
Then you need the executable file on this machine. It can't be launched through a web page which resides on a remote server. As I said, you need to do some reading on how web applications works.
|
|
|
|
|
I search lot in web for solving this..but no result
|
|
|
|
|
Your not getting the result you expect. All ASP.NET code runs entirely on the server and generates HTML pages which are sent to the client. So, on your server, you're trying to execute Notepad or something else, which will only result in the app being launched ON THE SERVER. You cannot launch an executable on the browser side from ASP.NET code. It can only be done, IF AND ONLY IF, the clients browser security settings are relaxed and only from client-side Java, JavaScript, or VBScript code.
|
|
|
|
|
i have username and password in sqlserver, i want to call the username and password in asp.net, please anyone help me, to give me the code in c#.
|
|
|
|
|
Are you in right forum.Please post you rquestion in ASP.NET forum.
Cheers!!
Brij
|
|
|
|
|
hi guys...
i dn know how to use connection zone in webparts. i need a sample code for this one.please help...
modified on Monday, December 29, 2008 2:08 AM
|
|
|
|
|
Hello everyone,
For a beginner of T-SQL for Windows SQL Server 2005 on Windows Server 2003, what is your suggested book?
thanks in advance,
George
|
|
|
|
|
I'd suggest this[^] and this[^]
BTW, you are in wrong forum
|
|
|
|
|
Hi Navaneeth,
I think the T-SQL Querying is not for beginners?
BTW: there is no SQL Forum here.
regards,
George
|
|
|
|
|
George_George wrote: BTW: there is no SQL Forum here.
There is!![^]
|
|
|
|
|
Thanks Luis,
I only see the 1st word which is general before.
regards,
George
|
|
|
|
|
Hi! Simple C# question, I'm just wondering the the connection will close in the code below:
try {
connection.Open();
command.ExecuteNonQuery();
throw new Exception();
} catch(Exception) {
throw;
}
finally {
connection.Close();
}
Rafferty
|
|
|
|
|
yes becouse finally block gets excecuted in any situation whether there is exception or code excecutes successfully.
rahul
|
|
|
|
|
So, in the statement sequence, will the connection.Close() be executed before or after the exception is rethrown in the catch(...) block?
If after, what if this whole thing is contained in another try... catch statement, will the catch statement in the parent next be executed first?
Rafferty
|
|
|
|
|
What happened when you tried? All you are asking can be easily checked by writing a simple program.
|
|
|
|
|
haha okay okay, i'll try then.
Rafferty
|
|
|
|
|
it will excecuted after the exception is rethrown and the outer catch block will be excecuted next.
rahul
|
|
|
|
|
You're right! I just made a small experiment as Navaneeth suggested and it looks like the case.
Thanks much!
Rafferty
|
|
|
|
|