CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.security Tags:
Item Type: NewsGroup Date Entered: 9/20/2007 3:02:58 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 22 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
DougEnc
Asp.Net User
Page works in IDE but not Compiled (VS2005)9/20/2007 3:02:58 PM

0/0

I have a web page that is using a certificate to interact with another web site. I'm using ASP.Net in VS 2005. If I run it from the IDE it works great. If I do a Build/Publish Web Site it doesn't work. I get a "The request was aborted: Could not create SSL/TLS secure channel." The statement appears after I perform a datastream = oWebreq.GetRequestStream. 

However, it appears something with the certificate, since I have used other certificates in the code without problems.

My code looks like the following:            sXml = "xml_data=" & Server.UrlEncode(oXML.InnerXml)            oWebreq = Net.HttpWebRequest.Create(sDSXURL)            oWebreq.ClientCertificates.Add(oCert)            oWebreq.CookieContainer = New Net.CookieContainer            oWebreq.Method = "POST"            oWebreq.AllowWriteStreamBuffering = False            oWebreq.MaximumAutomaticRedirections = 1            oWebreq.AllowAutoRedirect = False            oWebreq.ContentLength = sXml.Length            oWebreq.ContentType = "application/x-www-form-urlencoded"            Try                datastream = oWebreq.GetRequestStream                datastream.Write(System.Text.Encoding.UTF8.GetBytes(sXml), 0, oWebreq.ContentLength)                datastream.Flush()                datastream.Close()                oWebres = oWebreq.GetResponse            Catch ex As Exception                Response.Write(CONFIGPROBLEM & ex.Message)                Exit Sub            End Try

 

tsm
Asp.Net User
Re: Page works in IDE but not Compiled (VS2005)9/21/2007 1:46:43 AM

0/0

DougEnc
Asp.Net User
Re: Page works in IDE but not Compiled (VS2005)9/24/2007 1:25:09 PM

0/0

Thanks, What the problem was when exporting the certificate, strong authentication was requested but no password was entered in.  When we went back in and did another export, this time suppied a password, the code now works in the IDE and runtine. Strange but it now works.

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Professional C# 2005 Authors: Christian Nagel, Bill Evjen, Jay Glynn, Karli Watson, Morgan Skinner, Allen Jones, Pages: 1540, Published: 2006
Mastering Web Development with Microsoft Visual Studio 2005 Authors: John Paul Mueller, Pages: 822, Published: 2005
Beginning Visual Basic 2005 Authors: Thearon Willis, Bryan Newsome, Pages: 799, Published: 2006
Professional C# 2008 Authors: Christian Nagel, Bill Evjen, Jay Glynn, Karli Watson, Morgan Skinner, Pages: 1782, Published: 2008
Professional Visual Studio 2005 Authors: Andrew Parsons, Nick Randolph, Pages: 869, Published: 2006
Pro C# with .NET 3.0: exploring the .NET universe using curly brackets Authors: Andrew Troelsen, Pages: 1186, Published: 2007
Pro C# 2005 and the .NET 2.0 Platform: Public Beta Edition Authors: Andrew W. Troelsen, Pages: 982, Published: 2005
Python in a Nutshell Authors: Alex Martelli, Pages: 695, Published: 2006
Professional C# 2005 with .NET 3.0 Authors: Christian Nagel, Bill Evjen, Jay Glynn, Karli Watson, Morgan Skinner, Pages: 1748, Published: 2007
Professional ASP.NET 3.5: In C# and VB Authors: Bill Evjen, Scott Hanselman, Devin Rader, Pages: 1673, Published: 2008

Web:
MSDN Intellisense does not work with "compiled" assemblies The Properties page of the project has tabs on the left edge starting from ... PDBs and XML files are not supported. Therefore VS2005 needs to actually use a ... The second project does not have code but two copies of the "compiled" ...
Work with Visual Studio 2005, Build for .NET 1.1 - Fabrice's weblog I think the above statement about the missing IDE support is not clear at all. ... I modified the project file, but now i can't compile, it seems to me that ...
Compile C program in Visual Studio 2005 Page 1 of 2, 1, 2 · > ... Can I compile C program in Visual Studio 2005 IDE? ... from the command line not inside the ide. inside the ide the program .... tandau _at_ freeshell _dot_ org (hope it's not too late) (... and that it still works. .... but those who do not will get to that garbage site, ...
How to get Microsoft Speech SAPI to work in DEV C++ IDE [Archive ... Going to another compiler is not going to work -- you will still have ... Yes my code runs perfectly when compiled with Dev c++ - but in visual ... But when I click the executable outside VS2005 it finds the XML file. ...
Mikhail Arkhipov (MSFT)'s WebLog : How to debug classic ASP pages ... Finally, the script engine I try to debug is compiled with VS 2005 using full ... I try debugging asp page with VS 2005 and it works but in that page I have ... my breakpoint is not hit, and the comment inside the Visual Studio IDE when ...
Inside Microsoft: Visual Web Developer in Visual Studio 2005 ... Both files work hand in hand, and you can assign events directly in the server .... NET, on the first request to each page, that page would be compiled by the ASP. ... The answer is not much, it’s still alive. But I wouldn’t mention it if there .... We have seen that the VS 2005 IDE offers a number of interesting ...
C# 1.1 Project Templates for VS 2005 - Impersonation Failure With this template you can use the IDE features but still compile for the ... it is working very well on the console application but it is not working on ... compiled in 2005) to point to 'Everett.targets' but still it didn't work. ...
Unmanaged C++ libraries - differences between VS2005 and VS2008 ... My question is this: should this library work with VS2008? ... We have old code that will not compile on VS2005(8) using this switch. ... OpenID Login:. Get an OpenID. or. Name: Email: (never shown) Home Page: ... Trying to use Visual studio IDE (Find & Replace) as a quick & dirty regex tool but stucked ...
The Joel on Software Discussion Group - Visual Studio 2005 SP1 (a ... That must have run on my machine at work last night. ... .NET is perfect for normal apps, but it is not suitable for systems programming ... .NET code isn't interpreted either (it's compiled at runtime like Java), ... Speaking of VS2005, has anyone had the IDE lock up when certain files are loaded? ...
CodeProject: Whidbey to Everett Project Converter (Visual Studio ... Jun 7, 2006 ... I can not guarantee that it works in all cases, but it works for everything ... If possible to do, anyone can send me the idea or the web-page showing such conversion. ... As i have VS 2005 IDE, i can not open this project. .... with VS2003 and VS2005 .csproj files and compiled versions for both . ...




Search This Site:










dnn3 root/subdirectory?

removing menu when registration page loads

single codebehind for multiple pages

adding a javascript button click event to create user button

treeview text empty: structure is fine

where to find java scrip debugger???

thank you

access deny subfolder in my asp.net application ?

expand treeview onmouseover

how to create subportals in dnn 2.1.2?

splitting the day dell in a calendar

cacheing?

webhost4life and permissions for child portals

stripping a currency symbol

sitemap : same url twice

customized sign up

strange character [Â] appearing in file.

quiz with vb/sql

insert and render db content in middle of aspx page.

update panel problem

building the dll

creating a new page in visual studio that does not work by default?!

go back button

change namespace aspnet.starterkit.portal

redesigning website in asp.net

exchange server

wrong date to string convertion ! plz help.

differences in retrieving data using datareader or sqldataadapter

converting string to a math equation

where do you locate mastertype directive?

 
All Times Are GMT