PowerShell Error 401 Unauthorised when connect to SPO 365
Hi guys,
please help on connecting via PowerShell to our corporate SharePoint Online;
I use the
PS > Connect-SPOService -Url https://corp-admin.sharepoint.com/ -Credential me(AT)corp.com
and when asked for password, I type in the correct one for the account and get
connect-sposervice : The remote server returned an error: (401) Unauthorized.
(When I type in password which is not correct, there is different reply
Connect-SPOService : The partner returned a bad sign-in name or password error. For more information, see Federation Error-handling Scenarios.
thus I guess the auth phase works fine on AD.)
Haven't found any useable reply on forums.
Thank you in advance for any advice,
Michal
Hi
use this link
http://www.amintavakoli.com/2011/12/install-microsoft-online-services.html
It's working ;)
Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.
Similar Messages
-
Hi,
Any help appreciated!!
I'm getting this error: "The remote server returned an error: (401) unauthorised when I debug a provider-hosted app. I get the error on this line:
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
See code below
I created a high trust development environment following the instructions provided here:
http://msdn.microsoft.com/en-us/library/office/fp179901(v=office.15).aspx and
http://msdn.microsoft.com/library/office/fp179923
I created a provider-hosted app with the intent to:
create a SharePoint list in the appweb
Use self-signed certificate, tokenhepler.cs and sharepointcontext.cs to retrieve current user context and access on SharePoint. (No changes were made to tokenhelper.cs and sharepointcontext.cs)
retrieve list items from the SharePoint list in a button click event handler on a default.aspx of the remote web
What happens:
The app is deployed successfully to the Dev site
The SharePoint feature is deployed and activated
The default.aspx page of the remote web loads
The error (see image) is returned on clicking of the button
My environment is an on-premise SharePoint 2013 with AD and my dev box is standalone windows 8.1 running Visual Studio Professional 2013 Update 3.
The code block below is a copy of the default.aspx code-behind
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.SharePoint.Client;
using Microsoft.IdentityModel.S2S.Tokens;
using System.Net;
using System.IO;
using System.Xml;
using System.Data;
using System.Xml.Linq;
using System.Xml.XPath;
namespace Idea.GeneratorWeb
public partial class Default : System.Web.UI.Page
SharePointContextToken contextToken;
string accessToken;
Uri sharepointUrl;
protected void Page_PreInit(object sender, EventArgs e)
Uri redirectUrl;
switch (SharePointContextProvider.CheckRedirectionStatus(Context, out redirectUrl))
case RedirectionStatus.Ok:
return;
case RedirectionStatus.ShouldRedirect:
Response.Redirect(redirectUrl.AbsoluteUri, endResponse: true);
break;
case RedirectionStatus.CanNotRedirect:
Response.Write("An error occurred while processing your request.");
Response.End();
break;
protected void Page_Load(object sender, EventArgs e)
//// The following code gets the client context and Title property by using TokenHelper.
//// To access other properties, the app may need to request permissions on the host web.
var spContext = SharePointContextProvider.Current.GetSharePointContext(Context);
//var spContext = new ClientContext("MySPDevInstance");
//spContext.Credentials = new NetworkCredential("username", "password");
//using (var clientContext = spContext.CreateUserClientContextForSPHost())
// clientContext.Load(clientContext.Web, web => web.Title);
// clientContext.ExecuteQuery();
// Response.Write(clientContext.Web.Title);
string contextTokenString = TokenHelper.GetContextTokenFromRequest(Request);
if (contextTokenString != null)
// Get context token
contextToken = TokenHelper.ReadAndValidateContextToken(contextTokenString, Request.Url.Authority);
// Get access token
sharepointUrl = new Uri(Request.QueryString["SPAppWebUrl"]);
accessToken = TokenHelper.GetAccessToken(contextToken, sharepointUrl.Authority).AccessToken;
// Pass the access token to the button event handler.
Button1.CommandArgument = accessToken;
protected void Button1_Click(object sender, EventArgs e)
// Retrieve the access token that the Page_Load method stored
// in the button's command argument.
string accessToken = ((Button)sender).CommandArgument;
if (IsPostBack)
sharepointUrl = new Uri(Request.QueryString["SPAppWebUrl"]);
// REST/OData URL section
string oDataUrl = "/_api/Web/lists/getbytitle('Diagrams In Idea Generator')/items?$select=Title,Diagram,SharingStatus";
// HTTP Request and Response construction section
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(sharepointUrl.ToString() + oDataUrl);
request.Method = "GET";
request.Accept = "application/atom+xml";
request.ContentType = "application/atom+xml;type=entry";
request.Headers.Add("Authorization", "Bearer " + accessToken);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
// Response markup parsing section
XDocument oDataXML = XDocument.Load(response.GetResponseStream(), LoadOptions.None);
XNamespace atom = "http://www.w3.org/2005/Atom";
XNamespace d = "http://schemas.microsoft.com/ado/2007/08/dataservices";
XNamespace m = "http://schemas.microsoft.com/ado/2007/08/dataservices/metadata";
List<XElement> entries = oDataXML.Descendants(atom + "entry")
.Elements(atom + "content")
.Elements(m + "properties")
.ToList();
var entryFieldValues = from entry in entries
select new
Character = entry.Element(d + "Title").Value,
Actor = entry.Element(d + "Diagram").Value,
CastingStatus = entry.Element(d + "SharingStatus").Value
GridView1.DataSource = entryFieldValues;
GridView1.DataBind();
Any ideas what I might be doing wrongHi ,
Use the below code
Public string GetAccessToken(){
string sharePointSiteUrlHost = Page.Request["SPHostUrl"].Tostring();
string AccessToken = tokenHelper.GetS2SAccessTokenWithWindowsIdentity(sharePointSiteUrlHost, Request.LogonUserIdentity);
return accessToken;
Than initialize the ClientCOntext with the below Method
private static ClientContext GetClientContextWithAccessTokenString(string targetUrl, object accessToken)
ClientContext clientContext = new ClientContext(targetUrl);
clientContext.AuthenticationMode = ClientAuthenticationMode.Anonymous;
clientContext.FormDigestHandlingEnabled = false;
clientContext.ExecutingWebRequest +=
delegate(object oSender, WebRequestEventArgs webRequestEventArgs)
webRequestEventArgs.WebRequestExecutor.WebRequest.UserAgent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)";
webRequestEventArgs.WebRequestExecutor.RequestHeaders["Authorization"] =
"Bearer " + accessToken;
return clientContext;
use this clientCOntext and it will work.
Do not use
SharePointContextProvider
Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer -
I face an error message Oxe800012 when connecting iphone 4s to the computer, any help please ?????
See this support article: http://support.apple.com/kb/TS3221
-
Error 401 (Unauthorized) when setting up Hybrid Search
Hello,
I am trying to set up Hybrid Search (one-way out-bound search) between a SharePoint 2013 on-premises farm I've got running on Windows Azure (IaaS) and a SharePoint Online trial tenant I have set up for the purpose.
I have followed Manas Biswas' rather long guide (search for manas biswas hybrid search on Bing to find it) for setting it up and everything has gone fine -- including setting up my SharePoint 2013 farm in a demo lab on Azure, signing
up for a SharePoint Online tenant, getting DirSync to work, etc. Actually, I hadn't bumped into any errors until the very end when I wanted to try out my setup.
I had just set up SharePoint Online as a search result source on my SharePoint 2013 team site. I have also set up the search query rule with the result block for the SP Online results. Yet, when I try to use the Query Builder and I search for "*",
I get the following error:
System.Net.WebException: The remote server returned an error: (401) Unauthorized. at System.Net.HttpWebRequest.GetResponse() at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute() at Microsoft.SharePoint.Client.ClientContext.GetFormDigestInfoPrivate() at Microsoft.SharePoint.Client.ClientContext.EnsureFormDigest() at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery() at Microsoft.Office.Server.Search.RemoteSharepoint.RemoteSharepointEvaluator.RemoteSharepointProducer.RetrieveDataFromRemoteServer(Object unused) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at Microsoft.Office.Server.Search.RemoteSharepoint.RemoteSharepointEvaluator.RemoteSharepointProducer.ProcessRecordCore(IRecord record)
Now, I don't know why this operation is rejected as "unauthorized." I am unsure of my certificates, which I have generated and set up in order for the connection to work. Out of all the steps in Biswas' guide, the certificates part is the one I
have the least knowledge about. I am suspecting that there is something wrong in this area but I have no idea of how to troubleshoot it.
To make it clear, I did not encounter any error messages while following the guide -- not even when firing off the fair amount of PowerShell scripts that Biswas has written.
I would appreciate it if anybody could help me troubleshoot this problem. I am running out of ideas to try out so any suggestion will appreciated! :-)Hi Sebastian and Manas,
I am trying to set up a hybrid environment and followed the blog posts. Everything was set up as per the guidelines mentioned but still I am not able to fetch any results from SharePoint Online inside my on-premise environment.
There are no errors coming as such. Its just that my on-premise is showing no results from SPO. However if the same user logs on into the Office 365 SPO site he is able to see SPO search results. That means there is no permission related issue specific to
test user.
I am totally out of ideas now. In case you have faced similar issues while setting up the same then any pointers to troubleshoot would be very helpful.
The link to my query that I have asked on the forums is
https://social.msdn.microsoft.com/Forums/office/en-US/540d2629-ec6b-4905-b8e2-f6ba4e770d26/configure-one-way-outbound-hybrid-search?forum=sharepointgeneral
Thanks,
Geetanjali
Geetanjali Arora | My blogs | -
HTTP Error: 401 unauthorized when executing a costcenter report.
Hi.
I get this HTTP error when executing an costcenter report.
The steps I do is following.
Call upp the report Y_D02_77000xxx
Under the "kostenstellen:Selection I Fill in this values.
Controlling area
Fiscal Year
From Period
To Period
Plan version
and finally i enter the "Cost Center group"
Then i press "execute" and get the result for differrent Cost Element, i get 2 lines "*Total" and
"**Over/underabsorption"
Now i doubleclick Over/underabsorption and select report "Cost Centers: Actual Line Items"
Now i Should get a new window woth results but instead i get a blank screen with the errormessage:
"HTTP error: 401 unauthorized"
This procedure worked fine until a couple of weeks ago.
Anyone have any ideas about what could be the problem?
Regards JohanYou might want to check all of your connections in SM59. When you get the 401 error, this is sometimes due to a connection failure (bad password and so on) in the RFC connections (this can also happen if you are using the Content Manager).
Hope that helps.
J. Haynes -
Error 401--Unauthorized when deployed on WL Managed server (10.3.3)
Hi,
I created & started a WL-Managed server on my window desktop machine. I deployed to this Managed server, an application which is running without problem on Admin Server. (The managed server is created in the same Domain as that of Admin Server)
However, when I log on to the application on Managed server & enter the UID & PW I get the Error 401--Unauthorized page. The same security works perfectly well for Admin Server.
Any clues what could be going wrong.
Thanks in advance.
Edited by: Prakash Chavan on Feb 28, 2011 4:57 PMThanks Faisal,
Here is the log after I add the 2 flags
<Mar 1, 2011 8:59:30 AM EST> <Notice> <WebLogicServer> <BEA-000365> <Server stat
e changed to RUNNING>
<Mar 1, 2011 8:59:30 AM EST> <Notice> <WebLogicServer> <BEA-000360> <Server star
ted in RUNNING mode>
Mar 1, 2011 9:13:27 AM oracle.jbo.uicli.mom.CpxUtils$Visitor logMainApplicationC
px
INFO: zip:C:/JDev11g/Middleware/user_projects/domains/base_domain/servers/Svr0/t
mp/_WL_user/TestTrackApp_V2.0/77qs7f/war/WEB-INF/lib/_wl_cls_gen.jar!/view/DataB
indings.cpx
[JpsAuth] Check Permission
PolicyContext: [TestTrackApp#V2.0]
Resource/Target: [view.pageDefs.ttsPageDef]
Action: [view]
Permission Class: [oracle.adf.share.security.authorization.RegionP
ermission]
Result: [FAILED]
For more information on this failure, please set -Djps.auth.debug.verb
ose=true
I have emailed you the requested log & the config files.
Edited by: Prakash Chavan on Mar 1, 2011 9:35 AM -
"An unidentified error has ocurred" when connecting to mySQL in Dreamweaver MX
Hi All,
I've been trying & failing to figure this out for 2 days. I hope someone can help! I installed xampp on my local machine, got the Apache server, phpMyAdmin, and SQL up and running. My next step is to connect to my MySQL database in Dreamweaver MX. This where I'm running into trouble.
I've given super access rights to several db users in my MySQL database just to be sure that it wasn't a matter of not-enough-permissions. Here is a screenshot of the privileges: http://www.skyebrannon.com/db_privs.jpg
I am sure my connection information is correct, as I've used it to create a php page that lists my database tables.Those are working just fine Here is my info:
$dbhost = "localhost";
$dbuser = "root";
$dbpass = "dbpassword";
$dbname = "camin0_music";
When I put the same information in my MySQL Connection, I get "An unidentified error has occured".
Here is a screenshot of the error and my (working) connection info:
http://www.skyebrannon.com/db_error.jpg
My apologies if this has been asked & solved. If I missed a thread that answes this, could you please let me know?
Thanks so much!
SkyeHi All,
I've been trying & failing to figure this out for 2 days. I hope someone can help! I installed xampp on my local machine, got the Apache server, phpMyAdmin, and SQL up and running. My next step is to connect to my MySQL database in Dreamweaver MX. This where I'm running into trouble.
I've given super access rights to several db users in my MySQL database just to be sure that it wasn't a matter of not-enough-permissions. Here is a screenshot of the privileges: http://www.skyebrannon.com/db_privs.jpg
I am sure my connection information is correct, as I've used it to create a php page that lists my database tables.Those are working just fine Here is my info:
$dbhost = "localhost";
$dbuser = "root";
$dbpass = "dbpassword";
$dbname = "camin0_music";
When I put the same information in my MySQL Connection, I get "An unidentified error has occured".
Here is a screenshot of the error and my (working) connection info:
http://www.skyebrannon.com/db_error.jpg
My apologies if this has been asked & solved. If I missed a thread that answes this, could you please let me know?
Thanks so much!
Skye -
SAP XI error: 401 Unauthorized (When calling from Enterprise Portal)
Hello Friends
I am trying to access an SAP table from IVIEW of portal via XI. Using the latest and greatest version of all SAP Components. (We just installed couple of weeks back).
I keep getting the following error message when I try to access data from IVIEW of portal.
"SAP XI error: 401 Unauthorized"
What may be the reason? If some one can help me, I would really appreciate it.
Thanks
RamThanks Srinivas for your help.
I tried accessing the URL directly and got the error message
"User Credentials not passed via Enterprise Portal. Please contact your Administrator"
Any more suggestions?
Thanks again
Ram -
Error message -1073807298 when connecting through TCP
I get the error code -1073807298 when I try to connect to a TCP raw socket VISA resource, the weirdest thing is that I actually can read the result of the queries I make. I fixed the problem reading one byte at a time but this is very inefficient (it uses a while loop) and I still get warnings, so I'd like to know if there is a way to fix this or if there is an equivalent of the "Serial Settings: Number of Bytes at Serial Port" for VISA TCP connections....
This is the WARNING that I get when I read one byte at a time:
Warning 1073676294 occurred at VISA Read in LV.vi
Possible reason(s):
VISA: (Hex 0x3FFF0006) The number of bytes transferred is equal to the requested input count. More data might be available.
This is the ERROR that I get when I set the byte count to 1024:
Error -1073807298 occurred at VISA Read in LV.vi
Possible reason(s):
VISA: (Hex 0xBFFF003E) Could not perform operation because of I/O error.
I enclosed the VI for your review,
Thanx in advance for your help,
Attachments:
LV.vi 22 KBHi,
While there is no equivalent of the "Serial Settings: Number of Bytes at Serial Port" for VISA TCP connections, one strategy is to make the first byte in your TCP string to contain the number of bytes to follow it. That way you can read that byte then know what to set the byte count to.
Regards,
John E.
Applications Engineering
National Instruments -
Error message appears when connected to computer
When I attempt to connect my original iphone to my pc in order to update...an error appears."Cannot connect iphone due to unknown error 0xE8000012" A week ago I was able to plug it in, what's going on? I have the latest itunes 8.2
I had that happen to me too once, don't know if it was the same error code, but powering off the Iphone (by holding down the top botton till it popped up the red shutdown slide) and powering it back on fixed the problem.
-
Error occured randomly when connecting user's INBOX with IMAP
Hi..
We are using our own developed web mail program using IMAP protocol.
Not very often but sometimes users faced error they couldn't connect their INBOX.
So I reconstructed their mailboxes and I could see error message.
reconstruct -r user/jcheol.kimuser/jcheol.kim/INBOX
ERROR: Trouble parsing cache record 190 string 1: String goes beyond EOF
Reconstructing...
user/jcheol.kim/Drafts
user/jcheol.kim/MyFolder
user/jcheol.kim/MyFolder/&rPW7OA-
user/jcheol.kim/MyFolder/43&rjAhkA-H&0wA-
user/jcheol.kim/MyFolder/43&rjAhkA-stc
user/jcheol.kim/MyFolder/SDI IS&0wA-
user/jcheol.kim/Sent
user/jcheol.kim/Spam
user/jcheol.kim/Trash
After run reconstruct user can see their mail.
Is there Anyone know what that errors means ?
Any ideas on how to fix it ?
mail sever version is..
> ./imsimta version
iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)
libimta.so 5.2 Patch 2 (built 19:30:12, Jul 14 2004)
SunOS ep_ms11 5.8 Generic_117350-25 sun4u sparc SUNW,Sun-Fire
ThanksThe error indicates that the store.idx file does not reflect the true status of the mailbox. Store.idx is a binary file that Messaging Server maintains to improve performance of getting data from the user's inbox.
The problem you describe can be caused by manual manipulation of the user's mailbox (removing files, adding files, etc), disk errors, and, yes, bugs. 5.2p2 is the latest PUBLICALLY available version of 5.2, but Tech Support has much later versions. I suggest contacting tech support and requesting a current hotfix. I cannot give you that, here.
Or, you can upgrade to 6.2.... -
StartTransmit / stopTransmit reference error on NetStream when connecting to device
Hi all,
I'm trying to create a P2P connection between a mobile device (Android) and a PC using the NetStream class.
When the connection is established, the Flash Player Instance on the PC is crashing with a reference error:
“Property startTransmit not found on flash.net.NetStream”
I have seen the thread located located here: http://stackoverflow.com/questions/9676496/adobe-cirrus-error-on-direct-connectproperty-st arttransmit-not-found-on-flash-n
but was not successfull in making it work with my code.
I have tried extending the NetStream class like so:
import com.frimastudio.cosy.util.NetConsole;
import flash.net.NetConnection;
import flash.net.NetStream;
public class NetStreamProvider extends NetStream
public function NetStreamProvider (connection:NetConnection, peerID:String)
super(connection, peerID);
// For AIR Android projects: when the device is put to sleep for a moment, this function will be
// called so we need to implement it to prevent flash from crashing.
public function startTransmit($p1:*, $p2:*):void
COSY::console { NetConsole.WarningInternal("NetInterfaceSlot", "startTransmit", "startTransmit called"); }
public function stopTransmit():void
COSY::console { NetConsole.WarningInternal("NetInterfaceSlot", "stopTransmit", "stopTransmit called"); }
and using the NetStreamProvider instead. Without success.
Any help would be greatly appreciated.
Thanks.
Guillaume>> i suspect this is AIR-specific (probably if AIR is the sender) -- in my experience it doesn't happen with plain Flash Player.
[Guillaume] -> Right, it does not happen on NetStreams between 2 Flash Players and 2 AIR app. Only between AIR-FlashPlayer NetStreams. Basically, after a stream is opened between AIR and Flash Player, the AIR is calling "starTransmit" on the FlashPlayer NetStream, wich is not implemented.
>> try making an object with those method names and assign it to netStream.client
[Guillaume] -> I tried the following:
Implement starTransmit/stopTransmit functions in the NetStream.client object
Implement startTransmit/stopTransmit functions in the NetStream instance (subclassed)
Without success. Basically, it works fine if I just create a "dummy" client object for the NetStream that has those 2 functions. But If I want to use my own client it was still crashing.
I found a work around for my problem.
My NetStream object is sub classed as such:
public class NetStreamProvider extends NetStream
public var customClient:Object;
public function NetStreamProvider (connection:NetConnection, peerID:String)
super(connection, peerID);
customClient = new Object();
this.client = customClient;
// Implement startTransmit and stopTransmit here for dummy client
customClient.onPeerConnect = function(subscriber:NetStream): Boolean{
var subClient:Object=new Object();
subClient.stopTransmit=function($p1:*,$p2:*):void{
trace("Cosy: stopTransmit called",$p1,$p2);
subClient.startTransmit=function():void{
trace("Cosy: startTransmit called");
subscriber.client = subClient;
return true;
public function SetClient(c:Object):void
this.client = c;
public function OnNetStreamAsyncError(event:AsyncErrorEvent):void
And in the stream status event handler, when the stream is ready (events "NetStream.Play.PublishNotify" and "NetStream.Play.Start") I set the correct client, which has the receive handler. At that point startTransmit was already called:
And in the stream status event handler, when the stream is ready (events "NetStream.Play.PublishNotify" and "NetStream.Play.Start") I set the correct client, which has the receive handler. At that point startTransmit was already called:
private function OnNetStreamStatus(e:NetStatusEvent)
switch(e.info.code)
case "NetStream.Play.PublishNotify":
stream = e.target as NetStreamProvider;
stream.SetupClient(client);
break;
case "NetStream.Play.Start":
stream = e.target as NetStreamProvider;
stream.SetupClient(client);
break;
At this point, i'm not blocked anymore. However, it would be good to know why, when and who are calling those functions to understand the issue. this is not documented anywhere, and might be an issue to a lot of people now that we are starting to see more and more cross-platform connectivity.
Cheers.
Guillaume -
Ipod Communications Error rec'd when connecting to Ipod port in Scion Xb
I recently purchased an Ipod Nano and a Scion Xb. The Scion has an Ipod port for easy connection. However, when I connect my Ipod Nano to the port/cable, I get an error message. "Ipod Communication Error" Does anyone know what I can do to fix this problem?
I have a Scion xB 2006 with the Pioneer iPod control and an iPod Photo 30GB. Which was working fine for about 3 weeks and now it will play a few tunes and then freeze. I've also run into songs playing but with no sound on iPod. I've tried rebooting the iPod, I've tried to restore/update, reload the music and settings on the iPod with no luck. After the freeze the setting stay stuck to the Scion logo on the iPod.
I suspect Pioneer puts a little bit of code out on the iPod disk or firmware to get it to work with the Steering Wheel controls as well as putting out its own logo and messages on the iPod display itself. Support for the iPod podcast menu seems non-existent as well. It would be nice if there was a way to get the iPod back to Factory Settings. I suspect a problem with the manufacturer Pioneer. But I'll go complain to my dealer first!
iBook G4 Mac OS X (10.4.6) iPod Photo 30GB
iBook G4 Mac OS X (10.4.6) iPod Photo 30GB
iBook G4 Mac OS X (10.4.6) iPod Photo 30GB -
Error in itunes when connecting ipod
hi if anyone could help me it would be good.
when i connect my ipod and it loads itunes it displays an error message saying the file or directory itunes/iprefs is corrupt and unreadable what can i do?Doublechecking. Have you tried a complete uninstall of both iTunes and all the other related software components and then a reinstall? If not, try the instructions from the following document:
Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8 -
Error message -1073807298 when connecting through USB
Hi,
I am trying to retrive data from an instrument through serial port as well as USB,
My vi works smoothly while connecting through serial port.
But when i try to connect through USB Error code-1073807298
is coming. This error comes when visa try to write to the instrument.
From visa configure serial port.vi no error is coming.
Can someone suggest a method to solve this problem...I get exactly the same error code with a TCP raw socket connection, the weirdest thing is that I actually can read the result of the query. I fixed the problem reading one byte at a time but this is very inefficient (it uses a while loop) and I still get warnings, so I'd like to know if there is a way to fix this or if there is an equivalent of the "Serial Settings: Number of Bytes at Serial Port" for VISA TCP connections....
This is the WARNING that I get when I read one byte at a time:
Warning 1073676294 occurred at VISA Read in LV.vi
Possible reason(s):
VISA: (Hex 0x3FFF0006) The number of bytes transferred is equal to the requested input count. More data might be available.
This is the ERROR that I get when I set the byte count to 1024:
Error -1073807298 occurred at VISA Read in LV.vi
Possible reason(s):
VISA: (Hex 0xBFFF003E) Could not perform operation because of I/O error.
I enclosed the VI for your review,
Thanx in advance for your help,
Attachments:
LV.vi 22 KB
Maybe you are looking for
-
How can I set up auto fill for forms on new PC with Windows 7
I cannot find any place on the Firefox browser to add my basic contact information for filling out forms.
-
What's wrong with Amateur features?
There some things about Album/Organiser in PS Elements that are much better than Bridge, such as the simple [and heirachical] tagging and finding. Now these features have been sneered at in these forums as being amateurish. Now since when is being ea
-
Ease your worries about potential headphone jack problems for $6.50
Just get one of these: http://www.radioshack.com/product.as...2559&hp=search It's a right-angle, -foot headphone cable extension with strain relief and a volume control. Actually, the reason I got one was because I use a pair of Grado SR-60's with my
-
Does anyone have any recommandations on how to read data from archive logs. When i use log minor, i am getting only bind variables for DML operations. But i need actual data from the archive logs.. Any thoughts Thanks -Prasad
-
I have an af:table in one .jspx page. When a particular row is selected and a link is clicked, according to the selected row, the second .jspx page should be populated. if no row is selected, second page should not be populated. For that, in the tabl