Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
Getting error during logging in into webservice
string accountId ="12345";
Uri myUri = new Uri("https://webservices.netsuite.com");
serv.CookieContainer = new CookieContainer();
serv.CookieContainer.SetCookies(myUri, "ACCOUNT=" + accountId);
// accountId is the string value of the NetSuite account being logged
Passport passport = new Passport();
passport.email ="___@_______.com";
passport.password ="____";
passport.account="_____";;
Status status2 = (serv.login(passport)).status;
getting the following error:
com.netledger.dto.v2_5.faults.InvalidVersionFault: You must specify the ACCOUNT cookie in the http header in order to login through Web Services. Please see the FAQs on the WS portal for more information.