<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Visual Basic .NET</title><link>http://forums.asp.net/36.aspx</link><description>Discussions/Questions about the Visual Basic .NET language. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=14&amp;c=23" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: BC30451: Name 'Mystyle' is not declared</title><link>http://forums.asp.net/thread/3324384.aspx</link><pubDate>Sat, 01 Aug 2009 00:26:46 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3324384</guid><dc:creator>rpayne7264</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3324384.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3324384</wfw:commentRss><description>&lt;p&gt;I just ran into the same problem.&lt;/p&gt;
&lt;p&gt;I solved it by going into IIS on my dev machine and converting my virtual directory to an application.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: BC30451: Name 'Mystyle' is not declared</title><link>http://forums.asp.net/thread/3268027.aspx</link><pubDate>Wed, 01 Jul 2009 06:08:41 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3268027</guid><dc:creator>susain</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3268027.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3268027</wfw:commentRss><description>&lt;p&gt;Thanks for the reply Hakim!&lt;/p&gt;
&lt;p&gt;Let me tell you that Mystyle class doesn’t have any namespace and it contains only the simple logic, you can refer above code.&lt;/p&gt;
&lt;p&gt;I am calling the class fuction like this lblMessage.Text = Mystyle.Msg&lt;/p&gt;
&lt;p&gt;Mystyle is the class file name and Msg is the function, I checked and the names are same.&lt;/p&gt;
&lt;p&gt;I don’t understand why the problem is in development server only.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Farooq&lt;/p&gt;</description></item><item><title>Re: BC30451: Name 'Mystyle' is not declared</title><link>http://forums.asp.net/thread/3267990.aspx</link><pubDate>Wed, 01 Jul 2009 05:44:51 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3267990</guid><dc:creator>shabirhakim1</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3267990.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3267990</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;hey ,&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;A common cause is a simple misspelling where the class name is used&lt;/strong&gt;. For example: &lt;/li&gt;&lt;/ul&gt;
&lt;blockquote&gt;&lt;pre&gt;dim connection as OdbcConection;&lt;/pre&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;Here the class name should have been &amp;#39;&lt;code&gt;OdbcConnection&lt;/code&gt;&amp;#39;. The solution is to correct the spelling.&lt;/p&gt;&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;If the name is correct then the next most likely cause is that the required namespace has not been imported. For example: &lt;/li&gt;&lt;/ul&gt;
&lt;blockquote&gt;&lt;pre&gt;dim connection as OdbcConnection;
.
.
[Error] Type &amp;#39;OdbcConnection&amp;#39; is not defined.&lt;/pre&gt;
&lt;p&gt;In this example &amp;#39;OdbcConnection&amp;#39; is defined in the namespace &amp;#39;System.Data.Odbc&amp;#39; (although this differs been the .Net framework 1.0 and later versions). Try importing the necessary namespace, so in this case:&lt;/p&gt;
&lt;table&gt;

&lt;tr&gt;
&lt;td style="FONT-WEIGHT:bold;"&gt;VB.NET:&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Imports System.Data.Odbc&lt;/code&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="FONT-WEIGHT:bold;"&gt;C#:&lt;/td&gt;
&lt;td&gt;&lt;code&gt;using System.Data.Odbc;&lt;/code&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;p&gt;&amp;quot;imports&amp;quot; (or &amp;quot;using&amp;quot;) statement must be included at the very top of the file.&lt;/p&gt;
&lt;p&gt;Just Observe properly whether things are going &lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Re: BC30451: Name 'Mystyle' is not declared</title><link>http://forums.asp.net/thread/3267801.aspx</link><pubDate>Wed, 01 Jul 2009 03:05:11 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3267801</guid><dc:creator>susain</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3267801.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3267801</wfw:commentRss><description>&lt;p&gt;Need help,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Farooq&lt;/p&gt;</description></item><item><title>Re: BC30451: Name 'Mystyle' is not declared</title><link>http://forums.asp.net/thread/3265471.aspx</link><pubDate>Tue, 30 Jun 2009 03:54:03 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3265471</guid><dc:creator>susain</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3265471.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3265471</wfw:commentRss><description>&lt;p&gt;Thanks for the reply hakim!&lt;/p&gt;
&lt;p&gt;Yes the class file is in App_code folder.&lt;/p&gt;
&lt;p&gt;I created a new page and built the solution and got the output in my local system as&amp;nbsp;&lt;span id="lblMessage" style="FONT-WEIGHT:bold;COLOR:red;"&gt;Hi boss How r u&lt;/span&gt; &lt;/p&gt;
&lt;p&gt;I uploaded the bin file, class file and newly created page.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Again I am getting the above specified&amp;nbsp;error in the development server.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Need help and suggestions&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Farooq&lt;/p&gt;</description></item><item><title>Re: BC30451: Name 'Mystyle' is not declared</title><link>http://forums.asp.net/thread/3264294.aspx</link><pubDate>Mon, 29 Jun 2009 13:24:10 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3264294</guid><dc:creator>shabirhakim1</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3264294.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3264294</wfw:commentRss><description>&lt;p&gt;Hey,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Just check where you have kept your class file,better put this class in App_Code Folder.&lt;/p&gt;
&lt;p&gt;if still it would&amp;#39;t work just recompile it&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;hakim,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>BC30451: Name 'Mystyle' is not declared</title><link>http://forums.asp.net/thread/3263854.aspx</link><pubDate>Mon, 29 Jun 2009 10:22:08 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3263854</guid><dc:creator>susain</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3263854.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3263854</wfw:commentRss><description>&lt;p&gt;Hi Friends,&lt;/p&gt;
&lt;p&gt;I have created class file with name Mystyle and the code is as follows&lt;/p&gt;&lt;pre class="c-sharp" name="code"&gt;Imports Microsoft.VisualBasic
Public Class Mystyle
    Public Shared Function Msg() As String
        Dim st As String
        st = &amp;quot;Hi boss How r u&amp;quot;
        Return st
    End Function
End Class&lt;/pre&gt;
&lt;p&gt;I am calling this as Response.Write(mystyle.Msg())&lt;/p&gt;
&lt;p&gt;This is working fine in my local system fine but &lt;em&gt;I am getting the below error in the development server&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Compiler Error Message: &lt;/b&gt;BC30451: Name &amp;#39;Mystyle&amp;#39; is not declared.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Source Error:&lt;/b&gt;&lt;/p&gt;
&lt;table cellpadding="0"&gt;

&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;Line 7:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.Write(Mystyle.Msg())&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;p&gt;Can any one help me?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Farooq&lt;/p&gt;</description></item></channel></rss>