<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>VBForums - MVC .Net</title>
		<link>http://www.vbforums.com/</link>
		<description>Discuss and ask questions regarding Model View Controller (MVC) support in ASP.NET</description>
		<language>en</language>
		<lastBuildDate>Sat, 25 May 2013 15:43:52 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.vbforums.com/images/misc/rss.png</url>
			<title>VBForums - MVC .Net</title>
			<link>http://www.vbforums.com/</link>
		</image>
		<item>
			<title>VS 2012 Error: No session bound to the current HttpContext</title>
			<link>http://www.vbforums.com/showthread.php?722585-Error-No-session-bound-to-the-current-HttpContext&amp;goto=newpost</link>
			<pubDate>Thu, 23 May 2013 07:39:21 GMT</pubDate>
			<description><![CDATA[Iam trying to call call a method which having an OpenSession but its ending up with an error 
 "No session bound to the current HttpContext" in CurrentSesions following line

Code:
---------
_currentSession = Instance.GetSessionFactory().GetCurrentSession();
---------
The following is the full code of CurrentSession

Code:
---------
public static ISession CurrentSession
        {
            get
            {
                ISession _currentSession = null;
                if (System.Web.HttpContext.Current != null)
                {
                    _currentSession = Instance.GetSessionFactory().GetCurrentSession();
                }
                else
                {
                    _currentSession = SessionFactory.OpenSession();
                }
                return _currentSession;
            }
        }
---------
and this methods are in a class names "WigleSessionManager" and its constructer is the following


Code:
---------
private WigleSessionManager()
        {
            Configuration configuration = new Configuration();
            configuration.Configure();
            string[] Files;
            string src = System.Configuration.ConfigurationSettings.AppSettings["ComponentDirectory"];            
            if (string.IsNullOrEmpty(src))
            {
                throw new Exception("System Error: ComponentDirectory key not defined in web.config");
            }
            Files = Directory.GetFiles(src, "*Entities.dll");
            foreach (string Element in Files)
            {
                try
                {
                    Assembly SampleAssembly;
                    SampleAssembly = Assembly.LoadFrom(Element);
                    configuration.AddAssembly(SampleAssembly);
                }
                catch (Exception)
                {

                }
            }
            sessionFactory = configuration.BuildSessionFactory();
        }
---------
here in sessionFactory object is showing ENtityFetchCount,EntityLoadCount and Entity names all 0...]]></description>
			<content:encoded><![CDATA[<div>Iam trying to call call a method which having an OpenSession but its ending up with an error <br />
 &quot;No session bound to the current HttpContext&quot; in CurrentSesions following line<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">_currentSession = Instance.GetSessionFactory().GetCurrentSession();</code><hr />
</div>The following is the full code of CurrentSession<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">public static ISession CurrentSession<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; get<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ISession _currentSession = null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (System.Web.HttpContext.Current != null)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _currentSession = Instance.GetSessionFactory().GetCurrentSession();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _currentSession = SessionFactory.OpenSession();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return _currentSession;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }</code><hr />
</div>and this methods are in a class names &quot;WigleSessionManager&quot; and its constructer is the following<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">private WigleSessionManager()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Configuration configuration = new Configuration();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; configuration.Configure();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string[] Files;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string src = System.Configuration.ConfigurationSettings.AppSettings[&quot;ComponentDirectory&quot;];&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (string.IsNullOrEmpty(src))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; throw new Exception(&quot;System Error: ComponentDirectory key not defined in web.config&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Files = Directory.GetFiles(src, &quot;*Entities.dll&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; foreach (string Element in Files)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Assembly SampleAssembly;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SampleAssembly = Assembly.LoadFrom(Element);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; configuration.AddAssembly(SampleAssembly);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; catch (Exception)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sessionFactory = configuration.BuildSessionFactory();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }</code><hr />
</div>here in sessionFactory object is showing ENtityFetchCount,EntityLoadCount and Entity names all 0...</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?93-MVC-Net">MVC .Net</category>
			<dc:creator>sanju4kk</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?722585-Error-No-session-bound-to-the-current-HttpContext</guid>
		</item>
		<item>
			<title><![CDATA[VS 2012 [RESOLVED] How to create object for an entity class?]]></title>
			<link>http://www.vbforums.com/showthread.php?722457-RESOLVED-How-to-create-object-for-an-entity-class&amp;goto=newpost</link>
			<pubDate>Wed, 22 May 2013 07:00:29 GMT</pubDate>
			<description>I have an Entity class names Users and i need this to be called at a View Names Create.

How can i do that?
I need to call the properties of Users class

Pls help me....</description>
			<content:encoded><![CDATA[<div>I have an Entity class names Users and i need this to be called at a View Names Create.<br />
<br />
How can i do that?<br />
I need to call the properties of Users class<br />
<br />
Pls help me....</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?93-MVC-Net">MVC .Net</category>
			<dc:creator>sanju4kk</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?722457-RESOLVED-How-to-create-object-for-an-entity-class</guid>
		</item>
		<item>
			<title>VS 2012 it is a namespace but is used like a type</title>
			<link>http://www.vbforums.com/showthread.php?721987-it-is-a-namespace-but-is-used-like-a-type&amp;goto=newpost</link>
			<pubDate>Fri, 17 May 2013 12:07:19 GMT</pubDate>
			<description><![CDATA[I have two projects and refering one to another. To say project DEntity is refering in Project DService. and among the namespaces am using iam refering this particular project too. 
When i trying to call the DEntityproject's one of the file's class, its nt happening.



Code:
---------
DEntity.Helper.Opensession() is a namespace but is used like a type
---------
the line of code is this


Code:
---------
DEntity.Helper.Opensession();
---------
Thanks in advance]]></description>
			<content:encoded><![CDATA[<div>I have two projects and refering one to another. To say project DEntity is refering in Project DService. and among the namespaces am using iam refering this particular project too. <br />
When i trying to call the DEntityproject's one of the file's class, its nt happening.<br />
<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">DEntity.Helper.Opensession() is a namespace but is used like a type</code><hr />
</div>the line of code is this<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">DEntity.Helper.Opensession();</code><hr />
</div>Thanks in advance</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?93-MVC-Net">MVC .Net</category>
			<dc:creator>sanju4kk</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?721987-it-is-a-namespace-but-is-used-like-a-type</guid>
		</item>
		<item>
			<title><![CDATA[[RESOLVED] New to ASP.NET: HTTP Error 500.21 Error Code 0x8007000d]]></title>
			<link>http://www.vbforums.com/showthread.php?721973-RESOLVED-New-to-ASP-NET-HTTP-Error-500-21-Error-Code-0x8007000d&amp;goto=newpost</link>
			<pubDate>Fri, 17 May 2013 07:52:59 GMT</pubDate>
			<description><![CDATA[Hi. I'm new to ASP.Net and just recently installed IIS 7.5
I'm having some problem in running my application in the IIS Manager. I've watch this tutorial http://www.youtube.com/watch?v=LNzw_NmiSHQ and did everything that it says. I've encountered some problems and google search for solutions. I've also installed the IIS URL Rewrite Module 2 as I've read as a solution to my problems and nothing happened. I've also went to the "Turn Windows feature on or off" and check all the checkbox that I could find which regards to the IIS and nothing happened. I've also made sure that the permission to the IIS_IURS is granted to that file.

I've reread the error again and the following says:


---Quote---
Most likely cause:

* Managed handler is used; however, ASP.Net is not installed or is not installed completely.
*There is a typographical error in the configuration for the handler module list.



Links and More Information:
*IIS core does not recognize the module
---End Quote---
The last thing I wanted to do is uninstall the IIS and try to redo everything again. The resolution in the microsoft says that I have to "Delete the malformed XML element from the ApplicationHost.config file or from the Web.config file".

Below is the Web.config file in my application:

Code:
---------
<?xml version="1.0"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
  
  <connectionStrings>
    <add name="CSR_PayrollDatabaseConnectionString" connectionString="Data Source=GLOBAL-SQL;Initial Catalog=CSR_PayrollDatabase;Integrated Security=True"
      providerName="System.Data.SqlClient" />
    <add name="MSR_PayrollDatabaseConnectionString" connectionString="Data Source=GLOBAL-SQL;Initial Catalog=MSR_PayrollDatabase;Integrated Security=True"
      providerName="System.Data.SqlClient" />
    <add name="hrmsDBConnectionString" connectionString="Data Source=GLOBAL-SQL;Initial Catalog=hrmsDB;Integrated Security=True"
      providerName="System.Data.SqlClient" />
    <add name="hrmsDBConnectionString1" connectionString="Data Source=GLOBAL-SQL;Initial Catalog=hrmsDB;Persist Security Info=True;User ID=jotomau1;Password=J0tomau"
      providerName="System.Data.SqlClient" />
    <add name="hrmsDBConnectionString2" connectionString="Data Source=idd-sql;Initial Catalog=hrmsDB;Persist Security Info=True;User ID=jotomau1;Password=J0tomau"
      providerName="System.Data.SqlClient" />
  </connectionStrings>
  <system.web>
    <!--<xhtmlConformance mode="Transitional"/>-->
    <customErrors mode="Off"/>
    <httpHandlers>
      <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
        validate="false" />
    </httpHandlers>
    <compilation debug="true" strict="false" explicit="true" targetFramework="4.0">
      <assemblies>
        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
      </assemblies>
      <buildProviders>
        <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
      </buildProviders>
    </compilation>
    <browserCaps>
      <case match="^Mozilla/5\.0 \([^)]*\) (Gecko/[-\d]+)?Netscape[6|7]/(?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters'\w*)).*">

        tagwriter=System.Web.UI.HtmlTextWriter
        browser=Netscape
        version=${version}
        majorversion=${major}
        minorversion=${minor}
        frames=true
        tables=true
        cookies=true
        javascript=true
        javaapplets=true
        ecmascriptversion=1.5
        w3cdomversion=1.0
        css1=true
        css2=true
        xml=true
      </case>
      <!-- MOZILLA //-->
      <case match="^Mozilla/(?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters'\w*)).*">
        <case match="^[5-9]\." with="${version}">
          tagwriter=System.Web.UI.HtmlTextWriter
        </case>
      </case>
      <!-- OPERA 5+ //-->
      <case match="Opera[ /](?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters'\w*))">
        <filter match="[4-9]" with="${major}">
          <filter match="[5-9]" with="${major}">
            tagwriter=System.Web.UI.HtmlTextWriter
          </filter>
        </filter>
      </case>
    </browserCaps>
  </system.web>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <handlers>
      <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    </handlers>
  </system.webServer>
  <system.serviceModel>
    <behaviors>
      <endpointBehaviors>
        <behavior name="HRMS.SuggestNamesAspNetAjaxBehavior">
          <enableWebScript />
        </behavior>
      </endpointBehaviors>
    </behaviors>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true"
      multipleSiteBindingsEnabled="true" />
    <services>
      <service name="HRMS.SuggestNames">
        <endpoint address="" behaviorConfiguration="HRMS.SuggestNamesAspNetAjaxBehavior"
          binding="webHttpBinding" contract="HRMS.SuggestNames" />
      </service>
    </services>
  </system.serviceModel>
</configuration>
---------
The question is, which one should I delete?

If you guys have any tutorials on how to deploy ASP.Net to IIS 7.5 please do share if the only solution that I have right now is to reinstall the IIS.
The IIS 7.5 is currently installed in my Windows 7 and I'm using Microsoft Visual Studio 2010 for ASP.Net.

Many thanks.]]></description>
			<content:encoded><![CDATA[<div>Hi. I'm new to ASP.Net and just recently installed IIS 7.5<br />
I'm having some problem in running my application in the IIS Manager. I've watch this tutorial <a rel="nofollow" href="http://www.youtube.com/watch?v=LNzw_NmiSHQ" target="_blank">http://www.youtube.com/watch?v=LNzw_NmiSHQ</a> and did everything that it says. I've encountered some problems and google search for solutions. I've also installed the IIS URL Rewrite Module 2 as I've read as a solution to my problems and nothing happened. I've also went to the &quot;Turn Windows feature on or off&quot; and check all the checkbox that I could find which regards to the IIS and nothing happened. I've also made sure that the permission to the IIS_IURS is granted to that file.<br />
<br />
I've reread the error again and the following says:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Quote:</div>
	<div class="bbcode_quote printable">
		<hr />
		
			Most likely cause:<br />
<br />
* Managed handler is used; however, ASP.Net is not installed or is not installed completely.<br />
*There is a typographical error in the configuration for the handler module list.<br />
<br />
<br />
<br />
Links and More Information:<br />
*IIS core does not recognize the module
			
		<hr />
	</div>
</div>The last thing I wanted to do is uninstall the IIS and try to redo everything again. The resolution in the microsoft says that I have to &quot;Delete the malformed XML element from the ApplicationHost.config file or from the Web.config file&quot;.<br />
<br />
Below is the Web.config file in my application:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&lt;?xml version=&quot;1.0&quot;?&gt;<br />
&lt;!--<br />
&nbsp; For more information on how to configure your ASP.NET application, please visit<br />
&nbsp; http://go.microsoft.com/fwlink/?LinkId=169433<br />
&nbsp; --&gt;<br />
&lt;configuration&gt;<br />
&nbsp; <br />
&nbsp; &lt;connectionStrings&gt;<br />
&nbsp; &nbsp; &lt;add name=&quot;CSR_PayrollDatabaseConnectionString&quot; connectionString=&quot;Data Source=GLOBAL-SQL;Initial Catalog=CSR_PayrollDatabase;Integrated Security=True&quot;<br />
&nbsp; &nbsp; &nbsp; providerName=&quot;System.Data.SqlClient&quot; /&gt;<br />
&nbsp; &nbsp; &lt;add name=&quot;MSR_PayrollDatabaseConnectionString&quot; connectionString=&quot;Data Source=GLOBAL-SQL;Initial Catalog=MSR_PayrollDatabase;Integrated Security=True&quot;<br />
&nbsp; &nbsp; &nbsp; providerName=&quot;System.Data.SqlClient&quot; /&gt;<br />
&nbsp; &nbsp; &lt;add name=&quot;hrmsDBConnectionString&quot; connectionString=&quot;Data Source=GLOBAL-SQL;Initial Catalog=hrmsDB;Integrated Security=True&quot;<br />
&nbsp; &nbsp; &nbsp; providerName=&quot;System.Data.SqlClient&quot; /&gt;<br />
&nbsp; &nbsp; &lt;add name=&quot;hrmsDBConnectionString1&quot; connectionString=&quot;Data Source=GLOBAL-SQL;Initial Catalog=hrmsDB;Persist Security Info=True;User ID=jotomau1;Password=J0tomau&quot;<br />
&nbsp; &nbsp; &nbsp; providerName=&quot;System.Data.SqlClient&quot; /&gt;<br />
&nbsp; &nbsp; &lt;add name=&quot;hrmsDBConnectionString2&quot; connectionString=&quot;Data Source=idd-sql;Initial Catalog=hrmsDB;Persist Security Info=True;User ID=jotomau1;Password=J0tomau&quot;<br />
&nbsp; &nbsp; &nbsp; providerName=&quot;System.Data.SqlClient&quot; /&gt;<br />
&nbsp; &lt;/connectionStrings&gt;<br />
&nbsp; &lt;system.web&gt;<br />
&nbsp; &nbsp; &lt;!--&lt;xhtmlConformance mode=&quot;Transitional&quot;/&gt;--&gt;<br />
&nbsp; &nbsp; &lt;customErrors mode=&quot;Off&quot;/&gt;<br />
&nbsp; &nbsp; &lt;httpHandlers&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;add path=&quot;Reserved.ReportViewerWebControl.axd&quot; verb=&quot;*&quot; type=&quot;Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; validate=&quot;false&quot; /&gt;<br />
&nbsp; &nbsp; &lt;/httpHandlers&gt;<br />
&nbsp; &nbsp; &lt;compilation debug=&quot;true&quot; strict=&quot;false&quot; explicit=&quot;true&quot; targetFramework=&quot;4.0&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;assemblies&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;add assembly=&quot;System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;add assembly=&quot;System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;add assembly=&quot;System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;add assembly=&quot;Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;add assembly=&quot;Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;add assembly=&quot;Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;add assembly=&quot;System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/assemblies&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;buildProviders&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;add extension=&quot;.rdlc&quot; type=&quot;Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/buildProviders&gt;<br />
&nbsp; &nbsp; &lt;/compilation&gt;<br />
&nbsp; &nbsp; &lt;browserCaps&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;case match=&quot;^Mozilla/5\.0 \([^)]*\) (Gecko/[-\d]+)?Netscape[6|7]/(?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters'\w*)).*&quot;&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; tagwriter=System.Web.UI.HtmlTextWriter<br />
&nbsp; &nbsp; &nbsp; &nbsp; browser=Netscape<br />
&nbsp; &nbsp; &nbsp; &nbsp; version=${version}<br />
&nbsp; &nbsp; &nbsp; &nbsp; majorversion=${major}<br />
&nbsp; &nbsp; &nbsp; &nbsp; minorversion=${minor}<br />
&nbsp; &nbsp; &nbsp; &nbsp; frames=true<br />
&nbsp; &nbsp; &nbsp; &nbsp; tables=true<br />
&nbsp; &nbsp; &nbsp; &nbsp; cookies=true<br />
&nbsp; &nbsp; &nbsp; &nbsp; javascript=true<br />
&nbsp; &nbsp; &nbsp; &nbsp; javaapplets=true<br />
&nbsp; &nbsp; &nbsp; &nbsp; ecmascriptversion=1.5<br />
&nbsp; &nbsp; &nbsp; &nbsp; w3cdomversion=1.0<br />
&nbsp; &nbsp; &nbsp; &nbsp; css1=true<br />
&nbsp; &nbsp; &nbsp; &nbsp; css2=true<br />
&nbsp; &nbsp; &nbsp; &nbsp; xml=true<br />
&nbsp; &nbsp; &nbsp; &lt;/case&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;!-- MOZILLA //--&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;case match=&quot;^Mozilla/(?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters'\w*)).*&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;case match=&quot;^[5-9]\.&quot; with=&quot;${version}&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tagwriter=System.Web.UI.HtmlTextWriter<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/case&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/case&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;!-- OPERA 5+ //--&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;case match=&quot;Opera[ /](?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters'\w*))&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;filter match=&quot;[4-9]&quot; with=&quot;${major}&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;filter match=&quot;[5-9]&quot; with=&quot;${major}&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tagwriter=System.Web.UI.HtmlTextWriter<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/filter&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/filter&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/case&gt;<br />
&nbsp; &nbsp; &lt;/browserCaps&gt;<br />
&nbsp; &lt;/system.web&gt;<br />
&nbsp; &lt;system.webServer&gt;<br />
&nbsp; &nbsp; &lt;validation validateIntegratedModeConfiguration=&quot;false&quot; /&gt;<br />
&nbsp; &nbsp; &lt;handlers&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;add name=&quot;ReportViewerWebControlHandler&quot; preCondition=&quot;integratedMode&quot; verb=&quot;*&quot; path=&quot;Reserved.ReportViewerWebControl.axd&quot; type=&quot;Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot; /&gt;<br />
&nbsp; &nbsp; &lt;/handlers&gt;<br />
&nbsp; &lt;/system.webServer&gt;<br />
&nbsp; &lt;system.serviceModel&gt;<br />
&nbsp; &nbsp; &lt;behaviors&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;endpointBehaviors&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;behavior name=&quot;HRMS.SuggestNamesAspNetAjaxBehavior&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;enableWebScript /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/behavior&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/endpointBehaviors&gt;<br />
&nbsp; &nbsp; &lt;/behaviors&gt;<br />
&nbsp; &nbsp; &lt;serviceHostingEnvironment aspNetCompatibilityEnabled=&quot;true&quot;<br />
&nbsp; &nbsp; &nbsp; multipleSiteBindingsEnabled=&quot;true&quot; /&gt;<br />
&nbsp; &nbsp; &lt;services&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;service name=&quot;HRMS.SuggestNames&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;endpoint address=&quot;&quot; behaviorConfiguration=&quot;HRMS.SuggestNamesAspNetAjaxBehavior&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; binding=&quot;webHttpBinding&quot; contract=&quot;HRMS.SuggestNames&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/service&gt;<br />
&nbsp; &nbsp; &lt;/services&gt;<br />
&nbsp; &lt;/system.serviceModel&gt;<br />
&lt;/configuration&gt;</code><hr />
</div>The question is, which one should I delete?<br />
<br />
If you guys have any tutorials on how to deploy ASP.Net to IIS 7.5 please do share if the only solution that I have right now is to reinstall the IIS.<br />
The IIS 7.5 is currently installed in my Windows 7 and I'm using Microsoft Visual Studio 2010 for ASP.Net.<br />
<br />
Many thanks.</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?93-MVC-Net">MVC .Net</category>
			<dc:creator>louvelle</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?721973-RESOLVED-New-to-ASP-NET-HTTP-Error-500-21-Error-Code-0x8007000d</guid>
		</item>
		<item>
			<title><![CDATA[VS 2012 [RESOLVED] The system cannot find the file specified]]></title>
			<link>http://www.vbforums.com/showthread.php?721709-RESOLVED-The-system-cannot-find-the-file-specified&amp;goto=newpost</link>
			<pubDate>Wed, 15 May 2013 07:51:29 GMT</pubDate>
			<description>I am using the SQL server compact database which is coming along with visual studio.

Now while am compiling am geting the following error


Code:
---------
 A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
---------
Please help me out.......</description>
			<content:encoded><![CDATA[<div>I am using the SQL server compact database which is coming along with visual studio.<br />
<br />
Now while am compiling am geting the following error<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"> A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)</code><hr />
</div>Please help me out.......</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?93-MVC-Net">MVC .Net</category>
			<dc:creator>sanju4kk</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?721709-RESOLVED-The-system-cannot-find-the-file-specified</guid>
		</item>
		<item>
			<title><![CDATA[VS 2012 [RESOLVED] The requested page cannot be accessed because the related configuration data for the]]></title>
			<link>http://www.vbforums.com/showthread.php?721585-RESOLVED-The-requested-page-cannot-be-accessed-because-the-related-configuration-data-for-the&amp;goto=newpost</link>
			<pubDate>Tue, 14 May 2013 08:31:34 GMT</pubDate>
			<description><![CDATA[Am trying to run my asp.ent web application and it shows the following error

"The requested page cannot be accessed because the related configuration data for the page is invalid."

and in Config Error it says "  The configuration section 'hibernate-configuration' cannot be read because it is missing a section declaration"
in web.config file i have the following code


Code:
---------
<configSections>
    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  </configSections>

  <!-- NHibernate Settings-->
  <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
    <session-factory>
      <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
      <property name="dialect">NHibernate.Dialect.MsSql2005Dialect</property>
      <property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
      <property name="connection.connection_string">Server=localhost;initial catalog=UserMaintenance;Trusted_Connection=True</property>
      <property name="show_sql">false</property>
      <property name="proxyfactory.factory_class">NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle</property>
      <property name="current_session_context_class">managed_web</property>
      <property name="adonet.batch_size">20</property>
      <property name="cache.provider_class">NHibernate.Cache.HashtableCacheProvider</property>
      <property name="cache.use_query_cache">true</property>
      <property name="default_schema">UserMaintenance.dbo</property>
      <property name="connection.isolation">ReadCommitted</property>
    </session-factory>
  </hibernate-configuration>
---------
Please help me..]]></description>
			<content:encoded><![CDATA[<div>Am trying to run my asp.ent web application and it shows the following error<br />
<br />
&quot;The requested page cannot be accessed because the related configuration data for the page is invalid.&quot;<br />
<br />
and in Config Error it says &quot;  The configuration section 'hibernate-configuration' cannot be read because it is missing a section declaration&quot;<br />
in web.config file i have the following code<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&lt;configSections&gt;<br />
&nbsp; &nbsp; &lt;!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --&gt;<br />
&nbsp; &nbsp; &lt;section name=&quot;entityFramework&quot; type=&quot;System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&quot; requirePermission=&quot;false&quot; /&gt;<br />
&nbsp; &lt;/configSections&gt;<br />
<br />
&nbsp; &lt;!-- NHibernate Settings--&gt;<br />
&nbsp; &lt;hibernate-configuration xmlns=&quot;urn:nhibernate-configuration-2.2&quot;&gt;<br />
&nbsp; &nbsp; &lt;session-factory&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;property name=&quot;connection.provider&quot;&gt;NHibernate.Connection.DriverConnectionProvider&lt;/property&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;property name=&quot;dialect&quot;&gt;NHibernate.Dialect.MsSql2005Dialect&lt;/property&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;property name=&quot;connection.driver_class&quot;&gt;NHibernate.Driver.SqlClientDriver&lt;/property&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;property name=&quot;connection.connection_string&quot;&gt;Server=localhost;initial catalog=UserMaintenance;Trusted_Connection=True&lt;/property&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;property name=&quot;show_sql&quot;&gt;false&lt;/property&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;property name=&quot;proxyfactory.factory_class&quot;&gt;NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle&lt;/property&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;property name=&quot;current_session_context_class&quot;&gt;managed_web&lt;/property&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;property name=&quot;adonet.batch_size&quot;&gt;20&lt;/property&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;property name=&quot;cache.provider_class&quot;&gt;NHibernate.Cache.HashtableCacheProvider&lt;/property&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;property name=&quot;cache.use_query_cache&quot;&gt;true&lt;/property&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;property name=&quot;default_schema&quot;&gt;UserMaintenance.dbo&lt;/property&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;property name=&quot;connection.isolation&quot;&gt;ReadCommitted&lt;/property&gt;<br />
&nbsp; &nbsp; &lt;/session-factory&gt;<br />
&nbsp; &lt;/hibernate-configuration&gt;</code><hr />
</div>Please help me..</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?93-MVC-Net">MVC .Net</category>
			<dc:creator>sanju4kk</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?721585-RESOLVED-The-requested-page-cannot-be-accessed-because-the-related-configuration-data-for-the</guid>
		</item>
		<item>
			<title>How to send JQuery function value to @html.actionlink method</title>
			<link>http://www.vbforums.com/showthread.php?721161-How-to-send-JQuery-function-value-to-html-actionlink-method&amp;goto=newpost</link>
			<pubDate>Fri, 10 May 2013 12:29:50 GMT</pubDate>
			<description><![CDATA[HI
good morning,

I need to send JQuery Method's value which is giving names of checked check boxes of the grid to do some processing.

I have a button out of the WebGrid, which is used to do some processing for the selected rows of the webgrid.

I have written jquery method which is returning names of checked check box names but I am not able to pass these name to actionlink.

In simple I am not able to call jquery method in actionlink .


Jqury method:
  
Code:
---------
function GetSelectedProdcut() {
        var arr = [];
        var i = 0;
        var str = '';
        $('input:checkbox[id=chk]').each(function () {
            if ($(this).is(':checked'))
                str = str + $(this).val() + ",";
            //arr[i++] = $(this).val();

        });
        $('#hid').val(str);
       
        return str;
    }
---------
      


Action link :

Code:
---------
@Html.ActionLink("Product", "DownloadZip", new { str=GetSelectedProdcut()});
---------
Method in controller:
public void DownloadZip(string str)
{
            // Here in str I need the check boxes values,
}


Thanks]]></description>
			<content:encoded><![CDATA[<div>HI<br />
good morning,<br />
<br />
I need to send JQuery Method's value which is giving names of checked check boxes of the grid to do some processing.<br />
<br />
I have a button out of the WebGrid, which is used to do some processing for the selected rows of the webgrid.<br />
<br />
I have written jquery method which is returning names of checked check box names but I am not able to pass these name to actionlink.<br />
<br />
In simple I am not able to call jquery method in actionlink .<br />
<br />
<br />
Jqury method:<br />
  <div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">function GetSelectedProdcut() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; var arr = [];<br />
&nbsp; &nbsp; &nbsp; &nbsp; var i = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; var str = '';<br />
&nbsp; &nbsp; &nbsp; &nbsp; $('input:checkbox[id=chk]').each(function () {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($(this).is(':checked'))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; str = str + $(this).val() + &quot;,&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //arr[i++] = $(this).val();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; });<br />
&nbsp; &nbsp; &nbsp; &nbsp; $('#hid').val(str);<br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; return str;<br />
&nbsp; &nbsp; }</code><hr />
</div><br />
Action link :<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">@Html.ActionLink(&quot;Product&quot;, &quot;DownloadZip&quot;, new { str=GetSelectedProdcut()});</code><hr />
</div>Method in controller:<br />
public void DownloadZip(string str)<br />
{<br />
            // Here in str I need the check boxes values,<br />
}<br />
<br />
<br />
Thanks</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?93-MVC-Net">MVC .Net</category>
			<dc:creator>Bajrang</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?721161-How-to-send-JQuery-function-value-to-html-actionlink-method</guid>
		</item>
		<item>
			<title>VS 2012 Cannot attach Database..</title>
			<link>http://www.vbforums.com/showthread.php?721113-Cannot-attach-Database&amp;goto=newpost</link>
			<pubDate>Fri, 10 May 2013 04:38:41 GMT</pubDate>
			<description><![CDATA[I have designed the database in SQL Server Compact and when i try to run the application it showing the following


Code:
---------
Cannot attach the file 'D:\Webs\Login Page\Login Page\App_Data\UserMaintenance.mdf' as database 'UserMaintenance'.
---------
Please help me someone...]]></description>
			<content:encoded><![CDATA[<div>I have designed the database in SQL Server Compact and when i try to run the application it showing the following<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">Cannot attach the file 'D:\Webs\Login Page\Login Page\App_Data\UserMaintenance.mdf' as database 'UserMaintenance'.</code><hr />
</div>Please help me someone...</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?93-MVC-Net">MVC .Net</category>
			<dc:creator>sanju4kk</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?721113-Cannot-attach-Database</guid>
		</item>
		<item>
			<title>EF or NHirbernate?</title>
			<link>http://www.vbforums.com/showthread.php?721085-EF-or-NHirbernate&amp;goto=newpost</link>
			<pubDate>Thu, 09 May 2013 22:28:18 GMT</pubDate>
			<description>I started to learn EF, is Nhirbernate better alternative as O/RM? please do advice. thanks</description>
			<content:encoded><![CDATA[<div>I started to learn EF, is Nhirbernate better alternative as O/RM? please do advice. thanks</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?93-MVC-Net">MVC .Net</category>
			<dc:creator>VBKNIGHT</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?721085-EF-or-NHirbernate</guid>
		</item>
		<item>
			<title>VS 2012 FormAuthentication Signout when browser close</title>
			<link>http://www.vbforums.com/showthread.php?721015-FormAuthentication-Signout-when-browser-close&amp;goto=newpost</link>
			<pubDate>Thu, 09 May 2013 11:26:21 GMT</pubDate>
			<description>How can I signout FormAuthentication when browser or tab close?

using MVC 4 c#.</description>
			<content:encoded><![CDATA[<div>How can I signout FormAuthentication when browser or tab close?<br />
<br />
using MVC 4 c#.</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?93-MVC-Net">MVC .Net</category>
			<dc:creator>VBKNIGHT</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?721015-FormAuthentication-Signout-when-browser-close</guid>
		</item>
		<item>
			<title><![CDATA[VS 2012 [RESOLVED] Create dynamic connection string]]></title>
			<link>http://www.vbforums.com/showthread.php?720673-RESOLVED-Create-dynamic-connection-string&amp;goto=newpost</link>
			<pubDate>Mon, 06 May 2013 10:46:47 GMT</pubDate>
			<description><![CDATA[how can I able to change my initial catalog before and after authentication?

my logic is to check the if the project exist in a global database
if it does, then change the connectionstring to that project database to validate the users account.

the reason is that I have a multiple project databases with each has users table.

TIA

I'm using c# MVC4 and Entity Framework Database first.]]></description>
			<content:encoded><![CDATA[<div>how can I able to change my initial catalog before and after authentication?<br />
<br />
my logic is to check the if the project exist in a global database<br />
if it does, then change the connectionstring to that project database to validate the users account.<br />
<br />
the reason is that I have a multiple project databases with each has users table.<br />
<br />
TIA<br />
<br />
I'm using c# MVC4 and Entity Framework Database first.</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?93-MVC-Net">MVC .Net</category>
			<dc:creator>VBKNIGHT</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?720673-RESOLVED-Create-dynamic-connection-string</guid>
		</item>
		<item>
			<title>VS 2010 mvc 4 simplemembership questions with existing sql server database</title>
			<link>http://www.vbforums.com/showthread.php?720433-mvc-4-simplemembership-questions-with-existing-sql-server-database&amp;goto=newpost</link>
			<pubDate>Fri, 03 May 2013 21:45:22 GMT</pubDate>
			<description><![CDATA[I currently have an old classic asp (.asp) site that is using SQL Server (tables, stored procedures, views, etc..)
This has a 'Personnel' table that has ID, email, password, name, phone, role, etc.... which contains the information to authenticate and login.

I am in the process of moving it to .net and decided to try MVC 4.  So I did the following in Visual Studio 2010:
ASP.NET MVC 4 Web Application using the Internet Application template and Razor.

The first thing I did after files had been created was change 'DefaultConnection' in web.config to use my sql server database.
Next, I opened Filters/InitializeSimpleMembershipAttriute.vb and changed the following line:
WebSecurity.InitializeDatabaseConnection("DefaultConnection", "Personnel", "ID", "Email", autoCreateTables:=True)

I then ran this locally and clicked on the register link which does the following:
-Created 4 tables:  webpages_Membership, webpages_OAuthMembership, webpages_Roles, and webpages_UsersInRoles

On the registration page, I entered a new username and password.  The result of this does the following:
-created a record in my already existing 'Personnel' table filling in data in columns 'Email' and 'ID' and all others are set as NULL.
-created a record in the 'webpages_Membership' table with the following columns populated: UserId, CreateDate, IsConfirmed, Password, PasswordChangedDate

A few questions I have based on this are:
1) Is there a way to get the existing passwords/user record info (created before I setup the 'Webpages_' tables) to be inserted into the webpages_Membership table?  How do I use the same encoding as MVC 4 does?
2) webpages_Membership.PasswordSalt is not populated.  Is there a way to turn this on?
3) What's the best way to populate the other 'Personnel' information currently being required in my old system?

Is there a good book/site/tutorial that helps someone new to MVC?

Thanks.]]></description>
			<content:encoded><![CDATA[<div>I currently have an old classic asp (.asp) site that is using SQL Server (tables, stored procedures, views, etc..)<br />
This has a 'Personnel' table that has ID, email, password, name, phone, role, etc.... which contains the information to authenticate and login.<br />
<br />
I am in the process of moving it to .net and decided to try MVC 4.  So I did the following in Visual Studio 2010:<br />
ASP.NET MVC 4 Web Application using the Internet Application template and Razor.<br />
<br />
The first thing I did after files had been created was change 'DefaultConnection' in web.config to use my sql server database.<br />
Next, I opened Filters/InitializeSimpleMembershipAttriute.vb and changed the following line:<br />
WebSecurity.InitializeDatabaseConnection(&quot;DefaultConnection&quot;, &quot;Personnel&quot;, &quot;ID&quot;, &quot;Email&quot;, autoCreateTables:=True)<br />
<br />
I then ran this locally and clicked on the register link which does the following:<br />
-Created 4 tables:  webpages_Membership, webpages_OAuthMembership, webpages_Roles, and webpages_UsersInRoles<br />
<br />
On the registration page, I entered a new username and password.  The result of this does the following:<br />
-created a record in my already existing 'Personnel' table filling in data in columns 'Email' and 'ID' and all others are set as NULL.<br />
-created a record in the 'webpages_Membership' table with the following columns populated: UserId, CreateDate, IsConfirmed, Password, PasswordChangedDate<br />
<br />
A few questions I have based on this are:<br />
1) Is there a way to get the existing passwords/user record info (created before I setup the 'Webpages_' tables) to be inserted into the webpages_Membership table?  How do I use the same encoding as MVC 4 does?<br />
2) webpages_Membership.PasswordSalt is not populated.  Is there a way to turn this on?<br />
3) What's the best way to populate the other 'Personnel' information currently being required in my old system?<br />
<br />
Is there a good book/site/tutorial that helps someone new to MVC?<br />
<br />
Thanks.</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?93-MVC-Net">MVC .Net</category>
			<dc:creator>lleemon</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?720433-mvc-4-simplemembership-questions-with-existing-sql-server-database</guid>
		</item>
	</channel>
</rss>
