Hi, I am trying to write a sample console app which
enumerates the lists for a sharepoint team services site.
The site does not allow anonymous and uses windows
integrated security.
My code works fine over "http" but as soon as I try to
address the "https" SSL site, then the initial
SPSite.RootWeb call fails.
By the way, I am using host headers and in the Sharepoint
admin tool the SSL site displays using the machine name
rather than the host header -- don't know if that is a
problem because use of the site is not impacted. There is
only one SSL site on the server. Also, to my knowledge,
the IIS is not running in IIS5 compat mode.
Can someone please help me understand what I need to do
to avoid the following error?
Unhandled Exception: Microsoft.Share Point.SPExcepti on:
The server instance specified was not found. Please
specify the server's address and port.
at Microsoft.Share Point.g.a(Boole an A_0, String A_1,
Guid A_2, Int32& A_3)
at Microsoft.Share Point.g.a(Boole an A_0, String A_1,
Guid A_2, Int32& A_3)
at Microsoft.Share Point.SPSite.k( )
at Microsoft.Share Point.SPSite.ge t_ServerRelativ eUrl()
at Microsoft.Share Point.SPSite.ge t_RootWeb()
at ConsoleApplicat ion1.Class1.Mai n(String[] args) in
c:\visual studio projects\distri butors\consolea pplication1
\class1.cs:line 20
Here is my code:
[STAThread]
static void Main(string[] args)
{
SPSite siteCollection = new SPSite
(ConfigurationS ettings.AppSett ings["url"]);
SPWeb site = siteCollection. RootWeb;
SPList list = site.Lists["Contacts"];
Console.WriteLi ne("List: " + list.Title);
foreach (SPListItem item in list.Items)
{
Console.WriteLi ne(item["Title"]);
}
Console.WriteLi ne("Press ENTER to continue");
Console.ReadLin e();
} 3 2657
Hi Jennifer,
Thanks for your post. I will ask one who is expertise on SharePoint Server
to check this issue and reply to this thread.
Have a nice day!
Regards,
HuangTM
Microsoft Online Partner Support
MCSE/MCSD
Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
We are working with Jennifer offline to reproduce this problem.
John Eikanger
Microsoft Developer Support
--------------------
| From: ti******@online .microsoft.com (Tian Min Huang)
| Organization: Microsoft
| Date: Wed, 26 Nov 2003 07:51:57 GMT
| Subject: RE: .NET Console connect to STS over SSL?
| Newsgroups: microsoft.publi c.dotnet.genera l
|
| Hi Jennifer,
|
| Thanks for your post. I will ask one who is expertise on SharePoint
Server
| to check this issue and reply to this thread.
|
| Have a nice day!
|
| Regards,
|
| HuangTM
| Microsoft Online Partner Support
| MCSE/MCSD
|
| Get Secure! -- www.microsoft.com/security
| This posting is provided "as is" with no warranties and confers no rights.
|
|
Hello Jennifer,
I am investigating this case and had sent you an email earlier I am not
sure if you received that.
I had a couple questions for you regarding your environment.
1. Is this application running on the server itself?
2. Can you describe in a little detail how your ssl set up is and the steps
you take then you say you run it over SSL.
This will help me recreate the problem here and debug it.
One thing to try will be to get a netmon trace while running your
application and see what user you are running your application as in the
SSL environment and if the right user is getting passed across.
Let me know if you have any further questions regarding this at any time.
Thanks
Rohit Puri
Microsoft. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: athens.gr. |
last post by:
VIRTUALIZATION ENGINE CONSOLE A RUNTIME 1.1 - IBM (3 CDs), WEBSPHERE
BUSINESS INTEGRATION CONNECT ADVANCED v4.2.2 - IBM, other 16,000
more CDs,
(free donge)! No time limitation!
03/Sep/2004
B12 VIRTUALIZATION ENGINE CONSOLE A RUNTIME 1.1 - IBM (3 CDs)
B13 WEBSPHERE BUSINESS INTEGRATION CONNECT ADVANCED v4.2.2 - IBM
|
by: Thomas M. |
last post by:
Greetings everybody!
I have a short but hopefully simple question. If anybody can give me some
direction, I would greatly appreciate it.
I am in the process of writing a small console utility that will pull in a
computers hotfix information via wmi’s win32_QuickFixEngineering. The code
listed below works, the only bump I can’t seem to get over is the way the
data is outputted. If at all possible, can you help me output the data in...
|
by: yaron |
last post by:
Hi,
1. How to use SSL to connect 2 c# console application clients ?
2. Ineroperability with Java :
How to use SSL to connect C# console application client and JAVA console
application client ?
Thanks.
|
by: Teis Draiby |
last post by:
I am working on a Win32 program with an additional console window to output
messages. I also want to type commands in the console window. Is there any
common way to achieve that?
For example how do I output messages while the console is listning for
command inputs?
I'm looking forward for your answer with great anticipation
|
by: Mike |
last post by:
Hi,
I have the following problem:
I have a singleton class that I want to access from asp.net
application. The trick is, that I want to create it
(Singleton.GetInstance() for the first time) in console application.
In other words, I want the following to happen:
1. start console application
2. create object
3. start asp.net and pass the object reference
4. after some time, user surfs to asp.net page, and sees some
| |
by: eduardorp1 |
last post by:
I have a GUI application that needs to be invoked from the command line
as well. It should work both as a GUI and as a console application.
When I invoke it from the command line, it reads all the command line
options perfectly. However, I can't use Console.WriteLine to write
messages to the console (the lines don't appear at the console window).
Is it possible? What should I do to "connect" the console?
My Main() is:
|
by: gujarsachin2001 |
last post by:
Hello friends,
I want to connect http or https by taking url, username & password
from user (if necessary )& then connect to download file from that
source in console application.
Can u help me out ............
Sachin
|
by: John Wright |
last post by:
I am running a console application that connects to an Access database (8
million rows) and converts it to a text file and then cleans and compacts
the database. When it runs I get the following error:
The CLR has been unable to transition from COM context 0x1a2008 to COM
context 0x1a2178 for 60 seconds. The thread that owns the destination
context/apartment is most likely either doing a non pumping wait or
processing a very long...
|
by: Claudia Fong |
last post by:
Hello
I'm trying to connect to a sql database using C# console application but
I'm having trouble to connect.. can someone help me?
// Create an empty SqlConnection object.
using (SqlConnection con = new SqlConnection())
{
// Configure the SqlConnection object's connection string.
|
by: stoogots2 |
last post by:
Ok, this console app that I wrote has an endpoint that listens on a TCP port. A web application sends requests to it. Both of these have been running successfully in production for the last 6 months. Anyway, I made a minor change to the code in the console app for an exception that I get from time to time, and now when I test it the web app can no longer connect (Communication Object is in a Faulted State). The code change is insignificant. ...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |