Web Forms :: How To Open A Windows Application In Website
Apr 3, 2010Can i open a windows application project in asp.net website?If can then how?
View 3 RepliesCan i open a windows application project in asp.net website?If can then how?
View 3 Repliesi have grid with linkbutton and path of image files how can i open that images in windows default application below is the code in rowdatabound LinkButton btn = new LinkButton();
View 3 RepliesI want to create a download link for my Windows Forms application. I know you can do that using ClickOnce but I don't want a ClickOnce app so a added a setup project to my application that I just got to work the way I want so now I want to make it downloadable from my website. Should a I a web service or a WCF Service to do this or something else and what else should I do?
View 4 RepliesI need to send a password from a windows application to the web (asp.net) in order to automatically login the user on the web (e.g.: opening hotmail from windows live messenger).
I thought about hash code, but the problem is: the value will be stored on user browser history (querystring).
how to pass a one-time valid key (a key that is valid for only one use) using querystring?
How do I find the windows path of an web site Application in .NET 3.5, and also the http path? I found a solution on the web but it didn't work, it seems to be slightly different for different versions of .NET.
View 1 RepliesI have been trying to avoid the windows login userid and password window when I use the Windows Authentication mode for a web site. I need to capture the the windows logon user name without prompting for the user id and password and display that on the web site. I had tried almost everything... changed authentication,security setups on IE and IIS etc... still not being able to avoid the window...
View 1 RepliesI'm trying to enable automatic Window authentication working on our ASP.NET Intranet. I've changed the Authentication on our IIS 7.5 server from Anonymous to Windows Authentication Enabled only, and changed the Web.config file for the website to:
<authentication mode="Windows" />
<authorization>
<deny users="?" />
</authorization>
The Windows login box appears when accessing the website via IE 8, I enter valid credentials, but the login window keeps reappearing as if it does not accept my credentials. By repeatedly cancelling the login box it disappears, and my login name can be viewed on the website. Is there any possible reason for the login box to keep popping up even though valid credentials are being entered? I've restarted the servers / cleared browser cache etc. Also, ideally I would like the user to enter the login details once in the login box and not be required to reenter login details whenever he reopens the browser.
I'm running windows 7, so I installed on my machine the oracle client version 11.1.0.7.0 (ODP.NET - Oracle.DataAccess version 2.111.7.20) .
I'm trying to deploy an asp.net web application to a server that is running windows 2003, which has the oracle client version 11.1.0.6.0 (ODP.NET - Oracle.DataAccess Version 2.111.6.20)
In my web.config file I have:
<add assembly="Oracle.DataAccess, Version=2.111.6.20, Culture=neutral, PublicKeyToken=89B483F429C47342"/>
(which for my surprise it compiles just fine).
Now when I compile my application and deploy it in a setup project (as pre-compiled). The start page of my web app tires to connect to Oracle and it returns the following error message:
"Could not load file or assembly 'Oracle.DataAccess, Version=2.111.7.20, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified."
Which is super weird because, cause the web.config file as shown above has Version=2.111.6.20.
Now the strange part is that if I copy the source code from the client to the server, the same code, same config file, it works just fine.
So I'm thinking that the pre-compiled version is telling the server to load Oracle.DataAccess Version=2.111.7.20, maybe in one of the dlls, not in the config file for sure.
Has anyone run into this problem?
what's the best approach to deploy to servers with different oracle client version? (I have a similar problem trying to deploy to a 64 bit machine)
I'm experiencing a to me mysterious error when sending e-mails through a SMTP-server from an ASP.NET web application. I get the famous error "unable to relay for xxx@yyy.zzz". What's mysterious to me is that when I cut and paste the exact same code that sends the e-mail into an usual .NET Windows Forms application, send the e-mail with this application, it all works just fine. This made me think that perhaps the problem is that the ASP.NET application runs as NETWORK SERVICE while the Windows Forms application runs on a domain user account, but it turns out that I have another ASP.NET application sending e-mail through the same SMTP-server running under NETWORK SERVER at the same IIS, and this application does not experience this problem.
I've further tried to send e-mails through the SMTP-server manually by telnet the smtp-server on port 25 and running the SMTP-protocol manually, and it all works fine. The SMTP-server is not configured with any kind of authentication or SSL.
Another mysterious fact is that the ASP.NET application can send e-mails from an adress within the same domain to an e-mail adress within the same domain, but not to any adress outside of the domain. But the Windows Forms application, that uses the exact same code, can send e-mails from any adress to any adress both within AND outside of the domain.
So to summarize:
The ASP.NET application can send
e-mails from addresses within the
domain to adresses within the domain,
but not to addresses outside of the
domain.
A Windows Forms application running
the same code on the same computer
can send e-mails from ANY address to
ANY address.
Another ASP.NET application on the
same IIS running under the same
account (NETWORK SERVICE) can send
e-mails using the same SMTP-server
from ANY adress to ANY adress.
There is no authentication configured
on the SMTP-Server.
Both the ASP.NET application and the
Windows Forms application utilizes
the System.Net.Mail.SmtpClient class
to send a
System.Net.Mail.MailMessage.
The code that sends the e-mail massage is:
private void button1_Click(object sender, EventArgs e)
{
MailMessage mesasge = new MailMessage(txtFrom.Text, txtTo.Text, "Test mail", txtBody.Text);
SmtpClient client = new SmtpClient();
if (!(string.IsNullOrEmpty(txtUserName.Text))) //Is false since txtUserName.Text is empty
client.Credentials = new System.Net.NetworkCredential(txtUserName.Text, txtPassword.Text);
client.EnableSsl = false;
client.Host = txtServer.Text;
client.Port = 25;
try
{
client.Send(mesasge);
}
catch (Exception ex)
{
txtResponse.Text = ex.Message;
}
}
As far as I can understand, this should be a matter of configuration rather than coding issues.
I have used vs 2008 to develop an asp.net application.
This application can run in windows xp, windows vista, but can't run under windows 7.
When the application want to new an database connection, it retun null.
I am using sqlserver 2005 express sp3 as my database.
The connection is :
Data Source=./SQLEXPRESS;Initial Catalog=mydb;Integrated Security=True
How can I do?
I have a page with a listview bound to a database. The user selects an item on the list, hits submit, and a new window opens up with the selection as part of a query string. I need the user to be able to select multiple items and open up multiple new windows. Heres my code:
[Code]....
Currently, the first selection will open up a new window, but none after that.
I have a ASP.NET application. From that, User register, User will get email after registration. My Req : When user click on link provided in email. Then it should go to my ASP.Net application page . That page should install a wincows application on Client system through web ( I was inspired by Microsoft Windows update from Microsoft site)
View 1 RepliesI have a simple windows form app that I need to get the file path for. I am placing a config file in the same directory and I need to be able to get the path to that file.
I have used
Application.CommonAppDataPath
but that returns the path with 1.0.0.0 at the end.
and
Applicaiton.StartupPath
but that returns the path with indebug at the end
Is there anyway to get the path to just the main file directory without anything appended to the end?
why is it that the exact same codes that i use to create a Windows application, which is able to work, does not work on a Web application? i created a windows application using c# and socket programming language. i will be connected to a remote server and through the windows application, and i will be able to send the "byte[] msg" to the server and activate the LED lightbulbs attached to the remote server. that exact same codes works well on the Windows application. however, when i create another Web application using the same exact codes, i does not have any error yet i am not able to activate the LED lightbulbs attached to it. is it that through the web or internet explorer i am not able to send the "byte[] msg" correctly? or that i sld modify "byte[] msg" to suit the web usage? or any other reasons?
View 7 RepliesIam using ftp client wrapper class for accessing ftp.
iam able to download files from ftp when used in windows application
when i try to use the same code with windows service i get an error
the error is
"The underlying connection was closed: An unexpected error occurred on a receive. "
this error i get on directory listing
the stack trace is:
[Code]....
Note:
FTP is getting connected throgh service
FTP is getting connected throug FileZilla, internet explorer
soruce code:
[Code]....
We have a website portal hosted in Windows 2003 server. For security reasons we are using different windows Login user say (xxxx) for signin other than Administrator. Now with this user (xxxx) name I installed .net Windows Application. It was working fine. For some reasons I renamed the original windows Login user(xxxx) to different say (yyyy). Now this .net Windows Application is not working with (yyyy) and even it is not allowing me to uninstall it.
View 3 RepliesI have a project where we need to launch a browser window from a desktop application and provide the newly opened page with XML data for it to process before the page fully renders itself.
Sub WinAppButton_Click
'Generate xml data
'Open url in browser and post xml to the page without any visible http request arguments showing.
End sub
Handling the xml data from the page_load is easy enough. Getting the initialization data to the page is the problem.
I have used a LinkButton as Text "D:NewFolder".I want when user click on the link the "NewFolder" folder will be open as windows explorer !
View 1 Repliesis it possible to call or integrate the windows application into asp.net web application? is it yes then tell me how to do it.
View 1 RepliesI have a new development machine running windows 7 professional 64 bit. On loading up a website project Im getting this error
'The Web Application Project 'websitename' is configured to use IIS. To access local IIS websites, you must install IIS components:
IIS 6 Metabase and IIS 6 Configuration Compatibilty
ASP.net
Windows Authentication
In addition you must run Visual Studio in the context of an administrator account
As far as Im aware, I am an administrator of my own pc and I have the .net framework installed.
My host moved my website to a new server. The DNS configuration is correct but the website is still down and I'm getting this message
"unable to open website at www.aboutmecfs.org. Internal Server error"
i have created one windows application in c# .net and its working fine in windows xp, but when i try to install the setup in windows 7 or vista,the setup never runs.. should i have to write some code for it.
View 2 RepliesI m new in web part tools in asp.net, i create a simple page using web part tools, but now i want in my web part zone too open a web site like I Google..
when u use i google there is a functionality to open a web site in web part zone.
I've returned again to my problem of trying to connect to the SQL database on my website from a Windows forms application. I had some success but then I was playing around with some things and deleting stuff etc to see what would happen. I deleted the Database that I successfully connected to and added a new database for reasons I won't go into. Now when I try to connect to the new database I don't have success.
View 39 RepliesI am looking for an open source, Windows, .NET based, CMS. I have a few simple requirements:Must run in or be built on the .NET 4 framework Users must be able to automatically authenticate via IIS / integrated windows authentication Must be able to utilize custom pre-built (existing) user controls presented as widgets / web parts / etc. with a minimum of re-coding.I have looked through a handful of open source CMS projects with no luck so far. If anyone knows of a CMS that fits the bill I would really appreciate your insights.
View 4 Replies