IDE :: Token EndElement In State Error

Sep 9, 2009

i have been visual basic 2008 to create a program which contains a lot of images nearly 1000 my computer is running vista with a 2GB RAM and over 5GB of space free..i keep getting a message about ~"Token Endelement would result in an invalid XML file"~ it then offers me to "save as" it then becomes very slow and will take a while to allow me to get another "token endelement message".i also get one about "exception of type 'system. outofmemory exception' was thrown" the last message, after getting several of the above is "cannot be completed"..i will put a link of my program files (not the images) and would ask for any help as soon as possible as this would save me quite a bit of data i can't remember when i last saved it!

View 1 Replies


ADVERTISEMENT

VS 2010 Adjusting Token Privlidges - Error

Mar 4, 2012

I have been trying to write a third-party status console for one of the applications I work with. I am unaccustomed to using pinvoke commands, but found some tutorials and attempted to use ReadProcessMemory from kernel32.dll:

<DllImportAttribute("kernel32.dll", EntryPoint:="ReadProcessMemory", SetLastError:=True)> _
Private Shared Function ReadProcessMemory(<InAttribute()> ByVal hProcess As

[Code]....

View 2 Replies

Use An XPathNavigator Select To Get A Node Iterator - Invalid Token Error

Jul 16, 2009

I use an XPathNavigator Select to get a node iterator in the code below and get an invalid token error. If I take out the @contract I do not get an error. I then have to use MoveToAttribute, which works, but shouldn't be needed. Why do I get an error when the @ syntax is valid XPath?

Const pth = "configuration/system.serviceModel/services/service/endpoint@contract"

Private Sub OpenToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenToolStripMenuItem.Click

With OpenFileDialog1

[CODE]...

View 1 Replies

Calling A Web Service That Requires Credentials: Error: A Security Token Is Required?

Dec 20, 2011

When I try to call a [Java] web service from .NET, I am getting what appears to be a security credentials issue. CWWSS5509E: A security token whose type is [http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken] is required.Is it even picking up the credentials that I am trying to pass? At this point, I just want to make contact with the web service and get access. In my example, ServiceReference1 is a generated Web proxy class.

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim myLocateProfileBySourceSystemId As New ServiceReference1.locateProfileBySourceSystemId

[code].....

View 1 Replies

Xml Parsing - Closing Tag Is Not Triggering XmlNodeType.EndElement

Feb 2, 2009

self closing tag is not triggering XmlNodeType.EndElement case how to check for these

[Code]...

View 19 Replies

Server : Msg 823, Level 24, State 2, Line 1 - Error 21(The Device Is Not Ready)?

Feb 3, 2012

Server: Msg 823, Level 24, State 2, Line 1

I/O error 21(The device is not ready.) detected during read at offset 0x0000000001c000 in file 'Y:MSSQLDATAGLC2005.mdf'.

View 3 Replies

Error# 18456, Severity: 14, State: 8. Coming From Visual Basic Program

May 17, 2010

I've been hired at a company to fix some bugs and make some improvements to their in house programs. The program I am currently working has been written in Visual Studio 2005, in Visual Basic specifically. The program is used to connect to a database on a server and provide various information. However, I have run into a snag where the program will refuse to connect to the database when it using a user account and password that has been set up on the database. When I look at the logs i see it is giving the error as stated above, however, I have double and triple checked the password both on the database and the one hardcoded into the program and they are identical yet it still logs that there is a password mismatch. Has anyone run into this problem or figured out a solution towards fixing it, I will be much obliged.

View 6 Replies

Make A Token With String?

Sep 17, 2009

How am i going to make a token with this string"The quick brown fox jumps over the lazy dog" that its output would be:

the
quick
brown
fox
jumps
over
the
lazy
dog

Token:9

The token is equal to the number of words. For every word entered, to identify it as a word is a space, which means that the space serves as a counter for the token and the words entered are printed in that kind of output.

View 3 Replies

Parser Error (could Not Read State "objDebugResolveAssemblyReference.cache) While Loading An Asp.net Page

Jun 4, 2009

i got an error while loading a page in asp.net.I have renamed the page before loading it.The error is as follows:-

**could not read state "objDebugResolveAssemblyReference.cache"**

View 1 Replies

.net - Exchange Code For Token Facebook-c#-sdk?

May 21, 2012

I am using The Facebook-C#-Sdk v5.0.3 to create a non-canvas webforms app in vb.net and i am having trouble exchanging the returned facebook code for the access_token. Does anyone have an example (C# or vb.net) that I can look at

View 1 Replies

Create Template Token Variables?

May 4, 2011

Forgive me if this has already been covered in a previous post. I am considering using VB.net for a project but need to know before I dive in if it can perform this particular functionality. The application I wish to develop would need to be able to create html and email templates using variable tokens - what I mean is that users would need to be able to insert into their html or email template previously assigned variables that would send dynamically generated text from the database - so, for example, they could write in their template {title}, or {firstname} {lastname} which would then be replaced by the data from the db.

View 3 Replies

XML Read Fail - Invalid Token

Nov 4, 2011

I have the following code. I am loading the xml file, it's fine. When get into my loop and try to read the line I get unhadled exception and the following error
'Part ID="1"/SalesPrices/OrderPrice/GrosscostsAPiece' has an invalid token.
I have discovered that the reader is not liking the Part ID="1" part. How to overcome this problem considering the xml will always have that element as it is. Need to extract the value in the GrosscostsAPiece element.

document.Load(xmlFile)
for Each element As XmlElement In document.SelectNodes("document/body/Parts")
arr(1) = element.SelectSingleNode("Part ID="""1"""/SalesPrices/OrderPrice/GrosscostsAPiece").InnerText
Next

View 6 Replies

Error - Server: Msg 5171, Level 16, State 1, Line 1Database.mdf Is Not A Primary Database File

Aug 5, 2009

I have the error Server: Msg 5171, Level 16, State 1, Line 1Database.mdf is not a primary database file.

View 1 Replies

C# - WCF/WIF STS Remember Me Function - Saving The STS Token On Server

Mar 9, 2012

I have a asp.net website. The asp.net website connects to a wcf service. The wcf service is using a sts(security token service) with custom username/password authentication. The asp.net page has a simple username and password login form. Now I'd like to implement a "remember me" function. At the moment I have two solutions: Saving the entered user and password on the asp.net server and set a cookie with an ID. Saving the STS token on the asp.net server and renew it if needed. What is the more secure solution? Do you have any other ideas?

View 1 Replies

Token Privilege To Change Time Zone?

Jan 15, 2010

I'm trying to write code in .NET 2.0 to change the time zone - long story short its toautomate server deployment. I'm having a problem adding the SE_TIME_ZONE_NAME privilege I found code online to add the SE_SHUTDOWN_NAME privilege which I adapted into the following code:

Imports System.Runtime.InteropServices
Module ChangeTokenPrivs
Private Const ANYSIZE_ARRAY As Integer = 1

[code].....

View 1 Replies

Parse Text Into Tokens And Identify Token Functions?

May 18, 2011

Ok. So I have a form, a textbox, and a RichTextBox. In the RTB, there is justsomemiscellaneoustext. In the textbox, it says "Save "Test"". When I press Button1, I want my program to parse the text in the textbox, find "Save", and realize that means to save the text in the RTB to a txt file with the name "Test" (the text next to 'save' in quotes).

View 3 Replies

When Click The High Or Low Button In Program It Does Not Make Changes To My Token

Dec 28, 2010

I have a couple quick questions with the program that I am doing. This program is a hilo program and here are my remaining issues...

1. When I click the high or low button in my program it does not make changes to my token (I want the default tokens to be 100 and added 100 to the text property of my textbox so want to make sure I did that right)

2. In my program it only shows 13 possibilities but want to have the ability to add more

3. I also would like to change 1 to ace, 11 to jack, 12 to queen, and 13 to king and would like to get some assistance with that as well

[Code]...

View 1 Replies

Unable To Use IntPtr (WindowsIdentity Token) As Input Param On WebMethod (ASMX Web Service)?

Jun 26, 2009

We're in a strange situation with a legacy winforms VB.NET 1.1 application using ASMX web services. Trying to send a user Token from a WindowsIdentity object as a parameter to a WebMethod. I will be adding a 'HACK: comment. System.Security.Principal.WindowsIdentity.GetCurrent().Token

The token is of type IntPtr, the first problem is the WSDL being generated doesn't support IntPtr with the error of 'unsupported type'I'm aware this is a big WTF question and sounds insecure, so any simple helpful alternatives are welcome but there are a lot of constraints on how we can change this system, including complications with the hosting environment. So I would just like to get our piece of data over to the web service to save a lot of other headaches.

[Code]...

View 1 Replies

Error - ExecuteScalar Requires An Open And Available Connection - The Connection's Current State Is Closed

Aug 3, 2011

i have an application. which is executed after every 5 mins. i have an open connection but it gives me the following error:

ExecuteScalar requires an open and available Connection. The connection's current state is closed.

my code is something like this. I have shown where all i am using ExceuteScalar()

Sub Main()
Try
connection.open()
cmd.ExecuteScalar()

[code]....

View 2 Replies

Can't Publish "SignTool Reported An Error 'Key Not Valid For Use In Specified State"

Jun 1, 2009

I'm having a strange problem, I am able to build the program and run it, however, when I try to publish, I get the following errors and Can't Publish "SignTool reported an error 'Key not valid for use in specified state"

View 12 Replies

Can't Publish "SignTool Reported Error 'Key Not Valid For Use In Specified State"

May 9, 2009

I'm having a strange problem, I am able to build the program and run it, however, when I try to publish, I get the following errors and can't publish:

View 6 Replies

.net - XmlWriter Throws Exception By XmlWriter.WriteAttributeString (SetAttribute Token -> Invalid XML Doc)

Jun 27, 2011

I try to create a XML file

[Code]...

I get an exception? How do I get the XML-output as above ?

View 1 Replies

Get Key State Function With Out Using DLL?

Nov 3, 2011

I need codes for vb.net Getkeystate Function() without using any DLL.I'm beginner for API Conversion from vb to vb.net.In vb6 they using user32 DLL.In Vb.Net i need to call Getkeystate Function without that "User32.dll" function. can any one post me the codes without using dll?

Is there any way to get key state without using that dll Getkeystate function in vb.net..? if equivalent is any one know means show me that codes.that codes should be work with in .net framework.[code]...

View 2 Replies

VS 2010 Get State Of INS-key?

Mar 19, 2011

How do I detect the state of the INS-key on the keyboard? MS somehow forgot to implement it in My.Computer.Keyboard...

View 3 Replies

.net - How To Set ASP Checkbox State With Javascript

May 1, 2012

In a VB.net app, I have several checkboxes created with regular ASP controls, i.e.asp:CheckBox ID="cb3" runat="server" Checked="true" />I'm trying to implement a "Select all/none" functionality but I'm having a few problems. The Javascript is not changing the state of the checkboxes in Internet Explorer (v9). I tried debugging with IE's dev tools and the checkboxes are definitely getting their checked property set to true. (Also tried setting to "checked".) Here is the JS:

function setCheckboxes( state )
{
var inputs = document.getElementsByTagName("input");

[code]......

View 3 Replies

Asp.net - Finding All Use Of Session State?

Feb 3, 2011

I'm looking for some smart ideas on how to quickly find all usage of session state within an existing asp.net (MVC) application.

The application in question was the subject of outsourced development, and has been running fine in production. But we recently realised that it's using InProc session state rather than (our preferred route) StateServer.

In a small scale test, we switched it over to StateServer, and all worked fine. However, when we deployed to production, we suddenly experienced a large number of errors. I'm not sure if these errors were caused by this change (they were actually complaining about database level problems), but removing the change allowed the application to function once again (this may have just been because it caused a recycle to occur).

So before I try switching it again, I'd like to perform a thorough audit of all objects being placed in the session (I'd previously taken a quick look at a couple of controllers, and they seemed fine). If I had full control over the code, this is the kind of place where I'd just comment out the class (to compile and find the various ways of reaching the session class), then comment out the accessors, hit compile, and visit each error. But I can't do that with built in .NET framework types.

I decided to try using Reflector. I've analyzed the "Used By" for each of the following:

System.Web.HttpSessionStateBase.set_Item(String, Object) : Void
System.Web.SessionState.HttpSessionState.set_Item(String, Object) : Void
System.Web.SessionState.HttpSessionState.set_Item(Int32, Object) : Void

[Code]....

View 2 Replies

Asp.net - View State After Postback VB?

Apr 12, 2011

I have a label's value that is posted back from a previous page and I want to use this label to do a simple calculation in the current page, but when I do the calculation the page (refreshed) the value of this label and automatically deleted the value (Since there would be no value in postback when it refreshed).

Here is the code behind file:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Label2.Text = Request.Form("Hidden1")
End Sub

and here where I want to use the label

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Stotal As String
Stotal = Val(Label2.Text) * 10
Label3.Text = Stotal
End Sub

How can I save the value in the page via view state or any other method?

View 1 Replies

C# Vb: When They Say Static Classes Should Not Have State?

Apr 23, 2011

when they say static classes should not have state/side effects does that mean:

static void F(Human h)
{
h.Name = "asd";

[code].....

View 3 Replies

Check For Program State And Act Upon That

Aug 15, 2011

Here is, basically, how my application works:

When windows starts, my app starts. Whenever my app is running, it hides the desktop, taskbar, etc... When a button is clicked in my application ("Start program"), then my application will set its visible property at false and another application will start.

Everything seems to work perfect except I need a way for my application to set its visible property back to true, but only once the other application that was started earlier, is closed (no longer running.)

My thought was that I could use a timer to check for the applications state every so many seconds:[code...]

I have 2 concerns with this:

1. A timer checking this every few seconds will invoke unneeded stress on a computer since they are running for sometimes very long periods of time.

2. There is a better way to accomplish this that doesnt rely on a timer.

View 2 Replies

Checkedlistbox Inverting It's State

Aug 25, 2011

Why does this not work?

[Code]...

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved