Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2009-07-16
4
Medium Priority
?
610 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 21

Assisted Solution

by:Craig Wagner
Craig Wagner earned 80 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 to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

670 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