Solved

XML Spreadsheet (Compiler Error Message: BC30203: Identifier expected)

Posted on 2009-07-16
4
581 Views
Last Modified: 2013-11-08
Hi Experts,
I am trying with XML Spreadsheet,
I use namespaces as shown in "Code Section".
Please find error message in attached text file.
I have this code in "xx.aspx.vb" file.

I get error for <xmlns> namespace, this code works perfectly in my local PC through VS 2008 IDE. But when deployed in server I have "Compiler Error Message: BC30203: Identifier expected".
I have set IIS Server --> Website Property --> ASP.NET --> ASP.NET Version =2.0.50727
Restarted IIS server, verified if above setting still exist.
.Net Framework 3.5 is also installed in the server.
Even after above settings I get error

Please suggest how to fix, its urgent.
Imports <xmlns="urn:schemas-microsoft-com:office:spreadsheet">

Imports <xmlns:o="urn:schemas-microsoft-com:office:office">

Imports <xmlns:x="urn:schemas-microsoft-com:office:excel">

Imports <xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet">

Imports System.Linq

Open in new window

xmlns-Error.txt
0
Comment
Question by:arunkumarmanas
  • 2
4 Comments
 
LVL 21

Assisted Solution

by:Craig Wagner
Craig Wagner earned 20 total points
ID: 24899574
In VB.NET the Imports statement is used to make .NET namespaces available to the application code so you don't have to fully-qualify every reference to framework object. For example:

Dim writer As System.IO.StreamWriter

vs.

Imports System.IO

Dim writer As StreamWriter

I've never seen Imports used to reference XML namespaces in that way.

http://msdn.microsoft.com/en-us/library/7f38zh8x.aspx

I'd say remove the first four Imports statements and you should be fine.
0
 

Accepted Solution

by:
arunkumarmanas earned 0 total points
ID: 25125364
I moved "Imports" lines and other lines of code which was giving error to New Class library Project (in the same solution). build this to get dll, referenced this dll in web project then it worked fine.
I guess these Imports (XMLNS) are not supported in website (project).
0
 

Author Comment

by:arunkumarmanas
ID: 25125374
The solution I tried out worked
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Problem to picture file 3 40
Exception in Log4Net 1 19
Check if number is currency 15 29
getting id from database 5 24
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now